I'm currently facing a problem when I use my sudo
permission. I understand somebody faced this problem before, e.g this question, and followed some steps to resolve but unsuccessful. FYI, before I can sudo
seamlessly.
Weird thing is that I can do run update and install in UI where Ubuntu requires my admin permission. I have asked other user in this machine who are in sudo
group, we are sharing the same situation.
Here steps I followed
- Goto recover mode, and adding my account to sudo group, as described in link
- Check list of user in sudo group by command
grep -Po '^sudo.+:\K.*$' /etc/group
, my account name is there - Check whether correct permission on sudoers file by
ls -al /etc/sudoers
, I found-r--r-----
seem correct too - Run
visudo
to view config, here is my file's content
root ALL=(ALL:ALL) ALL
sudo ALL=(ALL:ALL) ALL
I would like to seek for your help, thanks in advance
sudo ALL=(ALL:ALL) ALL
defines policy for a user namedsudo
; to set policy for members of the sudo group you need%sudo ALL=(ALL:ALL) ALL