1

I am fairly new with Linux when it comes to mounting hard drives, so hopefully this is a simple question. I recently purchased a 3TB hard drive that would have read/write access with both Mac and Linux. The first step I took was to format the hard drive partition on a Mac system with "Windows NT Filesystem (Tuxera NTFS)".

Then I connected the hard drive to the Linux machine and ran the command:

sudo mount -o umask=0,uid=name,gid=name /dev/sdb2 /mnt/point/

So currently I have read/write access on both Linux and Mac. The slight problem I have now is that each directory that is created on the hard drive on the Linux machine has all the permissions enabled. For example when creating a new directory called "test" and then running "ls -lh" the output shows:

drwxrwxrwx 1 name name 0 Nov 13 13:18 test

and the directory "test" is highlighted in green on the terminal. I tried modifying the access permissions by executing:

sudo chmod -R 775 /mnt/point/

but this does not change anything, and the "test" directory is still highlighted. Would anybody happen to know if there are some restrictions with permission changes on NTFS hard drives? If so, is there possible way to solve this problem?

If worst comes to worst, and there is no solution. What is the best partition that would be able to have read/write access with Mac and Linux?

Thank you very much in advance.

1 Answer 1

0

It is you who is setting the rwx permissions to 777, by means of the option

 umask=0

in the mount command. You need to change this value, and remember the inverted notation: 0 is all permissions to everyone (777), while umask=777 is no permissions to anyone, and for instance umask=333 is only read permissions, for all (owner, group, others).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .