当前位置: 技术问答>linux和unix
sudo: /etc/sudoers is mode 0640, should be 0440问题怎么解决?
来源: 互联网 发布时间:2016-11-02
本文导语: 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/...
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
上面的是我试着解决过程中出现的问题, 请大家参考这个帮我看看怎么解决。
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
/etc/sudoers 的当前权限是0640,应该设置为0440
试试chmod 0440 /etc/sudoers
|
正解!sudo chmod 0400 /etc/sudoers试试