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 Boot to Windows if Linux corrupt boot Loader in Dual OS - July 8, 2017
- What Is the full form of PING - July 8, 2017
- How to change Date, Timeand Time Zone on Linux server - June 9, 2017