On 23/01/2024 22:54, Vincent Rivière via Cygwin wrote:
Hi,
I'm facing a really weird issue with NTFS permissions.
$ umask
0022
$ cd /cygdrive/h/
what is H ?
$ mkdir a
$ ls -ld a
drwxr-xr-x 1 vincent vincent 0 Jan 23 22:35 a
# You can see that permissions are fine.
$ getfacl a
# file: a
# owner: vincent
# group: vincent
user::rwx
group::r-x
other::r-x
default:user::rwx
default:group::r-x
default:other::rwx
# I have no idea if those default: values are good.
$ cd a
$ mkdir b
$ ls -ld b
drwxr-xrwx+ 1 vincent vincent 0 Jan 23 22:44 b
# Bogus permissions!
$ getfacl b
# file: b
# owner: vincent
# group: vincent
getfacl: b: Invalid argument
Am I missing something, or this is a Cygwin bug?
Cheers,
my guess,
it is related to the remote server as I see as expected
$ cd /cygdrive/z
$ mkdir a
$ getfacl a
# file: a
# owner: Unknown+User
# group: Unix_Group+0
user::rwx
group::rwx
other::rwx
$ cd a
$ mkdir b
$ getfacl b
# file: b
# owner: Unknown+User
# group: Unix_Group+0
user::rwx
group::rwx
other::rwx
Use csih package for more info on your remote package
$ /usr/lib/csih/getVolInfo .
Device Type : 0x07
Characteristics : 0x00000010
FILE_REMOVABLE_MEDIA : FALSE
FILE_REMOTE_DEVICE : TRUE
Volume Name : <marco-backup>
Serial Number : 2870488680
Max Filenamelength : 255
Filesystemname : <NTFS>
Flags : 0x0001002f
FILE_CASE_SENSITIVE_SEARCH : TRUE
FILE_CASE_PRESERVED_NAMES : TRUE
FILE_UNICODE_ON_DISK : TRUE
FILE_PERSISTENT_ACLS : TRUE
FILE_FILE_COMPRESSION : FALSE
FILE_VOLUME_QUOTAS : TRUE
FILE_SUPPORTS_SPARSE_FILES : FALSE
FILE_SUPPORTS_REPARSE_POINTS : FALSE
FILE_SUPPORTS_REMOTE_STORAGE : FALSE
FILE_RETURNS_CLEANUP_RESULT_INFO : FALSE
FILE_SUPPORTS_POSIX_UNLINK_RENAME : FALSE
FILE_VOLUME_IS_COMPRESSED : FALSE
FILE_SUPPORTS_OBJECT_IDS : TRUE
FILE_SUPPORTS_ENCRYPTION : FALSE
FILE_NAMED_STREAMS : FALSE
FILE_READ_ONLY_VOLUME : FALSE
FILE_SEQUENTIAL_WRITE_ONCE : FALSE
FILE_SUPPORTS_TRANSACTIONS : FALSE
FILE_SUPPORTS_HARD_LINKS : FALSE
FILE_SUPPORTS_EXTENDED_ATTRIBUTES : FALSE
FILE_SUPPORTS_OPEN_BY_FILE_ID : FALSE
FILE_SUPPORTS_USN_JOURNAL : FALSE
FILE_SUPPORTS_INTEGRITY_STREAMS : FALSE
FILE_SUPPORTS_BLOCK_REFCOUNTING : FALSE
FILE_SUPPORTS_SPARSE_VDL : FALSE
FILE_DAX_VOLUME : FALSE
FILE_SUPPORTS_GHOSTING : FALSE
Regards
Marco
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple