public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problem with cp.exe (in Cygwin 3.6 64 bit): permission preserve
@ 2020-10-13 13:00 vinay Hegde
  0 siblings, 0 replies; only message in thread
From: vinay Hegde @ 2020-10-13 13:00 UTC (permalink / raw)
  To: cygwin

Hello Cygwin Team,
We are upgrading Cygwin from 1.7.31 32 bit to 3.6 64 bit.

With the earlier version, 'cp -fp' command used to work without any
error. Now, we get an error like, 'cp: preserving permissions for
<file_name> not supported.

Here is my understanding about ACLs & File permission in Cygwin:
Windows ACLs will be translated/mapped to POSIX like in Cygwin (This
includes user, group & permissions). Cygwin uses some logic to
implement this (using Solaris API, using SFU, ACEs accumulated for the
'access allowed' etc.)

I understand that, POSIX style is introduced from version 1.7.34.

If my understanding is correct, prior to version 1.7.34, it was using
UNIX like permission(not POSIX). In both cases (UNIX/POSIX),
permission preserve has no real meaning.
To disable this translation(to UNIX/POSIX), we had to set 'nontsec'
CYGWIN variable in old Cygwin and we have to set 'noacl' in
/etc/fastab for the new Cygwin

But my question here is,
'cp -fp' was working with Cygwin 1.7.31. Why it is NOT working now
with Cygwin 3.6?
Note: We were NOT using 'nontsec' before & now, it's equivalent
'noacl' is also not used.
If I use 'noacl' in the cygwin, 'cp -fp' doesn't complain.

Regards
Vinay Hegde

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-13 13:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13 13:00 Problem with cp.exe (in Cygwin 3.6 64 bit): permission preserve vinay Hegde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).