I fail to assign full permission to my automount ntfs directory

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sina

I fail to assign full permission to my automount ntfs directory

Post by sina »

Hello everyone,

After several years, I decided to return to Linux Mint Cinnamon desktop from Manjaro Linux. Apparently, one thing that I used to see working in every Linux experience that I had is failing when I try on Linux Mint Cinnamon 19 tara. I am editing the

Code: Select all

/etc/fstab
and add the following line to automount my NTFS partition.

Code: Select all

UUID=some_ID /media/pie ntfs rw,auto,users,exec,umask=003,gid=46,uid=1000 0 0
And then I operate the following code to give the full permission to the directory "/media/pie".

Code: Select all

 sudo chmod -R 755(or 777)  /media/pie/
or

Code: Select all

sudo chmod -R o+rw /media/pie/
but none of them helped me with creating or deleting a folder or file in "pie" directory. When I perform "ls -l" the output is,

Code: Select all

drwxrwxr--  1 sina plugdev 4096 Nov  2 18:38 pie

and when I try to change the ownership of group to sina, by operating,

Code: Select all

sudo chown -R sina:sina /media/pie

executing "ls -l" shows exactly the same thing as before. What am I missing that I fail?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
WharfRat

Re: I fail to assign full permission to my automount ntfs directory

Post by WharfRat »

You can chmod and chown til the cows come home and permissions will not change because the ntfs filesystem does not store that information :wink:
User avatar
all41
Level 19
Level 19
Posts: 9473
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: I fail to assign full permission to my automount ntfs directory

Post by all41 »

WharfRat wrote: Sun Nov 04, 2018 7:50 pm You can chmod and chown til the cows come home and permissions will not change because the ntfs filesystem does not store that information :wink:
Not even cows with superpower
Everything in life was difficult before it became easy.
sina

Re: I fail to assign full permission to my automount ntfs directory

Post by sina »

Is this a recent thing!? Because I was used to put my automount directory either in /mnt or /media .
phd21
Level 20
Level 20
Posts: 10103
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: I fail to assign full permission to my automount ntfs directory

Post by phd21 »

Hi sina,

I just read your post and the good replies to it. Here are my thoughts on this as well.

You do not need permissions to mount or use NTFS filesystems, but you do need to mount them. The easiest method to mount partitions is using the "Disks" application, see link below. You may have to first remove any "fstab" entries that you manually entered for partitions other than your boot partition.

[SOLVED] I can not delete files on the second hard drive
viewtopic.php?f=90&t=280878

Hope this helps ...
Phd21: Mint 20 Cinnamon & xKDE (Mint Xfce + Kubuntu KDE) & KDE Neon 64-bit (new based on Ubuntu 20.04) Awesome OS's, Dell Inspiron I5 7000 (7573) 2 in 1 touch screen, Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, Intel 4 Graphics.
altair4
Level 20
Level 20
Posts: 11419
Joined: Tue Feb 03, 2009 10:27 am

Re: I fail to assign full permission to my automount ntfs directory

Post by altair4 »

The way you are mounting your ntfs partition is inconsistent with the way you want permissions.

The fstab entry will have owner=sina, group=plugdev, and permissions of 774. sina and members of the plugdev group will be able to read and write to the partition but others will not be able to do anything since an even number ( 4 ) will not allow everyone else access to the folder. Permissions numbers on directories always have to be odd to allow access.

If you want permissions to be 755 the umask needs to be 022 ( 777-022=755 ).
If you want permissions to be 777 the umask needs to be 000 ( 777-000=777 ).
Note: If you don't add the umask option at all it defaults to 000.

If you want the group to be the same as the user the gid needs to be 1000 ( gid=1000 ).

Remember that unlike a Linux filesystem NTFS has no Linux permissions or ownership bits to set which is why chown or chmod has no affect. Linux handles this by creating a "view" that makes it appear to have Linux permissions but they are set at mount time not after mount and they are immutable at that point.

And remember that the Disks utility knows nothing about users, umask, windows_names, uid, gid, or a plethora of other options implicitly. You will need to add them to the list of options explicitly which you might as well do by editing fstab directly.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Locked

Return to “Cinnamon”