Adding sudo users

We are all know that we don’t login as root user.
But we have to do administrative works.
sudo command will do that.
In Debian Based Distros the first user will be the sudo User.
Suppose we want to add new users with sudo permission, then add that user in /etc/sudoers

It can be done as follows

#visudo
add the user name in that file
say i want to add user1 as sudo previlege then add user1 ALL=(ALL) ALL

Now the user1 can do the administrative works with his password only (no need to know the root password)

Powered by ScribeFire.

Post a Comment