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:
Florian Festi 2023-07-28 09:46:01 +02:00
parent 3e820eaa4c
commit 077afb8592
1 changed files with 1 additions and 1 deletions

View File

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