I really tried to find a solution before posting here, however I couldn't find any.
I tried to allow a specific user to run apt update
and apt upgrade
for a without entering his password, so I did a sudo visudo
and edited the line for this user:
user ALL=(ALL) NOPASSWD: /usr/bin/apt update /usr/bin/apt upgrade
sudo -l gives me the following output:
User user may run the following commands on machine:
(ALL : ALL) ALL
(ALL) NOPASSWD: /usr/bin/apt update /usr/bin/apt upgrade
What am I missing? Just allow ALL is no option. The order should be fine. Any help much appreciated.
username ALL = NOPASSWD : /usr/bin/apt-get , /usr/bin/aptitude
the update/upgrade & so on parameters is on the command linesudo aptitude update
for example ; not in the sudoers file.sudoers
file? I can't see howsudo
would otherwise be able to determine that the list of words are two separate commands with arguments.