Friday, May 20, 2016

Creating a super user with root rights

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"

[root@srinivaslinux~]#useradd uddika
[root@srinivaslinux~]#passwd uddika

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

[root@srinivaslinux~]# visudo

03. Go down to the line # User privilege specificationand add the following line.

uddika ALL=(ALL) ALL

No comments:

Post a Comment