LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-24-2010, 05:37 PM   #1
suheng
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.

Code:
[root@localhost lib]# ldd /bin/bash
        linux-gate.so.1 =>  (0x00687000)
        libtinfo.so.5 => /lib/libtinfo.so.5 (0x05846000)
        libdl.so.2 => /lib/libdl.so.2 (0x00aeb000)
        libc.so.6 => /lib/libc.so.6 (0x00974000)
        /lib/ld-linux.so.2 (0x00952000)
[root@localhost lib]# cd /lib
[root@localhost lib]# ll -L libtinfo.so.5 libdl.so.2 libc.so.6 ld-linux.so.2
-rwxr-xr-x. 1 root root  179324 2009-11-05 21:07 ld-linux.so.2
-rwxr-xr-x. 1 root root 2402248 2009-11-05 21:07 libc.so.6
-rwxr-xr-x. 1 root root   28364 2009-11-05 21:07 libdl.so.2
-rwxr-xr-x. 1 root root   99572 2009-07-27 12:34 libtinfo.so.5
Code:
[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
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,817

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

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
What do "file /bin/bash" and "uname -a" and "ls -ld /bin/bash" return?
Code:
[suheng@localhost root]$ uname -a
Linux localhost 2.6.31.5-127.fc12.i686.PAE #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.
Regards,
Su Heng
 
  


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
/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


All times are GMT -5. The time now is 10:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration