项目经验----出错错误代码__sudo

来源:互联网 发布:淘宝代购怎么辨别真假 编辑:程序博客网 时间:2024/06/07 14:57

1.错误显示:

sudo:无法 stat /etc/sudoers.d/README:没有那个文件或目录

2.解决方法:

查询:dzu@computer:~$ ls -l /etc/sudoers.d/ls: 无法打开目录/etc/sudoers.d/: 权限不够dzu@computer:~$ ls -ld /etc/sudoers.ddr--r----- 2 root root 4096  815 20:50 /etc/sudoers.d使用如下方法:sudo chown root:root /etc/sudoers.dsudo chmod 755 /etc/sudoers.d

参考链接:https://askubuntu.com/questions/482932/sudo-unable-to-stat-etc-sudoers-d-readme-no-such-file-or-directory

原创粉丝点击