Copy files from read only fs as writable
Mike McCarty
mike.mccarty at sbcglobal.net
Tue Jan 17 05:39:03 UTC 2006
Jonathan Berry wrote:
> Hey everyone,
>
> Is there a way that I can make files from a read only file system copy
> over as writable? I have an NTFS partition (I think the same thing
> happens with, say, a CD) mounted read only and whenever I copy files
> over from it, they are given permissions that exclude the write bit.
> This is mostly just annoying, but I was wondering if there was some
> way to have it automatically set the user writable bit when copying it
> over. Preferably a mount option so that it just works. Any ideas?
>
> Jonathan
>
Reading the man page for cp indicates that --no-preserve=mode
might do what you want.
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
More information about the fedora-list
mailing list