更新 'cg_init_machine.sh'

This commit is contained in:
toby 2022-12-28 21:33:36 +08:00
parent 350460eb61
commit 6858523547
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ then
else
usermod -a -G wheel cg_maintain_user
fi
echo '%wheel ALL=(ALL:ALL) ALL' | EDITOR='tee -a' visudo
echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' | EDITOR='tee -a' visudo
mkdir -p /home/cg_maintain_user/.ssh
touch /home/cg_maintain_user/.ssh/authorized_keys
chown -R cg_maintain_user:cg_maintain_user /home/cg_maintain_user