dom*_*91c 9 fedora sudo package-management
删除vim-minimal
软件包后,因为它与我尝试安装的 GUI Vim 冲突,sudo
消失了,并且su
导致身份验证失败。
[portOdin@localhost ~]$ su
Password:
su: Authentication failure
[portOdin@localhost ~]$ sudo
bash: sudo: command not found...
Run Code Online (Sandbox Code Playgroud)
我也尝试过 zsh,并且还创建了一个新用户,但也遇到了同样的问题。
如果我可以开始su
工作,或者有其他选择,我可以使用sudo yum install sudo
. 我正在使用 Fedora 20。
好的,如果有人遇到类似的情况,您可以使用pkexec yum install sudo
. pkexec 将允许您在操作系统的 GUI 中输入密码。
pkexec allows an authorized user to execute PROGRAM as another user. If
username is not specified, then the program will be executed as the
administrative super user, root.
Run Code Online (Sandbox Code Playgroud)
这有帮助: https: //askubuntu.com/questions/434525/can-sudo-be-reinstalled-after-being-removed