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.
:wq


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

No comments:

Post a Comment

BT Infinity Finally!

I have finally received super-fast broadband and it was enabled on Wednesday morning around 10am. I never noticed till a day later when I lo...