Skip to content

Commit

Permalink
Set default shell to /sbin/nologin
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 077afb8)
  • Loading branch information
ffesti authored and dmnks committed Aug 1, 2023
1 parent fd9cee0 commit 64ac683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sysusers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64ac683

Please sign in to comment.