From d2a7713759658c05b4503f99ff61bac19b675f17 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Tue, 13 Oct 2015 21:52:44 +0200 Subject: [PATCH] move aurbuilder sudo right to /etc/sudoers.d/aurbuilder --- updates/menu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/updates/menu b/updates/menu index c641a64..9b364ed 100644 --- a/updates/menu +++ b/updates/menu @@ -45,9 +45,11 @@ checkaurdependencies(){ newpass=$(< /dev/urandom tr -dc "@#*%&_A-Z-a-z-0-9" | head -c16) useradd -r -N -M -d /home/.aurbuilder -s /usr/bin/nologin aurbuilder echo -e "$newpass\n$newpass\n"|passwd aurbuilder + newpass="" + fi + if [ ! -f /etc/sudoers.d/aurbuilder ]; then echo "aurbuilder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/aurbuilder echo "root ALL=(aurbuilder) NOPASSWD: ALL" >> /etc/sudoers.d/aurbuilder - newpass="" fi } checkarchlinuxfrrepo(){