-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathetc-sudoers.d-aurch-example
More file actions
24 lines (15 loc) · 1.06 KB
/
etc-sudoers.d-aurch-example
File metadata and controls
24 lines (15 loc) · 1.06 KB
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 'fME' to your chroot /path/'-id'
Then put the following three 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 /usr/local/aurch/base/chroot-fME --pipe /usr/bin/bash
jeff ALL=(ALL) NOPASSWD: /usr/bin/pacsync aur
jeff ALL=(ALL) NOPASSWD: /usr/bin/rm -f /etc/sudoers.d/aurch-sudo
-------------------------------------------------------------------------------------------------------------------------
TO TEST: sudo systemd-nspawn -a -q -D /usr/local/aurch/base/chroot-fME --pipe /usr/bin/bash
TO TEST: sudo pacsync aur