[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Giving a user root priveleges?



Zachary Uram wrote:
<snipped>

> But when I try to sudo as that user to root I get error:
> 
> $ sudo su root

I think there is some confusion.

I don't know of any reason to use both 'su' and 'sudo' in a command.
either you would 'su' to root or you would 'sudo' to run a singular command.

'su' is to change into superuser (root) until you exit.
'sudo' is to temporarily be superuser until the command is completed.

To use 'sudo' to run a command just type 'sudo <command>' and as long as
you have the user in the 'sudo' group ('adduser user sudo' as root) that
user will be able to run said command when they log back in.


> 
> We trust you have received the usual lecture from the local System
> Administrator. It usually boils down to these three things:
> 
>     #1) Respect the privacy of others.
>     #2) Think before you type.
>     #3) With great power comes great responsibility.
> 

you will get this unless you add NOPASSWD:ALL to your sudo group.

you did uncomment the '%sudo' in the sudoers file, correct?

-- 

Arrant Drivel - really, it's just trash...
http://www.arrantdrivel.com/

Where the road takes me - a highwayman's perspective
http://www.prestonboyington.com/


Reply to: