Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Create another root admin right in Linux

After creating a user in Linux, how to grant the user with privilege equivalient to root admin ?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany 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 AXISHK
AXISHK

ASKER

Any further information of sudo ou ?

or give user full root access ?

Thanks
Here is the manpage of the sudo command:
http://www.gratisoft.us/sudo/sudo.man.html

This is information about the configuration file "sudoers":
http://www.gratisoft.us/sudo/sudoers.man.html

Here is how to edit the sudoers file by means of "visudo":
http://www.gratisoft.us/sudo/visudo.man.html

To give a user full root privileges for any command add to sudoers by means of visudo:

userid  ALL=(root) NOPASSWD:ALL

userid can then issue (for example):

sudo shutdown now

without any restriction and without being asked for a password.