Creating a super user with root privileges
If you want a user to perform root task but do not want to share root user, Is this possible my answer is yes its possible in LINUX using sudo. you can create a sudo user to do all task what root user can do.
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".
First, create a user called "tecgeeks"
#useradd tecgeeks
#passwd tecgeeks
Now Edit the file with visudo or /etc/sudoers as follows:
# visudo
# vi /etc/sudoers
Go down to the line ‘# User privilege specification‘and add the following line.
tecgeeks ALL=(ALL:ALL) ALL
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".
First, create a user called "tecgeeks"
#useradd tecgeeks
#passwd tecgeeks
Now Edit the file with visudo or /etc/sudoers as follows:
# visudo
# vi /etc/sudoers
Go down to the line ‘# User privilege specification‘and add the following line.
tecgeeks ALL=(ALL:ALL) ALL
Creating a super user with root privileges
Reviewed by TecGeeks News
on
December 22, 2016
Rating:
No comments: