Friday, August 29, 2008

Unable to 'su' on RHEL linux

A root user wasn't able to su to any other user. After executing su command neither it will switch to other user nor shell will change.

It was found that this was because corrupted 'su' binary.

[root@lxdevtst ~]# which su
[root@lxdevtst ~]# ls -l /bin/su
-rwsr-xr-x 1 root root 0 Jul 18 11:49 /bin/su

See above, the file size is zero. To resolve this, forcefully installed the 'coreutils' rpm, which provides this binary.

No comments: