Is zsh the default shell globally for useradd?

When I create new users will it default to setting the shell as zsh?
Or do I have to manually edit passwd to set it?

Just curious as when I morphed a VM it would still default to sh when i created a new user.

No.

For that, Kicksecure would need to modify the /etc/adduser.conf configuration file.

Clarified in Distribution Morphing versus ISO - Differences just now:

  • No user account settings changes: Any user account settings will remain unchanged.
  • No user account shell changes: The user’s default shell will remain the same.
1 Like

Could Kicksecure ship with a custom /etc/default/useradd ?
Something that modifies it during the build or something?

# comment out SHELL=/bin/sh
sed -i '/^SHELL=\/bin\/sh$/d' /etc/default/useradd

# Append and set SHELL=/bin/zsh
echo -e '\n# Use ZSH as the default shell for newly created users\nSHELL=/bin/zsh' | tee -a /etc/default/useradd

That comes with the same difficulties as modifying the adduser.conf file. There isn’t a directory where we can put configuration overrides for either file, so it makes it more difficult to change those settings.

1 Like

See Modifying Default Configuration of Third Party Packages.