allow sudo commands without sudo
Posted: Sat Apr 06, 2024 10:57 pm
edit /etc/sudoers file
retain sudo on everything but only allow apt without password.
Code: Select all
zemerdon ALL=NOPASSWD: /usr/sbin/hddtemp, /usr/sbin/nvmeCode: Select all
zemerdon ALL=(ALL:ALL) ALL
zemerdon ALL=(ALL:ALL) NOPASSWD: /usr/bin/apt, /usr/bin/apt-get, /usr/bin/apt-cache