So I just ran into an interesting issue. On Arch Linux, if I create a user that uses a shell from /usr/bin
they cannot log in. I create the user with:
useradd -m -G wheel -s /usr/bin/bash username
and when they try to log in, they get 'Login Incorrect'. But if I edit /etc/passwd
and change the shell to /bin/bash
, everything works fine.
Any ideas what's going on here? Thanks!
bash
in/usr/bin
? Is this also listed in the list of valid login shells (/etc/shells
)? – Kusalananda May 30 '18 at 13:00/var/log/auth.log
and any messages from PAM modules should be there, too. On Arch, they might be somewhere else, or perhaps you'll just have to go throughjournalctl
: https://unix.stackexchange.com/questions/114189/where-are-my-sshd-logs – ilkkachu May 30 '18 at 16:04