This commit is contained in:
Luk Lu
2019-12-14 11:17:11 +08:00
parent cab00d1a94
commit e0f90ab6b4
4 changed files with 35 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ useradd $User
passwd $User
mkdir /home/$User
chown $User:$User /home/$User
chmod 700 /home/$User
# emacs /etc/passwd
# Debian 10 default to /bin/sh
sed -i "s/\/home\/$User:\/bin\/sh$/\/home\/$User:\/bin\/bash/g" /etc/passwd