The user root can't do `su` to any other user and gets `Permission denied` Error.
Issue
- When trying to
suto a user id from root , it gives the below error message .
# su - test
su: /usr/bin/ksh: Permission denied
- The permissions for the
kshfile are verified with the working servers and everything is the same .
# ls -l /usr/bin/ksh
lrwxrwxrwx 1 root root 28 Apr 12 2010 /usr/bin/ksh -> /etc/alternatives/ksh-usrbin
# ls -l /etc/alternatives/ksh-usrbin
lrwxrwxrwx 1 root root 10 Mar 29 08:27 /etc/alternatives/ksh-usrbin -> /bin/ksh93
# ls -l /bin/ksh93
-rwxr-xr-x 1 root root 1302432 Jun 28 08:08 /bin/ksh93
Environment
- Red Hat Enterprise Linux 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
