Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Permissions when accessing an ntfs formatted drive

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
ticketman
Posts: 136
Joined: 2012-06-30 11:06
Has thanked: 3 times

[Solved] Permissions when accessing an ntfs formatted drive

#1 Post by ticketman »

I have a dual boot Debian testing / Windows 10 machine and both O/S need to access a set of data files on a seperate hard disk drive (for S/W development, etc).
The seperate data drive is currently formatted to ntfs. That obviously keeps the Windows O/S access happy, and Debian can happily read/write it as well. However, for every file & directory on the data drive, linux reports the permissions as :

Code: Select all

Owner: root
Group: root
View / change / execute : anyone
My fstab for this drive is currently :

Code: Select all

LABEL=DATA0    /home/xyz/DATA0    ntfs    defaults    0    0
Would it be better if I were to use this instead:

Code: Select all

LABEL=DATA0    /home/xyz/DATA0    ntfs    defaults,umask=002,uid=1000,gid=1000    0    0
or would that mess things up?

Thanks!
Last edited by ticketman on 2021-12-07 12:38, edited 1 time in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Permissions when accessing an ntfs formatted drive

#2 Post by p.H »

It depends on your use case. It is fine if only the user with UID=1000 needs to write to the filesystem.

ticketman
Posts: 136
Joined: 2012-06-30 11:06
Has thanked: 3 times

Re: Permissions when accessing an ntfs formatted drive

#3 Post by ticketman »

uid=1000 = myself, so I should be ok.
Presumably a different user would experience read/write issues?

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Permissions when accessing an ntfs formatted drive

#4 Post by p.H »

With umask=002, another user could read but not write.

ticketman
Posts: 136
Joined: 2012-06-30 11:06
Has thanked: 3 times

Re: Permissions when accessing an ntfs formatted drive

#5 Post by ticketman »

Using the fstab entry

Code: Select all

LABEL=DATA0    /home/xyz/DATA0    ntfs    defaults,umask=002,uid=1000,gid=1000    0    0
works well, marking as solved.

Post Reply