-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jenny Hopkins hopkins.jenny@gmail.com wrote:
Hi all,
I have a central directory owned by user 'balloon' on my server. This can be nfs mounted onto serveral other computers, each with a user 'balloon'. However, the server UID for balloon is different from that of the clients. I'm reluctant to start changing things in /etc/passwd. Is there an elegant way to state the nfs mount with username permissions rather than number?
Not that I know of, the only way I know is by using the nfs-user-server instead of nfs-kernel-server, and then using UID mapping. So, for example, I use the following for some machines at work...
snippet from /etc/exports: /home/username usersmachineip(rw,map_daemon,map_static=/etc/nfs/username.map,root_squash)
where /etc/nfs/username.map looks something like: uid 0-500 - uid 501 1001 gid 0-500 - gid 501 1001
the first column is the type of mapping (uid or gid), the second column is the client ids, and the third is what to map them to.
Hope that helps, - -- Brett Parker web: http://www.sommitrealweird.co.uk/ email: iDunno@sommitrealweird.co.uk