running shell scripts from external USB disk

Karsten Hopp karsten at redhat.de
Fri May 19 13:17:09 UTC 2006


On Fri, May 19, 2006 at 04:00:07PM +0200, Jacob (=Jouk) Jansen wrote:
> Hi all,
> 
> I have a FC5 system with an internal disk and a external USB disk withanext3 partition on it. If a shell script (bash,csh etc..) is located on the
> internal drive it works fine. If I copy it to the USB disk I get problems:
> (why????)
> 
> 
> aaee-jj ) ./test.sh
> ./test.sh: Permission denied.
> aaee-jj ) ty test.sh
> #!/bin/tcsh
> aaee-jj ) ls -al *.sh
> -rwx--x--x 1 joukj joukj 1683 Apr 10 15:36 sg-dupes-mv.sh
> -rwx------ 1 joukj joukj   12 May 16 16:15 test.sh
> aaee-jj ) who am i
> joukj    pts/4        2006-05-19 16:03 (:0.0)
> aaee-jj )
> 

Check the output of 'mount' for that device. I'm pretty sure that it has
been mounted with the 'noexec' flag.

   Karsten

--
 Karsten Hopp <karsten at redhat.de>   GPG 1024D/70ABD02C
 Fingerprint D2D4 3B6B 2DE4 464C A432 210A DFF8 A140 70AB D02C
 Red Hat Deutschland, Hauptstaetter Str.58
 70178 Stuttgart, Tel.+49-711-96437-0, Fax +49-711-96437-111




More information about the users mailing list