当我将 Fish 更改为默认 shell 时出现问题

当我将 Fish 更改为默认 shell 时出现问题

因此我尝试使用以下命令将 Fish 设置为我的默认 shell:

sudo chsh -s /usr/bin/fish 'myUsername'

现在,每次启动终端时都会出现此信息:

Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied

我尝试过使用: sudo chsh -s /usr/bin/bash 'myUsername'

但后来我得到:

chsh: PAM: Authentication failure
Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied

有没有办法修复我搞砸的事情?我想恢复到 bash。我正在使用 Ubuntu 16.04。

答案1

我找到了这个链接,它解决了我的问题,并按照 Ziazis 最初的建议解决了这个问题

Ziazis 的建议:

sudo chown user:usergroup -R /home/user

一旦实施了,我就不再得到

Unable to open universal variable file '/home/username/.config/fish/fishd.Dlorah': Permission denied

错误,但仍然出现 PAM 身份验证错误。我又谷歌了一下,找到了这个链接:http://ubuntuforums.org/showthread.php?t=1702833

相关内容