From: "Mauricio Fernández" Date: 2003-01-16T02:45:40+09:00 Subject: Re: bad interpreter On Wed, Jan 15, 2003 at 06:49:21AM +0900, Arnaudo Massimo wrote: > * Stoyan Zhekov [marted� 14 gennaio 2003, alle 09:08]: > > > > > > bash: ./test.rb: /usr/local/bin/ruby: bad interpreter: Permission denied > > > > Other two questions: > > 1. What are the permitions on test.tb? 755 (do you have +x for the current user) > > -rwxr-xr-x 1 masarn1 masarn1 45 gen 10 22:30 /home/masarn1/Ruby/test3.rb > > > 2. What are the permitions of current partition? - see if you have in /etc/fstab > > something like: .............. ,noexec for the partition with test.rb > > /dev/hda10 / ext3 errors=remount-ro 0 1 > /dev/hda9 /home reiserfs user 0 0 Must be this!!!! man mount [...] user Allow an ordinary user to mount the file system. The name of the mounting user is written to mtab so that he can unmount the file system again. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid). [...] change the second line to /dev/hda9 /home/ reiserfs user,exec 0 0 or better yet to /dev/hda9 /home reiserfs defaults 0 0 As you normally won't need to (un)mount your home partition manually w/ a normal user. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Turn right here. No! NO! The OTHER right!