[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Autofs and NFS, user mapping



On Sun, 29 Jul 2012 18:06:31 -0600, Bob Proulx wrote:

> T o n g wrote:

>> My Autofs auto-mounted NFS share looks like this:
>> 
>>  drwxr-xr-x  9 4294967294 4294967294 45056 2011-04-12 09:47 tmp/
>> 
>> I.e., the user id and group id are all mapped wrong.
>> 
>> I have identical user ids and groups between my NFS sharing stations,
>> so previously, prior to using Autofs I just use the NFS ver3 direct
>> mapping, without specifying any user mapping schemes, and it works
>> nicely.
> 
> Do you have --manage-gids in /etc/default/nfs-kernel-server set?
> 
>   $ ps -ef | grep rpc.mountd
>   root      1527     1  0 Jul10 ?        00:00:33 /usr/sbin/rpc.mountd
>   --manage-gids
> 
> While this is a bug fix[1] for some it is a bug source for me.
> 
>   [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493059

Thanks for your replay, Bob. 

I have that too. 

$ ps -ef | grep rpc.mountd
root      1539     1  0 Jul07 ?        00:00:00 /usr/sbin/rpc.mountd --
manage-gi

So you are saying to remove it?
I did that and restarted my nfs-kernel-server. Now:

$ ps -ef | grep rpc.mountd
root     12869     1  0 Jul30 ?        00:00:00 /usr/sbin/rpc.mountd

However, on the client side, Autofs still show the wrong uid and gid. 
Same as in OP.

Anywhere else to check?

Thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


Reply to: