4

I want to add a user account to sudoers.

I type in

sudo usermod -aG sudo username

Then I reboot.

I type

apt update

I get permission denied.

I type

sudo apt update

Followed by account password and apt update runs.

I thought that adding things to sudoers allows me to run without specifying sudo and entering password?

pa4080
  • 30,621

1 Answers1

3

Adding a user to /etc/sudoers/ just permits this user to invoke commands with sudo. Using sudo is still required.

guntbert
  • 13,475