-
Notifications
You must be signed in to change notification settings - Fork 0
/
etc-sudoers.d-aurch-example
24 lines (15 loc) · 1.08 KB
/
etc-sudoers.d-aurch-example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
To eliminate sudo prompt timeouts on long running packages, consider the following.
See : https://wiki.archlinux.org/title/Sudo
man sudo
man sudoers.d search: Including other files
NOTE: Example /etc/sudoers.d/aurch
This example requires at minimum, changing 'jeff' to your user 'name' and 'p5g' to your chroot 'id'
Then put the following two lines into /etc/sudoers.d/aurch: (Note: fully qualified file paths, opts, and args required)
/etc/sudoers.d/aurch
-------------------------------------------------------------------------------------------------------------------------
jeff ALL=(ALL) NOPASSWD: /usr/bin/systemd-nspawn -a -q -D /home/jeff/.cache/aurch/base/chroot-g2a --pipe /usr/bin/bash
jeff ALL=(ALL) NOPASSWD: /usr/bin/pacsync aur
-------------------------------------------------------------------------------------------------------------------------
TO TEST: sudo systemd-nspawn -a -q -D /usr/local/aurch/base/chroot-g2a --pipe /usr/bin/bash
sudo systemd-nspawn -a -q -D /usr/local/aurch/base/chroot- --pipe /usr/bin/bash
TO TEST: sudo pacsync aur