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