Re: (fedora) Re: running shell scripts from external USB disk

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

 



Jacob (=Jouk) Jansen wrote:
> Karsten wrote on 19-MAY-2006 16:20:35.24
>> 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????)
> [snip]
>> Check the output of 'mount' for that device. I'm pretty sure that it has
>> been mounted with the 'noexec' flag.
>  You are right.
>  How to change this? This USB disk is mounted automatically when pluged in.
> I cannot edit fstab since than the machine fails to boot when the disk is
> not present.
> 
>                         Jouk
> 
You can add a local HAL rule to override the default behavior when
mounting USB drives. For security reasons, you may want to make the
rule specific to that USB drive. You will want to replace the noexec
option with the nosuid option so that someone can not plug in a USB
drive with a suid root binary that they can use to hack the system.
(Easy way to crack a system - suid root an editor, and modify
/etc/passwd so you can log in as root.)

If you want to put a rule in /etc/fstab for the drive, and still
have the system boot without the drive plugged in, look at the
noauto option. This will cause the mount to be skipped when the
system mounts file systems at boot.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-- 
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