ssh(1) is inaccurate
snalwuer at cip.informatik.uni-erlangen.de
Thu Dec 7 01:13:21 AEDT 2017
On 2017-12-06T15:03, Stephen Harris <lists at spuddy.org> wrote:
> > So if a user has /dev/false as login shell, you cannot run a command on
The specified shells in /etc/passwd are also often checked against a
list of allowed shells in /etc/shells by PAM. Users without an allowed
shell (the usual entry to make there is /bin/false) are denied access,
usually even in services that never spawn a shell in the first place,
e.g. IMAP or graphical sessions. See also pam_shells(8).
This has little to do with SSH, but it makes /bin/false a bad example
for a shell here, since the aforementioned mechanism might lead to
nothing being executed at all, not even /bin/false.
More information about the openssh-unix-dev