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?
sudo usermod -aG sudo username
Does not give sudo privileges to username?
– rob18767 Aug 22 '18 at 14:56sudo visudo
And added the line
username = ALL= (root) NOPASSWD: ALL
That got me where I wanted. Thank you.
I will change the last ALL to point to what I want to specifically run in BIN. Thank you.
– rob18767 Aug 22 '18 at 15:04/etc/sudoers/
file is not enough... You will have to add theNOPASSWORD
tags... – NerdOfCode Aug 22 '18 at 20:32