01 November 2006

/bin/sh: bad interpreter: Permission denied

Got permission problem when run firefox2.

# ./firefox
# ./firefox: Permission denied

Just realize that all executable script have permission problem although give all permission to the file, i.e. chmod 777 script.sh. Even root have this permission problem.

Don't know how I edit the /etc/fstab, but my /home directory mount as 'auto'.
# cat /etc/fstab
/dev/hda1 /boot ext2 defaults 1 2
/dev/hda3 /home auto defaults,user 0 0

So, the solution is add option exec to the filesystem at /etc/fstab. My new /etc/fstab
# cat /etc/fstab
/dev/hda1 /boot ext2 defaults 1 2
/dev/hda3 /home auto defaults,user,exec 0 0


ref: http://forums.fedoraforum.org/archive/index.php/t-19374.html

1 comment:

danullom said...

Killer tip. Thank you. I was about to run out the house screaming over this one.