方法1:
運行visudo(或者vi /etc/sudoers)命令
在## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
下方添加一個類似的行
oracle ALL=(ALL) NOPASSWD: ALL
方法2:
vi /etc/pam.d/su
將 auth這一列的注釋號 去除
# Uncomment the following line to implicitly trust users in the "wheel" group.
auth sufficient pam_wheel.so trust use_uid
然后將登陸用戶加入 wheel組
usermod -G wheel oracle
https://blog.csdn.net/u011334621/article/details/52337759