Can anyone please explain the exact work of these in /etc/sudoers
? (I've done some research, so please don't share any links)
I want to add myself (member of sudo
) to execute a command without password.But it's again asking for password.
# User
root ALL=(ALL:ALL) ALL
myself ALL=(ALL:ALL) NOPASSWD:/bin/apt update, PASSWD:/bin/apt install*
# Groups
%sudo ALL=(ALL:ALL) ALL
Cmnd_Alias
, see the sudoers snippet in this loosely related answer, section Another approach. – PerlDuck Jan 11 '19 at 10:48