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”
Now Edit the file with visudo or /etc/sudoers as follows:
# vi /etc/sudoers
Go down to the line ‘# User privilege specification‘and add the following line.
tecgeeks ALL=(ALL:ALL) ALL
Your Profile can also be listed here, Want to share you Experience, become a TecGeeks Author Submit here
Latest posts by Rahul Kansi (see all)
- How to Monitor your Linux and Windows Servers with CloudStats - May 18, 2017
- How to protect your Server against the ransomware attack - May 16, 2017
- How to force a user to change his password upon next login? - April 28, 2017