View previous topic :: View next topic |
Author |
Message |
MIT_Service Guru
Joined: 29 Nov 2002 Posts: 355
|
Posted: Tue Jul 08, 2003 3:21 pm Post subject: executing shell scripts on mounted harddisks |
|
|
Hi
I want to execute a shell script from a mounted harddisk, but I always get an error about me having no permission.
Code: |
bash: ./test.sh: /bin/sh: bad interpreter: Permission denied
|
The disks entry in fstab is:
Code: |
/dev/hda5 /mnt/d ext3 noatime,user 0 0
|
I have all necessary permissions for the file:
-rwxr-xr-x 1 mehh users 27 2003-07-08 17:02 test.sh
I am logged in as 'mehh' and i'm in the group 'users'
The same file copied to my homedir works flawlessly.
Any idea what is causing this? |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Jul 08, 2003 3:30 pm Post subject: |
|
|
The "user" option implies "noexec". You need to add "exec" to the list of options in fstab or the mount command to make it mount it so that you can run executables from this partition. |
|
Back to top |
|
|
MIT_Service Guru
Joined: 29 Nov 2002 Posts: 355
|
Posted: Tue Jul 08, 2003 3:49 pm Post subject: |
|
|
Thanks a lot. I (obviously) wasn't aware of that. |
|
Back to top |
|
|
|