Sunday, October 11, 2009

Grant root privilege to user account in RHEL

1. create the user account call "normaluser"



# useradd -d /home/user normaluser

2. then as root run:



# su -

# visudo


3. in the file you will see


root ALL=(ALL) ALL


4. add a line below that line that has


normaluser ALL=(ALL) ALL


* replace "normaluser" with the username you want.


then when you want to do some admin level work you would just use "sudo" before the command.


e.g. sudo /sbin/shutdown -r now

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment