move aurbuilder sudo right to /etc/sudoers.d/aurbuilder
This commit is contained in:
parent
3c6145b1ad
commit
d2a7713759
1 changed files with 3 additions and 1 deletions
|
@ -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(){
|
||||
|
|
Loading…
Reference in a new issue