通常,如果我尝试启动一个程序或执行一个需要 su 权限的命令(不在终端中),就会出现一个窗口要求输入密码。
但是,窗口不再显示,所以每当我尝试启动需要 su 权限的程序(例如 GParted)或在文件夹中执行诸如选择“以 Root 身份打开”之类的命令时,什么都没有发生。我必须sudo gparted
在终端中输入类似以下内容才能正确启动程序。
我该如何解决这个问题?
的输出sudo 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 mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/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