You are not logged in.

#1 2012-12-08 09:15:21

sasoiliev
Member
Registered: 2012-12-08
Posts: 4

NFS mount ownership problem

Hi,

I have a NFS server running on an Ubuntu Server 12.04 box. Here's the exports from the server:

/export			192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)
/export/users		192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)
/export/music		192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)
/export/torrents	192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)
/export/pictures	192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)
/export/backups		192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)
/export/downloads	192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)

The server runs idmapd with this configuration:

[General]

Verbosity = 0
Pipefs-Directory = /run/rpc_pipefs
# set your own domain here, if id differs from FQDN minus hostname
Domain = home

[Mapping]

Nobody-User = nobody
Nobody-Group = nogroup

The idmapd.conf on the client machine (latest Arch) is:

[General]

Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = home

[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

[Translation]

Method = nsswitch

I've started the idmapd daemon:

sudo systemctl start rpc-idmapd.service

Now when I:

sudo mount -t nfs4 192.168.1.7:/export /mnt/nfs

the exported fs is mounted, but the ownership of the various directories are nobody:nobody.

AFAIK, the idmapd should take care to map the users on the client and the server by threir username. On the Arch client I've created all the users and groups that are involved in these exports on the server. Their IDs don't match but I think that idmapd should take care of this. The (more or less) same configuration on an Ubuntu Desktop 12.04 works fine.


I'm new to the Arch world, giving it a try currently. So far I like it pretty much, but this issue is giving me a headache. I've browsed through the similar topics in this forum and on Google, but wasn't able to find a solution.

I'm not sure how should I go about debugging this issue. Tried raising the logging level of various daemons, but never saw anything interesting in the logs (maybe I was looking at the wrong logs though).

So, any advice will be greatly appreciated! Thanks!

Offline

Board footer

Powered by FluxBB