Answer the question
In order to leave comments, you need to log in
Why doesn't Linux allow changing the ownership of folders and files under /media/gallery?
I connected an additional HDD to the PC and mounted it to /media/gallery. But for some reason, all files and folders on this partition are owned by root and have 777 permissions, and text files have become executable. Changing permissions and ownership via chmod and chown does not work. In the file manager from root, when changing the owner of a folder, the value changes back to root after half a second. How to solve this problem?
Answer the question
In order to leave comments, you need to log in
> How to solve this problem?
rights may not be registered for two reasons:
the disk is mounted in read mode, RO. remount in write mode.
the disk is mounted with wild crutches, or with a non-native FS.
because nothing is really described, I vanguy ntfs and mount crutches in MINT to it. Format the disk in NATIVE FS format. ext4 for example.
To solve the problem, you will need to install an additional package if it is not already installed:
sudo apt install ntfs-3g
Then you will need to make changes to /etc/fstab . I already had automatic mounting configured for the desired partition, so I simply replaced:
UUID=209AC33027DAFCFC /media/gallery ntfs defaults 0 2
on theUUID=209AC33027DAFCFC /media/gallery ntfs-3g uid=user1,gid=user1,dmask=022,fmask=133 0 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question