我正在i3笔记本上运行ubuntu12.04。我错误地更改了/etc文件夹的权限并更改了用户(根用户),在尝试使用sudo时,我得到了一个错误,例如:
sudo: /etc/sudoers is made 0777, should be 0440
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin我尝试进入恢复模式和根shell提示符,然后我执行了以下操作
chown root:root /etc/sudoers
chmod 440 /etc/sudoers
chown -R root:root /etc/sudoers.d
chmod 755 /etc/sudoers.d
chmod 440 /etc/sudoers.d/*但是,在每个命令之后,它显示:
Read only file systems and it does nothing. Thanks in advance for your help.发布于 2013-05-06 10:43:33
将文件系统重装为读/写
mount -o remount,rw /再次运行那些chown/chmod。
https://askubuntu.com/questions/291420
复制相似问题