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.