Re: Translate user names with NFS
On Tue, Jun 14, 2011 at 7:56 PM, Dan <ganchya@gmail.com> wrote:
> Hi,
> I would like to mount a NFS share from one computer to another. The
> problem is that the usernames do not match. In NFSv3 there should be
> an option map_static to map de UIDs and GIDs but for some reason it
> does not work. It seems that I have to use the package nfs-user-server
> to use that option, but it does not exist in squeeze
> http://www.spencerstirling.com/computergeek/NFS_samba.html
>
> It should be possible to do it with NFSv4, but I need to install
> Kerberos, LDAP, etc...
>
> Is there an easy way to translate the user names of the two machines with NFS?
>
> Thanks,
> Dan
>
Hi,
I think that it should be possible to do the translation with nfs4
using /etc/idmapd.conf
This is what I tried, but it didn't work:
[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
[Translation]
Method = static
GSS-Methods = static
[Static]
user_name@localhost = user_login_name
Reply to: