Set default shell to /sbin/nologin
as this is the default location. Moving the the /bin and /sbin content into the /usr directories is a distribution dependent thing inherited from the Fedora script.
This commit is contained in:
parent
3e820eaa4c
commit
077afb8592
|
@ -75,7 +75,7 @@ user() {
|
|||
|
||||
[ "$desc" = '-' ] && desc=
|
||||
{ [ "$home" = '-' ] || [ "$home" = '' ]; } && home=/
|
||||
{ [ "$shell" = '-' ] || [ "$shell" = '' ]; } && shell=/usr/sbin/nologin
|
||||
{ [ "$shell" = '-' ] || [ "$shell" = '' ]; } && shell=/sbin/nologin
|
||||
|
||||
if [ "$uid" = '-' ] || [ "$uid" = '' ]; then
|
||||
if ! hasuser "$user" ; then
|
||||
|
|
Loading…
Reference in New Issue