Neil Bothwick wrote:
> On Fri, 24 Mar 2006 00:58:09 +0100, Renat Golubchyk wrote:
> 
>> Alright, then run
>>   sudo bash -c 'echo some_string >> some_file'
>> No problem here :)
> 
> Except this means you have to give the user permission to run bash, and
> subsequently any command as root.

True. But with "sudo su -c", you've got to have the same
sort of trust, don't you?

> You may as well give them the root
> password and let them use su.

Or don't give the root password and use sudo for everything,
which is what Ubuntu is doing. Using sudo instead of su
is better in so far, as you're not so likely to run everything
in a root shell (yes, I know that "sudo bash" is possible).

Alexander Skwar
-- 
It is generally agreed that "Hello" is an appropriate greeting because
if you entered a room and said "Goodbye," it could confuse a lot of people.
                -- Dolph Sharp, "I'm O.K., You're Not So Hot"
-- 
gentoo-user@gentoo.org mailing list

Reply via email to