Tuesday 23 February 2010

creating super user with root right

Sudo is a program which can be used by normal users to execute programs as super user or any other user. Sudo access is controlled by /etc/sudoers. The users listed in /etc/sudoers file can execute commands with an effective user id of 0 and a group id of root's group.

The file '/etc/sudoers' should be edited with the editor "visudo".

01. First, create a user called "uddika"
#useradd uddika
#passwd uddika


02. To give a specific group of users limited root privileges, edit the file with visudo as follows: 
# visudo

03. Go down to the line ‘# User privilege specification‘and add the following line.

uddika ALL=(ALL) ALL

No comments:

Post a Comment