Skip to content

Commit

Permalink
Give build user no password sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Dec 31, 2024
1 parent b4c019f commit a6b4193
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github/setup-archlinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ pacman -Syu --noconfirm devtools
systemd-machine-id-setup # devtools requires a machine ID
sed -i "s|MAKEFLAGS=.*|MAKEFLAGS=-j$(nproc)|" /etc/makepkg.conf
useradd -m user # makepkg needs to be run with non-root
cat > "/etc/sudoers.d/user-pacman" <<EOF
user ALL = NOPASSWD: ALL
EOF
chmod 440 "/etc/sudoers.d/user-pacman"

0 comments on commit a6b4193

Please sign in to comment.