Article 6E4D5 Permission not working right on mount

Permission not working right on mount

by
mfoley
from LinuxQuestions.org on (#6E4D5)
I'm stumped. I have the following in /etc/fstab:
Code:LABEL=Backup2 /mnt/OHPRSbackup auto user=ohprs,rw 0 2Before mounting, the mountpoint has permission:
Code:$ ls -ld /mnt/OHPRSbackup/
drwxr-xr-x 2 ohprs ohprs 4096 2023-08-24 01:02 /mnt/OHPRSbackup/After mounting, the mountpoint has permissions:
Code:# ls -ld /mnt/OHPRSbackup/
drwxr-xr-x 8 root root 4096 2023-08-19 01:43 /mnt/OHPRSbackup/Why is the owner not still ohprs as that is the user specified in the mount? Do I have the mount options wrong? I've had it set this way for years and I thought it was working (but maybe not).
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments