Custom UID/GID and file permissions #529
Replies: 4 comments
-
|
Right now I don't think there is a way around it. It takes the Windows OwnerSID and stripped off the last number for UID. You could try running chown from cygwin, or a msys program (git bash for Windows for example). There is a bit of posix code in there. In future we might have to think about what we could do. btrfs has a Registry entry where you can map Windows SID to Unix UID, but that wouldn't be my favourite. Could do a small util that lets you. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. I think I will change the owner in Linux if required then. Also, what about the file permissions? Are they just defaulted to all zero? |
Beta Was this translation helpful? Give feedback.
-
|
are they? Hmmm files it should use: is that not what you see? |
Beta Was this translation helpful? Give feedback.
-
|
Just re-checked. It is --------- (0000) here on Linux (NixOS), for files created in Windows. By the way, I'm using acltype=posix, not sure if it's related. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the same ZFS pool for Windows and Linux, and I wonder if there is a way to set the UID/GID and permissions of newly created/edited files on Windows.
I would like to set them to, e.g. 1000:1000 0664 (files)/0775 (dirs) or so. Is it already supported, or only defaults are available for now?
Previously I got root:root with 0000 permission, and now on zfswin-2.3.1rc12 (I haven't got time to upgrade to rc13 yet), I have 1001:1001 with 0000 permission. (even directories are non-executable, as far as I remember)
Beta Was this translation helpful? Give feedback.
All reactions