From 077afb85925d04067ebd38bfa520cec0e36f5bbf Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Fri, 28 Jul 2023 09:46:01 +0200 Subject: [PATCH] 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. --- scripts/sysusers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sysusers.sh b/scripts/sysusers.sh index 42bfc168da..0e806cf7f4 100755 --- a/scripts/sysusers.sh +++ b/scripts/sysusers.sh @@ -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