1

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

  1. Goto recover mode, and adding my account to sudo group, as described in link
  2. Check list of user in sudo group by command grep -Po '^sudo.+:\K.*$' /etc/group , my account name is there
  3. Check whether correct permission on sudoers file by ls -al /etc/sudoers, I found -r--r----- seem correct too
  4. 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

Bryan
  • 200

1 Answers1

-1

I am facing an issue with sudo for AD group users. I have added following lines to /etc/sudoers file using visudo

%domain\ admins ALL=(ALL:ALL) ALL %domain\ Users ALL=(ALL:ALL) ALL %domain\UbuntuAdmins ALL=(ALL:ALL) ALL

"Domain Admins" and "Domain Users" Groups work fine and users are able to run sudo command but if I comment the first 2 lines then the users in "UbuntuAdmins" AD group are not able to run sudo command and give an error, "You are not allowed to Run Sudo"

I have give space beofre "Admins" and "Users" because there is a space in Group name. "UbduntuAdmins" group does not have any space in it name thereore no space beofer its name, although I have tried by adding the space too but it does not help.

Kinldy help me in fixing this issue. I am using Ubuntu 20.04 and it is Domain Joined.

Ahsan
  • 1