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,970
  • 6
    Please [edit] your question and include the exact error message you get from chsh. Also clarify what you mean by "/bin/ksh has been loaded". – terdon Feb 12 '15 at 16:04
  • 1
    Add the exact command you ran as well as the full path to ksh (it may in /bin) – Panther Feb 12 '15 at 17:49

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,970
steeldriver
  • 143,099