CentOS 8 找不到 chsh 命令的解决方案

使用 chsh 修改用户的默认 shell 报错:

[root@centos8 ~]$ chsh -s /bin/zsh main
sudo: chsh: command not found

原因:CentOS 8 默认不带 chsh 命令,需要手动安装。

执行:sudo dnf install util-linux-user

发表评论