View previous topic :: View next topic |
Author |
Message |
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 58 Location: London, UK
|
Posted: Wed Oct 09, 2024 9:01 pm Post subject: Attempting to mount external hard drive clobbers permissions |
|
|
I have an external hard drive formatted to XFS that I intend to use as an occasionally-connected offline backup and I want the normal user on my machine to be able to mount and write to it, for convenience.
I created the directory inside /mnt, then used chown and chmod to give ownership and full permissions to the user, and ls -l shows as such: Code: | drwxrwxrwx 2 armand armand 6 Oct 9 21:27 extbak |
The mountpoint is listed in /etc/fstab for read-write, allow non-root to mount: Code: | PARTUUID=5916f543-8185-4d1a-8d6d-6e62246cc0a1 /mnt/extbak xfs noauto,rw,user 0 0 |
However, when I actually mount the drive, ownership and permissions get clobbered back to root, and it's turned read-only for everyone else: Code: | drwxr-xr-x 2 root root 6 Oct 9 20:42 extbak |
Am I missing something really basic here, or how do I give the regular user read-write access to the drive? |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1862
|
Posted: Wed Oct 09, 2024 10:37 pm Post subject: |
|
|
Armand Karlsen wrote: | Am I missing something really basic here, or how do I give the regular user read-write access to the drive? |
Change the permissions once mounted as it shows owners from the external drive's root after the mount. |
|
Back to top |
|
|
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 58 Location: London, UK
|
Posted: Thu Oct 10, 2024 11:10 am Post subject: |
|
|
grknight wrote: | Armand Karlsen wrote: | Am I missing something really basic here, or how do I give the regular user read-write access to the drive? |
Change the permissions once mounted as it shows owners from the external drive's root after the mount. |
Thanks, I'll give that a go . Is there a way to make that stick so I don't have to do that every time? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|