使用 chsh 修改用户的默认 shell 报错:
[root@centos8 ~]$ chsh -s /bin/zsh main
sudo: chsh: command not found
原因:CentOS 8 默认不带 chsh 命令,需要手动安装。
执行:sudo dnf install util-linux-user
使用 chsh 修改用户的默认 shell 报错:
[root@centos8 ~]$ chsh -s /bin/zsh main
sudo: chsh: command not found
原因:CentOS 8 默认不带 chsh 命令,需要手动安装。
执行:sudo dnf install util-linux-user
评论