I have an external USB 3.0 disk which I mount as:
sudo mount -t ntfs -o rw,auto,user,umask=003,o+r,gid=science /dev/sda1 /media/external
There are 2 problems, which I am not sure how to solve:
1: When I do touch test
, the file is by default executable.
2: The file is owned by root rather than the user.
What I am trying to do is achieve a setting where the user and groups have unfettered access to the drive (including setting permissions) and others can only reads the files and list directory contents. Also, files should not be marked as executable by default.
ext4
, which is the standard file system of Ubuntu. But Windows refuses to read it, so if that is necessary you may tryudf
, which has other problems (lack of active support but may work for you). See this link; scroll down to read aboutudf
and the packageudftools
. – sudodus Oct 14 '21 at 08:57root
rather than the user which created them. – Luca Oct 14 '21 at 09:48uid
option determines in the link provided. Study the ntfs mount options to set it up like you want. – vanadium Oct 14 '21 at 10:38