我想将默认登录 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.