[YLUG] Kunbunto

Richard G. Clegg richard at richardclegg.org
Wed Sep 13 17:13:58 BST 2006


Pete Fenelon wrote:
>>
>> sudo /bin/bash
>> <supply your main user password>
> 
> Please don't do that. The whole point of sudo is that it's there to
> run single commands as root, optionally under tight control and with
> good logging. Yes, "sudo bash" works; no, it's not a good habit to get
> into. Use as little privilege as possible and the chances of breaking
> something are much reduced!

What Pete said.  While you can do "sudo su" or "sudo /bin/bash" or 
whatever in 90% of cases it's pretty dumb.

This said, what do you do with this case

sudo /sbin/privileged_command > privileged_file

which fails because only the command is executed with root priorities 
and you can't pipe the output.

-- 
Richard G. Clegg,
Networks & NonLinear Dynamics Group,
Dept. of Maths, Uni. of York.
http://www.richardclegg.org/



More information about the York mailing list