I am currently working on a remote RedHat server(RHEL version 6.7 x86_64).
I can login as a user by using userID and password which is provided by
the server administrator.
But when I try to login as root by using command sudo su
,the console
gets hang infinitely.
To get out of this, I have to press ctrl+c key.
Also when I use su - root
or su root
, it shows incorrect password.
This was not the case some days ago.
Earlier I was able to login as root by using sudo su
and then entering the same password provided by the server administrator.
To resolve this issue,I have done the following things:
- Checked
/etc/hosts
,/etc/passwd
,/etc/shadow
,/etc/securetty
files - Also checked
/etc/pam.d/sudo
and/etc/pam.d/su
files chmod 4755 /bin/su
chmod 644 /etc/securetty
- checked root account expiry date(not expired)
What else do I need to do to resolve this issue?
No comments:
Post a Comment