Perhaps one of the scarier Unix and Linux warning messages for newcomers comes in the form of “____ is not in the sudoers file. This incident will be reported.” In the case of an actual error message, the underscores would be replaced with your username, which makes it sound like someone is going to hear about your mistake!

Dec 11, 2014 · The file is composed of aliases (basically variables) and user specifications (which control who can run what). Editing the sudoers file. For Ubuntu 8.04: The default editor for visudo has changed to vi, which may cause confusion to those who are not familiar to its Aug 14, 2017 · Use it to add your user to sudoers file: sudo visudo /etc/sudoers. Mar 25, 2010 · Debian :: Install A File That Username Is Not In Sudoers File? ADVERTISEMENT Ubuntu :: Sudo - Ramy Is Not In The Sudoers File Dec 24, 2010. Whenever I try to run something as root using the sudo comand I get: Code: ramy is not in the sudoers file. This incident will be reported. View 6 Replies View Related Dec 05, 2018 · Since listing the contents of /root requires sudo privileges, this works as a quick way to prove that UserName can use the sudo command. Alternative: Add User to Sudoers Configuration File If there’s a problem with the wheel group, or administrative policy prevents you from creating or modifying groups, you can add a user directly to the

$ su > Enter root password: ***** $ visudo -f /etc/sudoers Find the following section of /etc/sudoers file and add your users privileges: # User privilege specification root ALL=(ALL:ALL) ALL user_name ALL=(ALL) ALL Save the file (press esc and type :x if vim is your default text editor, for nano press ctrl+o, enter and then ctrl+x).

However, you should not modify the sudoers file by yourself because if you make any mistakes during the process, you might be locked out of your host forever. Instead of modifying the sudoers file by yourself, you are going to use visudo. Visudo is a tool that checks the integrity and the correctness of the commands typed before saving the sudoers file. To execute visudo, type the following command $ sudo visudo. You should now see the following screen user is not in the sudoers file. This incident will be reported. this only user am using means its root user and i tried this also. MacBook-Air:~ exepaul$ sudo chmod The sudo command allows regular users to execute commands with administrative/root privileges. By adding any user to predefined sudo group wheel will grant root privileges to execute any command as root user. Any attempt to use the sudo command for the non-sudo user will result in: user is not in the sudoers file.

I could add the wanted users directly to the sudoers file by editing suoders file using any of the commands: nano /etc/sudoers or visudo. Then scroll to the highlited section in the picture and add the wanted users either local or domain users will work: sudoers file