更新 'cg_init_machine.sh'
This commit is contained in:
parent
350460eb61
commit
6858523547
|
|
@ -7,7 +7,7 @@ then
|
||||||
else
|
else
|
||||||
usermod -a -G wheel cg_maintain_user
|
usermod -a -G wheel cg_maintain_user
|
||||||
fi
|
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
|
mkdir -p /home/cg_maintain_user/.ssh
|
||||||
touch /home/cg_maintain_user/.ssh/authorized_keys
|
touch /home/cg_maintain_user/.ssh/authorized_keys
|
||||||
chown -R cg_maintain_user:cg_maintain_user /home/cg_maintain_user
|
chown -R cg_maintain_user:cg_maintain_user /home/cg_maintain_user
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue