Skip to content

Commit

Permalink
Specify /bin/zsh when creating a new user
Browse files Browse the repository at this point in the history
This way if not asking for zsh
ssh/rootfs/etc/s6-overlay/s6-rc.d/init-user/run
In the "# Set up Bash" section will update the user shell to bash as
well as root.
  • Loading branch information
dfries authored and frenck committed Jul 9, 2024
1 parent aa3202e commit 29e3271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssh/rootfs/etc/s6-overlay/s6-rc.d/init-ssh/run
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ username=$(bashio::string.lower "${username}")
if [[ "${username}" != "root" ]]; then

# Create an user account
adduser -D "${username}" -s "/bin/sh" \
adduser -D "${username}" -s "/bin/zsh" \
|| bashio::exit.nok 'Failed creating the user account'

# Add new user to the wheel group
Expand Down

0 comments on commit 29e3271

Please sign in to comment.