Re: Copy files from read only fs as writable

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

 



Mike McCarty wrote:

I'd imagine it'd have to be mounted as writable to work in the manner
that you hope (I can never remember, for sure, if umask options in fstab
lets you clear or set permissions, I think it clears masked bits).  I
suppose you could make a script that did a copy then a chmod on files,
and use that instead of directly using the cp command.

tar cC .. . | tar xpC ..


I have a slightly different annoyance that I haven't resolved:  All
files on a CD are mounted as executable.  I don't want that, it brings

[summer@bilby ~]$ ls /media/USB_DISK/
total 3096
drwxr-xr-x  3 summer    8192 Jan 12 14:29 Access10 folder
-rwxr-xr-x  1 summer 2150400 Jan 12 14:22 Access10.exe
-rwxr-xr-x  1 summer       0 Jan 12 14:23 Autorun.inf
dr-xr-xr-x  2 summer    8192 Jun 23  2005 assets
-rwxr-xr-x  1 summer  899075 Jan 12 12:23 cccloner.dmg
-rwxr-xr-x  1 summer   37888 May 14  1997 instsrv.exe
-rwxr-xr-x  1 summer   13312 May 14  1997 srvany.exe
-rwxr-xr-x  1 summer    9856 May 14  1997 srvany.wri
-rwxr-xr-x  1 summer   24287 Jan  5 14:34 srvany.zip
[summer@bilby ~]$



Not on my machine, they aren't. Hmm. That's interesting.

Here's my fstab entry... (edited for space)

/dev/cdrom /mnt/cdrom udf,iso9660 noauto,user,kudzu,exec,ro 0 0

It indeed mounts as RO, but not X.

about problems.  If I only ever mounted ISO9660 discs I could change my
fstab configuration to resolve that (looking at what options are
available to me in the man file about this - mode presetting), but I
also mount UDF discs, and the option isn't compatible (for a single
fstab line mounting discs in either format, automatically).  Mounting
them no-exec doesn't help.


Hmm. Odd. I run FC2, perhaps something changed?

My guess is it depends:-)

If the CD is created with rock ridge extensions, the permissions will be correct (that's what the extensions are for).

Otherwise (typical of Windows and rellies), the permissions are much as on my USB stick above; that's vfat.

Mote, there's magic you can put in the mount commandline (and where ever the command's built) to say "noexec" and some other options.





--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux