16.04 升级后出现分段错误(核心转储)

16.04 升级后出现分段错误(核心转储)

我在将 kubuntu 从 15.10 升级到 16.04 后遇到了这个问题。实际上一切正常,问题是每当我尝试sudo以特定用户身份使用该命令时,Segmentation fault (core dumped)都会出现该消息。

如果我尝试执行不带 的命令sudo,则一切正常。如果我尝试更改用户(su username)或以 root 身份登录,则(su root)一切正常。

因此,仅当我以用户身份登录gmocciaro并使用sudo命令时才会发生这种情况

我尝试过了:

  • /etc/sudoers权限改为440
  • 重新安装 sudo
  • 删除并重新添加用户为 sudo (从 root 开始)adduser gmocciaro sudo

格莫恰罗是崩溃的用户

小例子:

gmocciaro@epdev01:~$ sudo echo "Hi!"
Segmentation fault (core dumped)
gmocciaro@epdev01:~$ echo "Hi!"
Hi!


root@epdev01:/home/gmocciaro# sudo echo "Hi!"
Hi!
root@epdev01:/home/gmocciaro# echo "Hi!"
Hi!

猫/etc/sudoers

root@epdev01:/home/gmocciaro# 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"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root            ALL=(ALL:ALL) ALL
epdev           ALL=(ALL:ALL) ALL
gmocciaro       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

有了新用户“dummy”

root@epdev01:/home/gmocciaro# sudo adduser dummy
Adding user `dummy' ...
Adding new group `dummy' (1001) ...
Adding new user `dummy' (1002) with group `dummy' ...
Creating home directory `/home/dummy' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

root@epdev01:/home/gmocciaro# adduser dummy sudo
Adding user `dummy' to group `sudo' ...
Adding user dummy to group sudo

root@epdev01:/home/gmocciaro# su dummy
dummy@epdev01:/home/gmocciaro$ sudo echo "Hi!"
[sudo] password for dummy: 
Hi!

你能帮助我吗?非常感谢。

相关内容