Site Tools


auto_update_without_password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
auto_update_without_password [2026-10-12+18:19] – created Steve Jonesauto_update_without_password [2026-10-14+14:54] (current) – Steve Jones
Line 1: Line 1:
 ==== Auto update without a password ==== ==== Auto update without a password ====
 This is tested and working on Linux Mint 22.3, it should work for anything using polkit.\\ This is tested and working on Linux Mint 22.3, it should work for anything using polkit.\\
 +A note that I find interesting on the PolicyKit entry below - it doesn't work if you try to update from a remote connection, since you might lose the shell part way through the update. You can use screen or tmux and you should be good.\\
 Below is /etc/sudoers.d/Update, it allows installs of software via the cli without a password. Below is /etc/sudoers.d/Update, it allows installs of software via the cli without a password.
 <code text /etc/sudoers.d/Update> <code text /etc/sudoers.d/Update>
Line 6: Line 7:
 Cmnd_Alias SOFTWARE_UPDATE = /bin/rpm, /usr/bin/up2date, /usr/bin/dnf, \ Cmnd_Alias SOFTWARE_UPDATE = /bin/rpm, /usr/bin/up2date, /usr/bin/dnf, \
  /usr/bin/rkhunter, /usr/bin/needs-restarting, /usr/bin/etckeeper, \  /usr/bin/rkhunter, /usr/bin/needs-restarting, /usr/bin/etckeeper, \
- /usr/bin/tig, /usr/local/bin/apt, /usr/bin/apt-get+ /usr/bin/tig, /usr/local/bin/apt, /usr/bin/apt-get, /usr/sbin/reboot, \ 
 + /usr/sbin/shutdown
  
 %wheel ALL = NOPASSWD: SOFTWARE_UPDATE %wheel ALL = NOPASSWD: SOFTWARE_UPDATE
-%sudo ALL = NOPASSWD: SOFTWARE_UPDATE +%sudo ALL = NOPASSWD: SOFTWARE_UPDATE
 </code> </code>
 Create below in /etc/polkit-1/rules.d/10-my.rules and you won't get asked for a password by the system update software as much. Create below in /etc/polkit-1/rules.d/10-my.rules and you won't get asked for a password by the system update software as much.
auto_update_without_password.1791829190.txt.gz · Last modified: by Steve Jones