This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [Windows Security] User rights inherited from parent directory


----Original Message----
>From: Franz Haeuslschmid
>Sent: 12 August 2005 12:19


> When I copy a file into that folder using the Windows Explorer,
> it works as expected by me.  However---now the relation to
> cygwin---using `cp' sets the user rights in the access list of
> the copied file to other values.

  Well, yes, of course it does.  'cp' behaves like the POSIX version,
setting rights according to the umask; and POSIX only knows about UGO
rights, so the newly-copied files get the nearest approximation in that
scheme to their original ACLs.  'cp' does not know about Windoze ACLs
because POSIX does not know about Windoze ACLS.  If you want to have files
that use the POSIX perms model, use cygwin's 'cp' command, but if you want
to have files that use the full Windoze ACLs, use a windows copy command.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]