su: /bin/bash: Permission denied
This problem is a bit strange. The machine is installed with FC4. I can log in as root directly. However, whenver I log in as a normal user and use su, the following error appear
su: /bin/bash: Permission denied The same thing also happens when I tried su xxxx after logging as root. I checked /bin/bash and file permission and did not see anything wrong. I did google around and did not find any useful suggestion. Thanks in advance for your help. |
this thread is relative and might solve your problem too:
http://www.linuxquestions.org/questi...d.php?t=457474 |
After digging around for one hour, finally figure out the reason:
It has something to do with SELINUX. Once I typed setenforce 0, everything is working fine. Now, it is time to dig around SELINUX. :-( |
Ayup... SELinux caused me great deal of pain while setting up a new website. You will be able to identify if the problem is related to SELinux by searching through /var/log/messages for 'AVC' denials.
If you want to keep on running SELinux but unconfine some binaries and files you'd have to change the security context of the file in question to unconfined_t chcon -t unconfined_t </path/filename> |
AVC Denials
Quote:
What is with selinux? Thanks |
Quote:
all folder must be 755 and lost+found = 770 proc = 555 root = 750 tmp =777 |
All times are GMT -5. The time now is 06:04 PM. |