Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NFS nobody problem

1,468 views
Skip to first unread message

Mr. Chow Wing Siu

unread,
Aug 6, 2009, 1:48:56 AM8/6/09
to
Dear all,

Both (NFS server/client) are on Solaris 10 x86.

drwx-----x 5 nobody nobody 512 Jun 25 16:04 userA

The NFS client does not have any user account. So that the
UID and GID are re-mapped to nobody as above. It does not
happen on NFS server in which Solaris 8 installed. How can
I get the correct UID/GID using NFS mounting as below:

drwx-----x 5 123456 123 512 Jun 25 16:04 userA

Thank you very much.

--
Johnson Chow

Chris Ridd

unread,
Aug 6, 2009, 1:51:25 AM8/6/09
to
On 2009-08-06 06:48:56 +0100, "Mr. Chow Wing Siu"
<wsc...@Comp.HKBU.Edu.HK> said:

It sounds like they're using NFSv4, and have different NFSv4 domains.
Make the domains the same, or force them to negotiate NFSv3. Both
things can be done by editing /etc/default/nfs.
--
Chris

Mr. Chow Wing Siu

unread,
Aug 6, 2009, 3:03:04 AM8/6/09
to
Chris Ridd <chri...@mac.com> wrote:
> It sounds like they're using NFSv4, and have different NFSv4 domains.
> Make the domains the same, or force them to negotiate NFSv3. Both
> things can be done by editing /etc/default/nfs.
----------------------------------------

I just tried to set /etc/default/nfs :
NFSMAPID_DOMAIN=something.somewhere

and reboot in another set of NFS server/client.

There's no effect. Should I change to NFSv3? How?

--
Johnson Chow

Ian Collins

unread,
Aug 6, 2009, 4:19:11 AM8/6/09
to

Did you restart the NFS service on the server?

Do the client and server have the same domain name?

See the description of setting NFSMAPID_DOMAIN in the nfs man page.

--
Ian Collins

Mr. Chow Wing Siu

unread,
Aug 6, 2009, 6:29:30 AM8/6/09
to
Ian Collins <ian-...@hotmail.com> wrote:
> Did you restart the NFS service on the server?
> Do the client and server have the same domain name?
> See the description of setting NFSMAPID_DOMAIN in the nfs man page.
------------------------------

1. I had tried either init 6 or svcadm restart nfs/server .

2. Same domain name and NFSMAPID_DOMAIN both in NFS server/client.

3. I use "mount -o vers=3" to fix this problem. However,
I think that NFSv4 client is better. Anyone has solution.

--
Johnson Chow

Ronald Kuehn

unread,
Aug 6, 2009, 3:30:22 PM8/6/09
to
"Mr. Chow Wing Siu" <wsc...@Comp.HKBU.Edu.HK> writes:

Hi,

To have properly mapped credentials both client and server must be
able to resolve all involved user and group names (of course the NFSv4
domain names must also match). NFSv4 communicates user and group
information using strings (like "username@nfsv4domainname" and such).
NFSv3 uses numerical user/group IDs.

Client and server must be able to translate these "username@domain"
strings into numerical IDs and numerical IDs into "username@domain"
like strings. The numerical IDs don't need to be the same on
client and server though.

Ronald
--
* The whole problem with the world is that fools and fanatics are always
* so certain of themselves, but wiser people so full of doubts.
* --Bertrand Russell

0 new messages