SOLVED In a jail, login ignores shell in /etc/passwd?

delovelady

Dabbler
Joined
Nov 3, 2019
Messages
16
I have installed pdksh on one of my jail servers. I don't want to get into a battle about which shell is best and why ... I have reasons for wanting this.)

I have also specified the /etc/passwd file, as follows:

username:*:1002:1002:The user:/home/username:/usr/local/bin/ksh

However, when this user logs in via SSH or via "su - username" from the UI shell, the shell is still set to /bin/sh.

I notice that in /etc/shells, ksh is properly listed:
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/ksh

How can I change this behavior? Is there something besides/instead of /etc/passwd that needs to indicate the shell to be used for this user?
 
Top