Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-24-2010, 05:37 PM   #1
LQ Newbie
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
/usr/bin/xterm: Could not exec /bin/bash: Permission Denied

Hi all,

I'm in trouble when I log in the fedora as a normal user(not root) today.
When I fill the username and the password press enter key. Then pop up a little window locate at top left corner. And have one line message : "/usr/bin/xterm : Could not exec /bin/bash : Permission Denied"

Then I log in as root, it's ok. And when I open shell and type "su username" then the console print
"su: /bin/bash: Permission denied"

I have checked the perms of "/bin/bash" , it's 755. And I have tried all things which suggested from articles searched through Google. like change / or /root and other directory's permissions but failed.

[root@localhost lib]# ldd /bin/bash =>  (0x00687000) => /lib/ (0x05846000) => /lib/ (0x00aeb000) => /lib/ (0x00974000)
        /lib/ (0x00952000)
[root@localhost lib]# cd /lib
[root@localhost lib]# ll -L
-rwxr-xr-x. 1 root root  179324 2009-11-05 21:07
-rwxr-xr-x. 1 root root 2402248 2009-11-05 21:07
-rwxr-xr-x. 1 root root   28364 2009-11-05 21:07
-rwxr-xr-x. 1 root root   99572 2009-07-27 12:34
[root@localhost lib]# cat /etc/passwd | grep -i username
username:x:500:500:user name:/home/username:/bin/bash
I'm a newbie, so could u give me some suggestion or solution. I will be appreciated.

Thanks & Best Regards,
Su Heng
Old 09-24-2010, 06:15 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What do "file /bin/bash" and "uname -a" and "ls -ld /bin/bash" return?
Old 09-24-2010, 06:31 PM   #3
LQ Newbie
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Originally Posted by AlucardZero View Post
What do "file /bin/bash" and "uname -a" and "ls -ld /bin/bash" return?
[suheng@localhost root]$ uname -a
Linux localhost #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686 i386 GNU/Linux
[suheng@localhost root]$ ls -ld /bin/bash
-rwxr-xr-x. 1 root root 861128 2009-09-16 18:15 /bin/bash
[suheng@localhost root]$ file /bin/bash
/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

Hi man,

I got it. The idea is from a forum who also have a similar trouble. Somebody suggest to check the permissions of /bin
So If /bin have no permission to other user. He/She can't get the permission to access /bin/bash.

Thanks a lot.
Su Heng


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
/usr/bin/env: bad interpreter: Permission denied Master Fox Linux - Software 8 02-09-2012 09:25 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 09:33 AM
/usr/bin/procmail Permission denied-sendmail? sunram Solaris / OpenSolaris 4 02-29-2008 01:53 PM
su: /bin/bash: Permission denied dwarf007 Linux - General 10 01-20-2006 05:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:25 PM.

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