You are not logged in.

#1 2006-08-08 01:24:58

flipper
Member
Registered: 2006-07-16
Posts: 24

cannot execute bash: permission denied

hi...i get the above error when i try to login as root...which as you can imagine is really not very good!!
my .bash_profile is also not the same..it almost has nothnig in it...about 3 lines..thats it.
ive chmod 755 for the .bash_profile and .bashrc files...and checked lib and bin and they r all ok...
any ideas?

Offline

#2 2006-08-08 02:31:34

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: cannot execute bash: permission denied

What permission you have for /bin/bash?
I have:

 $ ls -l /bin/bash 
-rwxr-xr-x 1 root root 506K Apr 29 15:41 /bin/bash

Offline

#3 2006-08-08 08:20:53

flipper
Member
Registered: 2006-07-16
Posts: 24

Re: cannot execute bash: permission denied

sorry for the delay..needed to sleep..
yup...my permissions for /bin/bash are -rwxr-xr-x

Offline

#4 2006-08-08 08:29:21

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: cannot execute bash: permission denied

Check in /etc/fstab that you have the correct options set for the partition on which you are trying to execute the script.  I once made my /home noexec and couldn't run anything...

Offline

#5 2006-08-08 08:51:46

flipper
Member
Registered: 2006-07-16
Posts: 24

Re: cannot execute bash: permission denied

checked it...its fine..
/dev/hda1 / ext3 defaults 0 1 is the root line.
i tried copying my /etc/profile to .bash_profile too...but it doesnt work still.
im sure its something wrong with my .bash_profile.

Offline

Board footer

Powered by FluxBB