默认登录 shell ksh

默认登录 shell ksh

我想将默认登录 shell 设置为 Korn shell (ksh),但chsh无法识别/bin/ksh为 shell。

/bin/ksh已加载。

答案1

必须将所需 shell 的完整路径添加到/etc/shells文件中 - 来自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.

相关内容