LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-18-2004, 01:45 PM   #1
Hegemon
Member
 
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
Cannot execute /bin/bash: Permission denied


I just finshed installing the ATI drivers and decided to see if X wound work as a normal user so i alt+f3ed to the terminal where i was logged in, typed startx and got a permission denied error. I tried rebooting howver when i login i get:

Code:
ender login: test
Password:
Linux 2.6.1.
Last login: Sun Jan 18 19:30:17 +0000 2004 on tty2.
No mail.
Cannot execute /bin/bash: Permission denied

ender login:
I created the test account after i got his probelem to see if a new account would fix it but it obviously didn't =(

The permissions on /bin/bash seem fine:
Code:
bash-2.05b# ls -lh /bin/bash
-rwxr-xr-x    1 root     bin          614K Jun 24  2003 /bin/bash
bash-2.05b#
I checked the /ec/groups file and i carn't see anything obviously wrong with it but i could have missed somthing. The drivers did do some stuff with groups im not sure if it modified anything important but it did ask if i wanted the opengl stuff accessable to all users, people in the users group, root only and a few others. Its also possible i toasted somthing without realising it or my filesystem became correpted etc... Root user can login fine ofcourse.
 
Old 01-18-2004, 02:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
DOH ... sorry, just crawled out of bed ;)

Does test have a all required permissions on
his home, and rx on /bin?


Cheers,
Tink

Last edited by Tinkster; 01-18-2004 at 02:11 PM.
 
Old 01-19-2004, 01:19 AM   #3
Hegemon
Member
 
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Original Poster
Rep: Reputation: 15
Permissions seem fine, its almost like i have somhow disabled the users group from being able to execute anything.

Code:
drwxr-xr-x    2 root     bin          4.0K Jan  4 04:51 bin
Code:
drwx--x--x    2 test     users          22 Jan 19 06:29 test
 
Old 01-19-2004, 02:03 AM   #4
Hegemon
Member
 
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Original Poster
Rep: Reputation: 15
Figured it out

For some reason the permissions on /lib and /opt were changed from 755.
Don't know why they changed, probally never will but i can login fine now
 
Old 01-19-2004, 04:13 AM   #5
Hegemon
Member
 
Registered: Jan 2002
Location: Australia
Distribution: Gentoo
Posts: 103

Original Poster
Rep: Reputation: 15
Hmm seems they wern't the only directories changed, i've reinstalled becuase it seemed eaiser that finding them all and changing them back.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/bin/.: Permission denied aizkorri Programming 9 03-17-2010 01:33 PM
su: /bin/bash: Permission denied dwarf007 Linux - General 10 01-20-2006 04:32 PM
Problem Cannot execute /bin/bash: Permission denied xeo Linux - Software 2 10-13-2004 10:55 PM
/bin/sh Permission Denied vi0lat0r Linux - Newbie 1 08-26-2003 07:46 AM
cannot execute /bin/bash: Permission Denied peeples Linux From Scratch 24 10-25-2002 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:38 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
Open Source Consulting | Domain Registration