Link to home
Start Free TrialLog in
Avatar of aplelois
aplelois

asked on

sudo

hello,
im running FC1 and I would like to give sudo to a friend
so he can do everything that 'root' can do, no matter what.
how would I do that?
ASKER CERTIFIED SOLUTION
Avatar of veedar
veedar
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aplelois
aplelois

ASKER

I did this adduser bob
then visudo and added
bob ALL=(ALL) ALL
but when bob logs in he cant do this

adduser webst
-bash: adduser: command not found        

why?
Well using sudo bob needs to run the command like so...

sudo adduser webst

The command not found part means that the adduser command is not in bob's PATH in which case bob can add /usr/sbin to his PATH or execute like so...

sudo /usr/sbin/adduser webst
thanks a lot.
In addition, you could have it so there is no password for this user.

bob ALL=(ALL) NOPASSWD:ALL