Tuesday, 5 July 2011

Add sudo to CentOS

Install the sudo package
# yum install sudo

Edit the sudo file by removing the # from the # %wheel ALL=(ALL) ALL to uncomment it.
# visudo

Save the changes and quit.

gpasswd -a username wheel

Change to sudo su.
sudo su -

Confirm that you can login with your username, then disable the root login.
passwd -l root


Post a Comment

Subscribe to Post Comments [Atom]

<< Home