this post was submitted on 17 Jul 2024
4 points (83.3% liked)

Linux Mint

1726 readers
6 users here now

Linux Mint is a free Linux-based operating system designed for use on desktop and laptop computers.

Want to see the latest news from the blog? Set the Firefox homepage to:

linuxmint.com/start/

where is a current or past release. Here's an example using release 21.1 'Vera':

https://linuxmint.com/start/vera/

founded 3 years ago
MODERATORS
 

I can't change directory and file permissions which is in /mnt/ through elevated Nemo. But can change in /. Why?

Apparently, this happens due to Automount. Because when I mount manually, this problem doesn't occur.

I also changed /mnt/Storage to /media/user/Storage/ on auto mount, still the same problem occurs.

uploaded on reddit because lemmy doen't allow videos .sorry for the quality reddit squashed it. Also my user name is blurred.

Also this an automounted NTFS partition, if it has to do anything with this,

I tried restarting. Doesn't work.

I know about chown and chmod. But I wanna do it in GUI.

==============================================================

SOLVED

Include uid= and gid= as part of your mount options.

For More info look at this.

Thanks to this Chad @neidu@feddit.nl

top 10 comments
sorted by: hot top controversial new old
[–] neidu2@feddit.nl 3 points 4 months ago* (last edited 4 months ago) (1 children)

/mnt is owned by root (by default, anyway), and I suspect /mnt/Storage is too. Did your GUI ask for a sudo password at any point?

[–] gpstarman 1 points 4 months ago (1 children)

I suspect /mnt/Storage is too

It is

It asked when open nemo as root. And didn't asked when I change the permissions.( Because nemo is already root, I suppose)

[–] neidu2@feddit.nl 4 points 4 months ago (1 children)

You might want to include uid= and guid= as part of your mount options. Not sure how that'll work with NTFS, but it's worth a try

[–] gpstarman 1 points 4 months ago (1 children)

include uid= and guid= as part of your mount options.

Where ? How?

[–] neidu2@feddit.nl 3 points 4 months ago* (last edited 4 months ago) (1 children)

Above the mount point option.

I normally do this by editing /etc/fstab directly, but the syntax seems very similar. The first answer here provides an example of the syntax.

[–] gpstarman 2 points 4 months ago

It worked. Thank you so much man.

[–] Tyoda@lemm.ee 2 points 4 months ago* (last edited 4 months ago) (1 children)

Your issue is that NTFS by default doesn't support the same file permissions as Linux uses.

You can change what permissions an NTFS partition will be mounted with.

You can also get around it with user files or something to have proper full permission support, but I'm not familiar with this.

Something like this thread should have all the answers: https://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition/

(best is to avoid NTFS, if you can)

[–] gpstarman 1 points 4 months ago

Thank You. I'm scared about possible data loss (if any) when changing NTFS permissions on Linux.

[–] Rooki@lemmy.world 1 points 4 months ago (1 children)

What does it do if you right click => properties => Permission and cant you change it there? Or does it reset every restart?

[–] gpstarman 1 points 4 months ago

cant you change

Yes. Please watch the video.

I tried restarting. Doesn't work.