Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

su incorrect password error

qazianeelJan 8 2013 — edited Jan 8 2013
Hello friends,

I'm using RHEL 5, the problem I'm facing is that the su command doesn't work. If I logged in as root user I can switch to other user as it doesn't requires password but when I try to revert back to root account it gives me error "su : incorrect password ". Similarly I'm unable to switch from one user account to another.

I've tried some steps mentioned on other forums but none of them worked for me, like setting permission of on su command, password -u command to unlock accounts etc.

Someone recommended to change /etc/pam.d/su and /etc/pam.d/sshd but being newbie I don't know how to change them, the contents of these file are:

*/etc/pam.d/su*
auth sufficient pam_rootok.so
# 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
auth include system-auth
account sufficient pam_succeed_if.so uid = 0 use_uid quiet
account include system-auth
password include system-auth
session include system-auth
session optional pam_xauth.so
*/etc/pam.d/sshd:*
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
session optional pam_keyinit.so force revoke
session include system-auth
session required pam_loginuid.so
Please help.

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2013
Added on Jan 8 2013
1 comment
1,053 views