Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [APPL:DarwinDev] Re: cp -f option



On Wed, Oct 11, 2006 at 10:15:40PM +0100, Graham J Lee scratched on the wall:
> On 11 Oct 2006, at 21:29, Jay A. Kreibich wrote:
> 
> >  lacks write permission.  "-f" will overwrite such a file, assuming
> >  the user has permission to grant themselves write permission.
> 
> Presumably it actually will go ahead iff the user has write  
> permissions in the containing directory and (the file is owned by the  
> user or sticky is unset).  You don't need write permissions on a file  
> to delete the file, and cp could just delete the in-the-way file in  
> order to create its new file.

  Good point.  I assume that's correct.

   -j

-- 
                     Jay A. Kreibich | CommTech, Emrg Net Tech Svcs
                        email@hidden | Campus IT & Edu Svcs
          <http://www.uiuc.edu/~jak> | University of Illinois at U/C
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: cp -f option (From: Jeffrey Ellis <email@hidden>)
 >Re: [APPL:DarwinDev] Re: cp -f option (From: "Jay A. Kreibich" <email@hidden>)
 >Re: [APPL:DarwinDev] Re: cp -f option (From: Graham J Lee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.