mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-24 12:57:43 +00:00
Set bash as default shell for created users.
This commit is contained in:
parent
a040041a98
commit
462d78506c
@ -266,9 +266,9 @@ add_user () {
|
||||
[ "$pass" == "" ] && pass=generate_password
|
||||
|
||||
if [[ "$args" != *nohome* ]]; then
|
||||
/usr/sbin/useradd --password `openssl passwd -crypt $pass` --create-home $user
|
||||
/usr/sbin/useradd --password `openssl passwd -crypt $pass` --create-home $user --shell /bin/bash
|
||||
else
|
||||
/usr/sbin/useradd --password `openssl passwd -crypt $pass` $user
|
||||
/usr/sbin/useradd --password `openssl passwd -crypt $pass` $user --shell /bin/bash
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user