1

I want to set the default login shell to the Korn shell (ksh) but chsh doesn't recognize /bin/ksh as a shell.

/bin/ksh has been loaded.

muru
  • 207,228

1 Answers1

4

The desired shell's full path must be added to the /etc/shells file - from man shells

DESCRIPTION
       /etc/shells  is  a text file which contains the full pathnames of valid
       login shells.  This file is consulted by chsh(1) and  available  to  be
       queried by other programs.
muru
  • 207,228
steeldriver
  • 142,475