[Hampshire] nfs - Mounting users

Top Page

Reply to this message
Author: Peter Brooks
Date:  
To: Hampshire LUG Discussion List
CC: 
Subject: [Hampshire] nfs - Mounting users
Hi all,
Having a bit of an odd one with nfs & users.
On the server I have this in /etc/exports:
/home/mpd/music         192.168.1.1(sync,rw,root_squash)


and on the client I have this in /etc/fstab:
kube-sub:/home/mpd/music /home/kubeadmin/music nfs auto,rw,nosuid,user

The problem is that when mounted, the user & group follows the id's from the
server.
I.e
drwxr-xr-x  29 mpd  root     928 Oct 15 19:20 music


with:
grep mpd /etc/passwd
mpd:x:1001:100::/home/mpd:/bin/bash

And on the client:
drwxr-xr-x 29 iceuser root 928 Oct 15 19:20 music

grep iceuser /etc/passwd
iceuser:x:1001:100::/home/iceuser:/bin/bash


I need the directory when mounted to be owned by the group of kubeadmin,
however the two /etc/passwd's cannot be in sync.
Any ideas?