SUDO – The permissions are exclusive, make one God in Linux Environment. Very often the Linux Administration tasks require the use of sudo command. For the safety of users so that they don’t mess up it is always advised to use Linux as standard user. For those who need root access for some commands in administration task, like installing a software package, sudo god comes to help.
To enable sudo access for a user the user must be in wheel group because users in wheel group are configured to run commands as root. To add yourself to wheel group you need to edit a file groups in /etc . Follow the steps below.
- Login to your Linux System.
- Open File Manager and go to root folder and navigate to etc
- Open file named – group
Open group file with any text editor ex- gedit
- If your username for example is ethicalhackx , the line should read as follows wheel:x:10:ethicalhackx
- Save the file, close it and close the file manager.
Now you can use the sudo command for the user specified in group file.