nfs owner/group

Status
Not open for further replies.

philhu

Patron
Joined
May 17, 2016
Messages
258
Freenas 9.10

Build an nfs, advanced options, MAPALL user 'philhu', MAPALL group 'users'

philhu has same uid on the freenas box and my centos6 system
users has same uid on both also

mount disk using:
mount -t nfs freenas.home:/mnt/volume1/data /mnt/disk -O username=philhu,password=password,user,auto,gid=users,uid=philhu,nfsver=3,noatime,intr

And it mounts! (please dont yell about password in cmd line, it is a test)

Create a file on nfs volume from centos volume, it shows owner as nobody:nobody

So why? MAPALL is set, gid,uid are the same between systems, I login to the drive using an account on the freenas, i even specify user and group on the mount line.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
I'm seeing similar behavior, but only when I mount using NFSv4. I don't have my configuration available at hand, but I can post that later tonight.
When I disable NFSv4, I get the correct permissions.

Do you have v4 enabled in the FreeNAS NFS settings?
 

philhu

Patron
Joined
May 17, 2016
Messages
258
Ok, took out all options, it still mounts, but still gives owner/group issue

# mount -t nfs freenas.home:/mnt/volume1/data /mnt/disk
# touch /mnt/disk/video/e.e
# ls -al /mnt/disk/video
total 74
drwxrwxrwx 3 nobody nobody 7 Jun 6 14:13 .
drwxr-xr-x 7 nobody nobody 7 Jun 3 22:40 ..
-rw-r--r-- 1 nobody nobody 0 Jun 6 14:13 d.d
-rw-r--r-- 1 nobody nobody 0 Jun 6 14:13 e.e
 

philhu

Patron
Joined
May 17, 2016
Messages
258
Found it, and it fixed it!

Thank you

I think it is a v4 bug myself
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
found what? the nfsv4 setting?
 

philhu

Patron
Joined
May 17, 2016
Messages
258
yes, I turned off v4 and it shows right, turn it on, it always shows nobody:nobody, even though the ownership/group are correct, the v4 setting seems to display the nobody stuff
 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
Out of curiosity have you configured the NFS Service? Thinking about the "NFSv3 ownership model for NFSv4" checkbox option...

Per the manual:
The “NFSv3 ownership model for NFSv4” checkbox has been added to Services→NFS
 

philhu

Patron
Joined
May 17, 2016
Messages
258
>>Out of curiosity have you configured the NFS Service? Thinking about the "NFSv3 ownership model for NFSv4" checkbox option...

Tried it, did not seem to do anything.... Files still showed as owned by nobody:nobody
 
Status
Not open for further replies.
Top