mksuer echos modified for access

312
Kebler Network System Administrator 2021-11-22 11:23:37 -08:00
parent 072c48c301
commit 949a88c0aa
1 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,8 @@ sudo usermod -a -G caddy $USER
cat /etc/passwd | grep caddy cat /etc/passwd | grep caddy
PER="caddy ALL=NOPASSWD: ALL" PER="caddy ALL=NOPASSWD: ALL"
echo $PER | sudo tee /etc/sudoers.d/99_caddy echo $PER | sudo tee /etc/sudoers.d/99_caddy
ls -la /etc/sudoers.d/*caddy echo confirm nopassword file was written
echo added: $(cat /etc/sudoers.d/99_caddy) to sudoers.d/99_caddy sudo find /etc/sudoers.d | grep caddy
echo added: $(sudo cat /etc/sudoers.d/99_caddy) to sudoers.d/99_caddy
echo checking file.... $(sudo visudo -cf /etc/sudoers.d/99_caddy) echo checking file.... $(sudo visudo -cf /etc/sudoers.d/99_caddy)
# $DIR/scripts/own # $DIR/scripts/own