Skip to content

Commit

Permalink
Limit shell change to just root (#826)
Browse files Browse the repository at this point in the history
Co-authored-by: Franck Nijhof <[email protected]>
  • Loading branch information
jon-hedgerows and frenck authored Jan 5, 2025
1 parent 19fe14f commit ffd30df
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-user/run
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fi

# Set up Bash
if ! bashio::config.true "zsh"; then
sed -i -e 's|/zsh$|/bash|' /etc/passwd*
sed -i -r -e 's|^(root:.*)/bin/zsh$|\1/bin/bash|' /etc/passwd*
sed -i -e 's|/zsh$|/bash|' /root/.tmux.conf
fi

Expand Down

0 comments on commit ffd30df

Please sign in to comment.