Re: running shell scripts from external USB disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



joukj@xxxxxxxxxxxxxxxxxxxx (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 )


                       Jouk

Check the contents of the script. You can get a "permission denied" from a command within the script. This will look just like you are getting "permission denied" for the script itself. Also, look at ownership and permissions for the files the script acts on. Could be the USB drive is getting mounted as owned by root or the UID or GID for the files are different on the USB drive than what you expect.

Cheers,
Dave

--
Politics, n. Strife of interests masquerading as a contest of principles.
-- Ambrose Bierce

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux