-
Notifications
You must be signed in to change notification settings - Fork 16
Home
franglais125 edited this page Dec 8, 2016
·
6 revisions
This page is under construction. For now you can find information on how to setup the extension to check for updates without entering the password.
These are the instructions to get updates without having to input the password. You can choose from 1a or 1b (both do the same thing!), and then go to 2.
- The easy way is to download the script: script.sh
- and to execute with sudo:
sudo enable_passwordless_checks.sh
- Simply create the file
/usr/local/bin/updater
with the following content:
#!/bin/bash
apt update
- Remember to set the proper permissions:
sudo chmod 0755 /usr/local/bin/updater
- Open a sudoers editor and create a new file "update":
sudo visudo -f /etc/sudoers.d/update
- In the file include the following content:
Cmnd_Alias UPDATER_ONLY = /usr/local/bin/updater
%MY_USERNAME ALL= NOPASSWD: UPDATER_ONLY
Where MY_USERNAME is the desired username. For example, if the user is "john", the file would read:
Cmnd_Alias UPDATER_ONLY = /usr/local/bin/updater
%john ALL= NOPASSWD: UPDATER_ONLY
- You also need to go to the Advanced settings and check the corresponding option.
- By default, the command given works with this wiki. If different filenames/paths are used, the command in the settings needs to be tweaked accordingly.