View Single Post
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#9
Originally Posted by felbutss View Post
thanks so much guys. ill have a play with it tonight . i want to try a few things with scripts. how do i run scripts as root though?
I'm not sure if this is the best advice, but if, as root, you add the following line to

/etc/sudoers

Code:
user ALL = NOPASSWD: ALL
you should be able to run anything as root by putting

sudo

in front of it. For instance,

Code:
sudo whoami
should output "root" and not "user."
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post: