]> git.ipfire.org Git - thirdparty/shadow.git/commit
chsh: warn if root sets a shell not listed in /etc/shells
authorMichael Vetter <jubalh@iodoru.org>
Wed, 26 Jul 2023 08:13:53 +0000 (10:13 +0200)
committerSerge Hallyn <serge@hallyn.com>
Thu, 27 Jul 2023 17:35:27 +0000 (12:35 -0500)
commita692c880f10bc561155cecda5e2bc4b40a669776
tree1ca3efbdec614bcd77cf6665016b63cc6d943083
parente5f05d78127489648330c0c136afb7eba61bd2e0
chsh: warn if root sets a shell not listed in /etc/shells

Print a warning even for the root user if the provided shell isn't
listed in /etc/shells, but continue to execute the action.
In case of non root user exit.

See https://github.com/shadow-maint/shadow/issues/535
src/chsh.c