NFS network share, I can mount it but not write to it although I am owner

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
pastic
Level 3
Level 3
Posts: 102
Joined: Thu Jun 16, 2016 11:50 am

NFS network share, I can mount it but not write to it although I am owner

Post by pastic »

I am grappling with this since several hours, but I think I am out of ideas.
I have a NAS with an NFS share 'dev' that I am trying to mount to /media/freenas/dev and getting write access to my local user. My user 'peter' thus needs to be owner of the mounted files and folders. 'peter' is already owner recursively of dev on the NAS, and locally /media/freenas/dev is owned by my 'peter'.
I have put this in fstab:

Code: Select all

10.0.0.50:/mnt/TANK/dev    /media/freenas/dev    nfs    rw,noauto,user    0 0
and with this 'peter' can mount the share but 'peter cannot write to it. When it is mounted the owner locally changes from 'peter' to '1002', which is the userid of 'peter' on the NAS.

When I mount smb shares in /media/freenas/ I can specify uid=peter,username=peter,userpass=mypass, but this is not possible with NFS apparently.

Actually, I can't even mount it in /home/peter/ and have write access. I thought 'rw' was supposed to take care of that?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Asus Prime x470 ~ Ryzen 5 3600 ~ Radeon HD 7750
"Do you respect wood?" (Larry David)
Locked

Return to “Storage”