Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 45937  / 3 Years ago, wed, august 11, 2021, 11:11:50

I have a user, supersecretuser, that is in the sudo group, but doesn't have sudo access. Is there something else that needs to be done to give this user sudo access?



$ ssh supersecretuser@myserver
supersecretuser@myserver:~$ groups
supersecretuser adm cdrom sudo dip plugdev lpadmin sambashare
supersecretuser@myserver:~$ sudo vim install.sh
[sudo] password for supersecretuser:
supersecretuser is not in the sudoers file. This incident will be reported.


supersecretuser is the user we setup when doing the Ubuntu install.


More From » 14.04

 Answers
4

Since you error message says your user is not in the sudoers file, could you please check your /etc/sudoers file, see if there is such a line:



%sudo   ALL=(ALL:ALL) ALL


If this line is missing, users in the sudo group will not be sudoers. Edit the file using visudo command (checks for correct synthax and locks the file).



You can also try to add a customized line like this:



root    ALL=(ALL:ALL) ALL


Replace root with your username, reboot, and try if it works.


[#23290] Wednesday, August 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ouschee

Total Points: 485
Total Questions: 88
Total Answers: 106

Location: Central African Republic
Member since Mon, Aug 10, 2020
4 Years ago
ouschee questions
;