Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3557

System and Network configuration • [Solved] NTFS-3G proper way to mount (fstab)

$
0
0
Small Update,

I found a way to have common permissions for files in windows as well as linux using ntfsusermap. I'm attaching the info here just in case someone has similar doubts.

I logged into my windows system. I got the ntfsusermap binary from https://github.com/CodingKoopa/ntfs-3g/ ... .03.08.dev. I ran the binary from powershell and moved the UserMapping file generated to the .NTFS-3G directory at the root of the NTFS drive. The file will contain a mapping between the user and the group of the linux system to that of the windows system. Since the binary was run on windows, the username and the group name fields will simply be user and group as shown,

Code:

:user:S-1-5-21-1234567890-0123456789-123456789-513group:group:S-1-5-21-1234567890-0123456789-123456789-1001
I replaced the user and the group fields with the actual user and group ID of my user in the linux machine. When I boot into the debian machine, I see that now all the files in the NTFS drive is owned by my user and the user can also alter the permissions of the file (chmod), which is later reflected in windows as well. But one issue is that all the files have rwx permissions for everyone (that is the default behaviour for files in windows?? I dunno.) I'll tinker around this a bit will update this post later on.

Note: I've also tried ntfsusermap on my debian machine which also works the same way. But first unmount the NTFS drive then,

Code:

sudo ntfsusermap /dev/sda1
.
Please excuse me if I made any mistakes in this post, as I'm still learning about ACLs. Corrections and additions are welcome, especially clarifications about the rwx permissions on all files which were previously present in the drive and was created by windows.

Statistics: Posted by neongashmen — 2024-12-27 14:14 — Replies 24 — Views 744



Viewing all articles
Browse latest Browse all 3557

Trending Articles