Update 'debian-setup.sh'
This commit is contained in:
parent
5d54b590c3
commit
449af6f43a
@ -56,6 +56,8 @@ echo $admin_user:$ssh_pass | chpasswd
|
||||
# Add to sudoers
|
||||
sed -i "/$admin_user/d" /etc/sudoers
|
||||
sed -i "/User privilege specification/a $admin_user\tALL=(ALL:ALL) ALL" /etc/sudoers
|
||||
# username ALL=(ALL) NOPASSWD:ALL
|
||||
|
||||
|
||||
# update root password to random and forget it
|
||||
echo "[INFO] Updating root password to random"
|
||||
|
Loading…
Reference in New Issue
Block a user