
當我運行命令時su
,它說:
roger@RogerPC:/$ sudo su
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
答案1
如果您的電腦上安裝了「pkexec」軟體包,請嘗試以下命令並在出現提示時輸入密碼。
pkexec chmod go-w /usr/lib/sudo/sudoers.so
或依照以下步驟操作:
重新啟動機器並進入恢復模式。然後,進入 root 提示符號。並執行以下命令:
1. mount -o remount,rw /
2. chmod 644 /usr/lib/sudo/sudoers.so
3. chown root:root /usr/lib/sudo/sudoers.so
4. reboot
它應該可以解決你的問題。