mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 01:41:36 +00:00
fixes
This commit is contained in:
parent
179d7488e6
commit
62f44c6d09
@ -24,12 +24,13 @@ apt remove needrestart -y
|
||||
|
||||
useradd -p $(openssl passwd -1 ${V_PASSWORD}) ${V_USERNAME}
|
||||
usermod -aG ${V_USERNAME}
|
||||
"${V_USERNAME} ALL=(ALL) NOPASSWD:ALL" | tee -a /etc/sudoers
|
||||
echo "${V_USERNAME} ALL=(ALL) NOPASSWD:ALL" | tee -a /etc/sudoers
|
||||
mkdir /home/${V_USERNAME}
|
||||
mkdir /home/${V_USERNAME}/.ssh
|
||||
chown -R ${V_USERNAME}:${V_USERNAME} /home/${V_USERNAME}
|
||||
chsh -s /bin/bash ${V_USERNAME}
|
||||
su - ${V_USERNAME} -c "ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa" <<<y
|
||||
chsh -s /bin/bash "${V_USERNAME}"
|
||||
su - "${V_USERNAME}" -c "ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa" <<<y
|
||||
chown -R ${V_USERNAME}:${V_USERNAME} /home/${V_USERNAME}
|
||||
|
||||
# upgrade
|
||||
apt clean
|
||||
|
Loading…
x
Reference in New Issue
Block a user