Set bash as default shell for created users.

This commit is contained in:
Daniel Mahlow 2013-03-31 11:57:45 +02:00
parent a040041a98
commit 462d78506c
1 changed files with 2 additions and 2 deletions

View File

@ -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
}