I have a USB disk that I use to synchronize data between computers with different operating systems (currently using a nice GUI utility called FreeFileSync), and its format is NTFS (which is preferable to FAT32 due to better support for long filenames as well as use of upper and lowercase). When I copy files from it to my Linux computer, unfortunately I get all the files executable (as well as writable and readable) by all, which is a problem.
How can I get around this issue?
Creating a fstab entry which will only apply to that USB ntfs disk (or using a manual command, i.e. sudo mount ...
) to mount it with such access permissions like 644, but also giving me full access on that usb disk (i.e. not having root ownership)?
Using a manual command (e.g. instead of Nautilus file manager) to copy (preferably synchronize) files without importing ntfs permissions? I tried rsync -rltgoD /source/ /target/
omitting -p (preserve permissions) without success.
I would ideally prefer a GUI sync tool (like FreeFileSync) which offers this option but I guess there's none out there.
If theres is no such GUI tool, I would probably prefer something like a quick manual tweak which will work once and for all in this sync scenario.
Otherwise, the option I have available now seems continuing with the syncing/copying tasks as usual with FreeFileSync, and then running a terminal command like find . -type f -exec chmod -R 644 {} \;
to fix this issue caused by ntfs filesytem treating all readable permissions also as executable.
--x
bit.