You are not logged in.

#1 2009-11-12 21:27:34

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

nfs mount ownership problem - how to mount as a particular user?

I have a slight permissions problem with an nfs mount.  I need the mount to be owned by a particular user, say uid=1000 and guid=1000 but my mount line gives the ownership to another user on the box.  I'm not very adept with nfs, but with samba (cifs), this is controlled by adding a uid=x,gid=y in the mount line.  NFS doesn't seem to take it.

Here is the /etc/fstab entry for the mount:

192.168.1.2:/share/docs /mnt/docs nfs defaults,auto 0 0

Anyone skilled with NFS mounts?

EDIT: I see now that the user on the box exporting the share has the same uid/gid as the WRONG user on the 2nd box.  I definitely need some mount options to fix this.  I can't change the uid/gid on either box.

Last edited by graysky (2009-11-12 21:29:40)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB