gauss
June 24th, 2008, 07:25 PM
I have a Heron, server, and a Heron, client. I have users foo and bar and group baz with identical numerical GIDs and UIDs on both. I'd like to mount server's /home/foo as client's /home/foo and have followed https://help.ubuntu.com/community/NFSv4Howto. I'd like to be able to "see" the same users and groups on both machines within /home/foo.
It mounts correctly but all UID's (e.g. both foo and bar) in /home/foo on client are mapped to nobody and all GID's are mapped to nogroup. This means that foo can't use /home/foo on client like it can on server. E.g.
$ ssh server fails on client with
Bad owner or permissions on /home/foo/.ssh/config which is correct since config has owner nobody and nobody has a different UID than foo.
Here's /etc/exports on server:
/srv client(ro,fsid=0,insecure,no_subtree_check,async)
/srv/foo client(rw,nohide,insecure,no_subtree_check,async) Also /etc/fstab binds /srv/foo to /home/foo on server.
Here's /etc/fstab on client:
server:/foo /home/foo nfs4 proto=tcp,soft,defaults 0 0
Is there any way I can get what I want with NFS: to be able to view the same UIDs and GIDs on client as I see on server so that foo on both boxes can "act the same"?
Thanks for any insight you can provide.
It mounts correctly but all UID's (e.g. both foo and bar) in /home/foo on client are mapped to nobody and all GID's are mapped to nogroup. This means that foo can't use /home/foo on client like it can on server. E.g.
$ ssh server fails on client with
Bad owner or permissions on /home/foo/.ssh/config which is correct since config has owner nobody and nobody has a different UID than foo.
Here's /etc/exports on server:
/srv client(ro,fsid=0,insecure,no_subtree_check,async)
/srv/foo client(rw,nohide,insecure,no_subtree_check,async) Also /etc/fstab binds /srv/foo to /home/foo on server.
Here's /etc/fstab on client:
server:/foo /home/foo nfs4 proto=tcp,soft,defaults 0 0
Is there any way I can get what I want with NFS: to be able to view the same UIDs and GIDs on client as I see on server so that foo on both boxes can "act the same"?
Thanks for any insight you can provide.