Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
executing shell scripts on mounted harddisks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MIT_Service
Guru
Guru


Joined: 29 Nov 2002
Posts: 355

PostPosted: Tue Jul 08, 2003 3:21 pm    Post subject: executing shell scripts on mounted harddisks Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jul 08, 2003 3:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
MIT_Service
Guru
Guru


Joined: 29 Nov 2002
Posts: 355

PostPosted: Tue Jul 08, 2003 3:49 pm    Post subject: Reply with quote

Thanks a lot. I (obviously) wasn't aware of that. ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum