sudo: /etc/sudoers is mode 0640, should be 0440问题怎么解决?
yoyoadm@yoyoadm-desktop:/usr/bin$ sudo -u postgres dropdb SSDB
sudo: /etc/sudoers is mode 0640, should be 0440
sudo: no valid sudoers sources found, quitting
yoyoadm@yoyoadm-desktop:/usr/bin$ chmod u-w /etc/sudoers
chmod: changing permissions of `/etc/sudoers': Operation not permitted
yoyoadm@yoyoadm-desktop:/usr/bin$ sudo chmod u-w /etc/sudoers
sudo: /etc/sudoers is mode 0640, should be 0440
sudo: no valid sudoers sources found, quitting
yoyoadm@yoyoadm-desktop:/usr/bin$ sudo chmod u-w /etc/sudoers
sudo: /etc/sudoers is mode 0640, should be 0440
sudo: no valid sudoers sources found, quitting
yoyoadm@yoyoadm-desktop:/usr/bin$ sudo chmod 440 /etc/sudoers
sudo: /etc/sudoers is mode 0640, should be 0440
sudo: no valid sudoers sources found, quitting
yoyoadm@yoyoadm-desktop:/usr/bin$ sudo chmod 0440 /etc/sudoers
sudo: /etc/sudoers is mode 0640, should be 0440
sudo: no valid sudoers sources found, quitting
上面的是我试着解决过程中出现的问题, 请大家参考这个帮我看看怎么解决。
------解决方案--------------------看提示
/etc/sudoers 的当前权限是0640,应该设置为0440
试试chmod 0440 /etc/sudoers
------解决方案--------------------
问题所在都明显的给出了。 还不仔细看看!
楼主还要学习基础。
------解决方案--------------------[Quote=引用:]
看提示
/etc/sudoers 的当前权限是0640,应该设置为0440
试试chmod 0440 /etc/sudoers
[/Quote]
正解!sudo chmod 0400 /etc/sudoers试试