Irfan Latif wrote on 9/5/20 1:18 PM:
Hi,
With FUSE it's possible to let multiple users see themselves as file
owners. I'm not a developer, so cannot be more specific. To quote an
example there is /*bindfs */*--mirror=/user1:user2/* mount option
(BINDFS manpage <https://bindfs.org/docs/bindfs.1.html>).
E.g. we have two Linux users in /*UserMapping*/ file:
user1::S-1-5-21-1585798421-1247125503-26858048-1001
:user1:S-1-5-21-1585798421-1247125503-26858048-513
user2::S-1-5-21-1585798421-1247125503-26858048-1001
:user2:S-1-5-21-1585798421-1247125503-26858048-513
So the files created by Linux user / group /user1/ or /user2/ are
mapped to SID /1001/ (user) / /513/ (group) on Windows. But these
files appear to be owned by only user / group /user1/ (the first entry
in the /UserMapping/ file). So /user2/ cannot, for instance, change
mode and set timestamps on the files owned by /user1/.
Yes, I would expect so.
Is it somehow possible to make both users think they own files?
Well, basically you have directed ntfs-3g to record files
as owned by S-1-5-21-1585798421-1247125503-26858048-1001
irrespective of which user creates the file. (this being
what is actually written to disk, the same way Windows does).
As a consequence, when reading the file later, there is
no information to tell which user actually created it.
What was the purpose of wanting to have the same user
recorded for two different users ? If you are double
booting with Windows, how are the the Windows accounts ?
When you do not have the same account sharing in Windows
and Linux, you end up with this kind of problems.
You should probably have both users in the same primary
group and use group permissions to facilitate file
sharing by users.
Jean-Pierre
Thanks and Regards,
Irfan
_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel