普通用户su到root免密码

匿名 (未验证) 提交于 2019-12-02 23:54:01

方法1:

运行visudo(或者vi /etc/sudoers)命令
在## Same thing without a password

下方添加一个类似的行

方法2:
vi /etc/pam.d/su

# Uncomment the following line to implicitly trust users in the "wheel" group.

然后将登陆用户加入 wheel组
usermod -G wheel oracle

https://blog.csdn.net/u011334621/article/details/52337759

来源: https://www.cnblogs.com/i-shu/p/11349615.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!