On Wed, 2005-07-06 at 15:52 +0200, Holly Bostick wrote: > 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.
If you're using e.g. "sudo echo package >> /etc/portage/package.unmask" then the redirection takes place in your shell, not in sudo. HTH. -- gentoo-user@gentoo.org mailing list