解决不运行普通用户su到root的问题

[grid@scaqad02adm02 .ssh]$ su - root
Password:
su: Permission denied

在grid用户su到root时,碰到上面的错误

这个错误可以通过将grid用户加到wheel组解决,也可以注释掉/etc/pam.d/su里面的这一行

#auth required pam_wheel.so use_uid

/etc/pam.d/su

# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth		sufficient	pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth		required	pam_wheel.so use_uid

你可能感兴趣的:(linux)