Install sudo for CentOS 5.6

Install sudo for CentOS 5.6

Install sudo for centos 5.6

# yum install sudo
# visudo

Uncomment this ( remove the # )
# %wheel ALL=(ALL) ALL

Save and quit

To add your username

Edit the group
vi /etc/group


Save and quit


gpasswd -a iyour_username wheel

Then you can try SSH to your server, login using your username and password, after that type
After login, then type
# sudo su -

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.

[sudo] password for MY_USERNAME:
# whoami

Confirm that you can login using your username, then disable the root login.

passwd -l root

This applied to:
install sudo linux

Justin Soo is a self-employed Web Development Consultant Specializing, Social Media Content Strategist, Professional Blogger and Computer Engineer. He previous experience in Web Development, Programming, Linux System, MySQL Database. G+ F T In

Tagged with: , , , , , , , , , , , , , ,