4
submitted 2 months ago* (last edited 1 month ago) by [email protected] to c/[email protected]

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 @[email protected]

top 10 comments
sorted by: hot top controversial new old
[-] [email protected] 3 points 2 months ago* (last edited 2 months ago)

/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?

[-] [email protected] 1 points 2 months ago

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)

[-] [email protected] 3 points 2 months ago

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

[-] [email protected] 1 points 2 months ago

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

Where ? How?

[-] [email protected] 3 points 2 months ago* (last edited 2 months ago)

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.

[-] [email protected] 2 points 2 months ago

It worked. Thank you so much man.

[-] [email protected] 2 points 2 months ago* (last edited 2 months ago)

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)

[-] [email protected] 1 points 2 months ago

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

[-] [email protected] 1 points 2 months ago

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

[-] [email protected] 1 points 2 months ago

cant you change

Yes. Please watch the video.

I tried restarting. Doesn't work.

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

Linux Mint

1667 readers
1 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