Archive for the tag 'root rights'

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”.

1. First, create a user called “admin1″

useradd admin1
passwd admin1

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

# visudo

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

admin1 ALL=(ALL) ALL