问题描述:
sudo: unable to open /etc/sudoers.d/README: Permission denied sudo: unable to open /etc/sudoers.d/ceph: Permission denied sudo: unable to open /etc/sudoers.d/cinder_sudoers: Permission denied sudo: unable to open /etc/sudoers.d/neutron_sudoers: Permission denied sudo: unable to open /etc/sudoers.d/nova_sudoers: Permission denied 或者: can’t open /etc/sudoers.d/README: 权限不够
解决方案:
chown -R root:root /etc/sudoers.d chmod u=rwx,g=rx,o=rx /etc/sudoers.d/ chmod u=r,g=r,o= /etc/sudoers.d/* 将sudoers.d文件夹的权限设置成root用户和root组, root组只有执行的权限,只有root用户有写入的权限。
转载自Magento架构师的笔记 | 恢复Ubuntu中sudo文件权限
原文链接地址:http://www.magentonotes.com/ubuntu-file-sudo.html
http://blog.csdn.net/Moolight_shadow/article/details/42196479