suse添加普通用户赋予root所有权限时出现问题___1


问题:
sudo:sudo /etc/sudoers is world writable
sudo:no valid sudoers sources found ,quitting
sudo:unable to initialize policy plugin

 

 

#无法使用chmod修改权限
demo:Desktop piaoyu.qiu$ ls -la /etc/sudoers
-rwxrwxrwx  1 root  wheel  1371  8  9 11:28 /etc/sudoers
demo:Desktop piaoyu.qiu$ chmod 440 /etc/sudoers
chmod: Unable to change file mode on /etc/sudoers: Operation not permitted

#切换到root用户
demo:Desktop piaoyu.qiu$ su
Password:你自己设置的密码
sh-3.2# ls -l /etc/sudoers
-rwxrwxrwx  1 root  wheel  1371  8  9 11:28 /etc/sudoers
sh-3.2# chmod 0440 /etc/sudoers
sh-3.2# ls -l /etc/sudoers
-r--r-----  1 root  wheel  1371  8  9 11:28 /etc/sudoers
sh-3.2# exit


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM