Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-25-2006, 02:34 AM
|
#1
|
Member
Registered: Mar 2004
Posts: 135
Rep:
|
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.
|
|
|
06-25-2006, 03:14 AM
|
#3
|
Member
Registered: Mar 2004
Posts: 135
Original Poster
Rep:
|
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. :-(
|
|
|
06-25-2006, 03:36 AM
|
#4
|
Member
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222
Rep:
|
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>
|
|
|
10-01-2007, 02:24 PM
|
#5
|
Member
Registered: Sep 2005
Location: Washington state
Distribution: fedora core 9 i386 - x86
Posts: 44
Rep:
|
AVC Denials
Quote:
Originally Posted by SlackDaemon
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>
|
sounds good, but what do you do with fedora 7. You change the permissions, and in less than 5 minutes, it's back to the same denials. With friends added. It got to the point where it would not let me use my cd and dvd rom drives, access my mail, etc... And THEN, it started denying anything with defaut_t
What is with selinux?
Thanks
|
|
|
01-29-2010, 09:46 AM
|
#6
|
LQ Newbie
Registered: Apr 2009
Posts: 3
Rep:
|
Quote:
Originally Posted by fedora4002
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.
|
i've solved today exactly the same problem by adjusting permissions on all folders in root folder
all folder must be 755
and
lost+found = 770
proc = 555
root = 750
tmp =777
|
|
|
All times are GMT -5. The time now is 01:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|