LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-25-2006, 02:34 AM   #1
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
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.
 
Old 06-25-2006, 02:50 AM   #2
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
this thread is relative and might solve your problem too:
http://www.linuxquestions.org/questi...d.php?t=457474
 
Old 06-25-2006, 03:14 AM   #3
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Original Poster
Rep: Reputation: 15
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. :-(
 
Old 06-25-2006, 03:36 AM   #4
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
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>
 
Old 10-01-2007, 02:24 PM   #5
hferretluv
Member
 
Registered: Sep 2005
Location: Washington state
Distribution: fedora core 9 i386 - x86
Posts: 44
Blog Entries: 1

Rep: Reputation: 15
Question AVC Denials

Quote:
Originally Posted by SlackDaemon View Post
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
 
Old 01-29-2010, 09:46 AM   #6
aceqbaceq
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by fedora4002 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
su: /bin/bash: Permission denied dwarf007 Linux - General 10 01-20-2006 05:32 PM
/bin/bash: bad interpreter: Permission denied cap_ahab Linux - General 4 01-17-2006 09:11 AM
Cannot execute /bin/bash: Permission denied Hegemon Linux - General 4 01-19-2004 05:13 AM
cannot execute /bin/bash: Permission Denied peeples Linux From Scratch 24 10-25-2002 09:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration