Re: force file attributes

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

 



On Fri, 2004-08-06 at 00:43, A.J. Bonnema wrote:
> Micheal wrote:
> > On Fri, 2004-08-06 at 00:10, A.J. Bonnema wrote:
> > 
> >>How can I force a copied file to always have u+w on? Is it one of the 
> >>sticky bits or is it just not possible?
> >>
> >>Asking this because often cd's have the w-bit off which can be quite 
> >>annoying, because I have to change the w-bit on with chmod afterward.
> >>btw I use mc to copy files (usually).
> >>I run an updated FC2 system.
> >>
> >>Guus.
> >>
> >>-- 
> >>A.J. Bonnema, Leiden The Netherlands,
> >>user #328198 (Linux Counter http://counter.li.org)
> > 
> > 
> > 
> > Via the great "man cp" ... 
> > 
> > -p     same as --preserve= mode, ownership,
> > timestamps                                                                                
> > --preserve[=ATTR_LIST] preserve   the   specified   attributes  
> > (default:  mode,owner-ship,timestamps) and security contexts, if 
> > possible  additional attributes: links, all
> > 
> > This should do it for you
> > 
> > HTH 
> > 
> > Micheal
> > 
> 
> Hi Michael,
> 
> Thanks for you answer, but I need the opposite. I want the write 
> attribute to be set even if the original file does not have the write 
> attibute set, depending on the target directory.
> 
> Possible?
> 
> Guus.
> -- 
> A.J. Bonnema, Leiden The Netherlands,
> user #328198 (Linux Counter http://counter.li.org)

A.J

Sorry about that, Its late here in the US... 

I don't think there is going to be a one stop shop for that.  I tried
googling but no luck there.

You "could" write a bash script to copy the file and chmod +w it, that
might save you a few keystrokes.

Other than that I'm out of ideas

Micheal

Attachment: signature.asc
Description: This is a digitally signed message part


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

  Powered by Linux