相关疑难解决方法(0)

尝试更改默认 shell 时 /etc/passwd 中不存在用户

我想将我的默认 shell 从 tcsh 更改为 bash。所以我尝试了,这就是发生的事情:

>sudo chsh userid
Changing the login shell for userid
Enter the new value, or press ENTER for the default
        Login Shell [/xhbin/tcsh]: /bin/bash
chsh: user 'userid' does not exist in /etc/passwd
Run Code Online (Sandbox Code Playgroud)

确实,我不在 /etc/passwd 中。我不知道为什么。

我能做什么?

passwd chsh

44
推荐指数
5
解决办法
8万
查看次数

标签 统计

chsh ×1

passwd ×1