How to give basic permissions to one folder (path) only?

The root directory of my newly mounted drive appears to lack basic permissions, I can’t even move files there using Nautilus for instance. This was caused by accidentally transferring all data from a protected Clonezilla directory there.

How to give basic “read & write” permissions exclusively to this /mnt/primary/ path, without going recursively into the subfolders?

1 Like

Give permissions to what users?

If just to root, then (running as root)

chmod 744 /mnt/primary

Hi,

How have you mounted the drive?

Thanks Tom.

https://discussion.fedoraproject.org/t/flash-drive-permission/73081/2?u=vgaetera

1 Like

In the Gnome ‘disks’ app.

# Or provide write permissions for everyone
sudo chmod a+w /mnt

Running sudo chmod a+w /mnt/primary appears to have resolved the issue.

2 Likes

To myself, the user account.

I don’t understand the Unix permissions yet and have tried to avoid giving high-level access to any group.

Arch wiki file permissions

For reference

1 Like

I have often needed to do that, and a simple
cd /mnt
sudo chown user:user primary
works to give the user access to the root of that mounted device. What permissions you have beyond that depend on the device itself.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.