public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] sudo echo cannot write to /etc/ files ?
@ 2005-07-06 13:52 Holly Bostick
  2005-07-06 14:02 ` A. Khattri
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: Holly Bostick @ 2005-07-06 13:52 UTC (permalink / raw
  To: gentoo-user

Hey, ho--

Here's (one of) today's non-critical problems that's getting on my
nerves, so hopefully somebody can help.

I've finally got around to setting up sudo. It works fine, except for
one thing.

I don't just give myself blanket permissions to sudo to all commands; I
made a Cmd_Alias group which includes a lot of utility apps. And, like
many of you, I included emerge in this group.

But a lot of the time, when I do an emerge -av, I find that there's a
USE flag I want or don't want for the package, or I want an unstable
version, or whatever, which means I have to echo to one of the files in
/etc/portage.

Echo is in the sudo-ed group, and echo isn't the problem-- the problem
is that permission is refused to write to the file itself (which is an
error *from* echo, so it would seem that echo itself is OK as far as
sudo goes). Which means that I have to su anyway, to echo to the file,
which really isn't the point of the exercise.

As I see it, this error can mean only one of two things:

sudo does not give me a login shell (so my UID is 'really' still my UID
and not root's, and I don't have permission to write to the file); or

there is another, "invisible" cli utility responsible for actually
writing to the file, which is not sudo-ed.

Or could it be something else?

In any case, does anybody know how I could fix this? It's really
screwing up my useability, which was just starting to shape up nicely :-) .

Thanks,
Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2005-07-07  5:35 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-06 13:52 [gentoo-user] sudo echo cannot write to /etc/ files ? Holly Bostick
2005-07-06 14:02 ` A. Khattri
2005-07-06 14:25   ` Holly Bostick
2005-07-06 14:20 ` David Morgan
2005-07-06 14:20 ` gentoo
2005-07-06 15:21   ` Holly Bostick
2005-07-06 15:29     ` Christoph Gysin
2005-07-06 15:39     ` gentoo
2005-07-07  3:42     ` Boyd Stephen Smith Jr.
2005-07-07  5:31       ` Richard Fish
2005-07-06 14:22 ` Edward Catmur
2005-07-06 14:54   ` Holly Bostick
2005-07-06 15:12     ` David Morgan
2005-07-06 15:26       ` Neil Bothwick
2005-07-06 15:28       ` Christoph Gysin
2005-07-06 16:07         ` Holly Bostick
2005-07-06 16:47           ` Christoph Gysin
2005-07-06 18:22           ` Richard Fish
2005-07-06 18:36             ` Holly Bostick
2005-07-06 19:12               ` Richard Fish
2005-07-06 19:42                 ` Holly Bostick
2005-07-06 20:28                   ` John J. Foster
2005-07-06 20:52                   ` Manuel McLure
2005-07-06 19:13               ` Christoph Gysin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox