Sou*_*uta 7 sudo authentication
在我进一步提及之前,不要给我回复说终端不会显示密码输入。我对此很清楚。
我正在输入我的用户密码(不是大写锁定问题),但出于某种原因,它仍然显示“身份验证失败”。
除了我的用户密码之外,我还应该使用其他密码(我不知道的密码)吗?我以前在另一个硬盘上安装过这个 ubuntu,但我没有遇到这个问题。(这是同一个 ubuntu,ubuntu 12.04 LTS)
ai@AiNekoYokai:~$ groups
ai adm cdrom sudo dip plugdev lpadmin sambashare
ai@AiNekoYokai:~$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
ai@AiNekoYokai:~$ pkexec cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Run Code Online (Sandbox Code Playgroud)
我可以用我的密码登录,但它不被接受为有效的身份验证<--这几乎是我的问题。(虽然,我还没有进入恢复模式。)
我跑了:
ai@AiNekoYokai:~$ ls /etc/sudoers.d
README
Run Code Online (Sandbox Code Playgroud)
并且还重新安装sudo
了:
pkexec apt-get update
pkexec apt-get --purge --reinstall install sudo
Run Code Online (Sandbox Code Playgroud)
pkexec usermod -a -G admin $USER
<- 说管理员不存在
su $USER
<- 对我有用,但是,我的密码仍然没有太大作用(从不适用于其他事情的意义上说)
我用pkexec passwd $USER
. 我能够改变它没有问题。
gksudo xclock
是我能够进入的东西,没问题。(时钟显示)
ai@AiNekoYokai:~$ gksudo xclock
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
51865 次 |
最近记录: |