Problem with NFS mount from Solaris server to Mac OS X client

Problem with NFS mount from Solaris server to Mac OS X client

Post by dan.. » Sun, 12 Jun 2005 12:09:48



I'm having problems with the UID & GID 60001 on an NFS mounted share
from a Solaris server to a Mac OS X client.  Any files with the UID/GID
of 60001 show up on the Mac OS X client as 4294967294.  If i mount the
same share on a Solaris client they show up just fine as 60001.

Export directory from Solaris 8 system: server:/testdir
NFS mount directrory on Max OS X (10.3.8) system:
client:/nfs/server/testdir

Problem is that the UID or GID of 60001 shows up as 4294967294 on the
NFS mount.

Folder listing on Solaris 8 NFS server:

total 8
drwxr-xr-x   4 8055     24           512 Jun 10 19:33 ./
drwxr-xr-x  27 0        1            512 Jun 10 17:20 ../
-rw-r--r--   1 60000    60000          0 Jun 10 18:14 foo0
-rw-r--r--   1 60001    60001          0 Jun 10 17:49 foo1
-rw-r--r--   1 60002    60002          0 Jun 10 17:49 foo2
-rw-r--r--   1 0        1              0 Jun 10 18:07 foo3
-rw-r--r--   1 65534    65534          0 Jun 10 18:07 foo4
drwxr-xr-x   2 8055     24           512 Jun 10 17:20 testsubdir/

Folder listing on Mac OS X NFS client:
client:/nfs/server root# ls -lan testdir/
total 6
drwxr-xr-x  4 8055        24          512 10 Jun 19:33 .
drwxr-xr-x  5 0           80          170 10 Jun 18:38 ..
-rw-r--r--  1 60000       60000         0 10 Jun 18:14 foo0
-rw-r--r--  1 4294967294  4294967294    0 10 Jun 17:49 foo1
-rw-r--r--  1 60002       60002         0 10 Jun 17:49 foo2
-rw-r--r--  1 0           1             0 10 Jun 18:07 foo3
-rw-r--r--  1 65534       65534         0 10 Jun 18:07 foo4
drwxr-xr-x  2 8055        24          512 10 Jun 17:20 testsubdir

The NFS share on the server was set up as:

-               /testdir   root=client.domain.com,rw=client.domain.com
 ""

The client mount was set up as:
client:/ root# mount_nfs server:/testdir /nfs/server/testdir/

Any ideas as to why this is happening or how i fix this?

 
 
 

Problem with NFS mount from Solaris server to Mac OS X client

Post by Dragan Cvetkovi » Sun, 12 Jun 2005 13:27:40



> I'm having problems with the UID & GID 60001 on an NFS mounted share
> from a Solaris server to a Mac OS X client.  Any files with the UID/GID
> of 60001 show up on the Mac OS X client as 4294967294.  If i mount the
> same share on a Solaris client they show up just fine as 60001.

[snip]

Quote:> Any ideas as to why this is happening or how i fix this?

Well, 60001 on Solaris is user nobody which is probably mapped to
4294967294 on OSX. What is nopbody's entry in /etc/passwd?

Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!

 
 
 

Problem with NFS mount from Solaris server to Mac OS X client

Post by Vitaly Filato » Sun, 12 Jun 2005 15:23:38


Hi, Danny!

NFS exports users with effective user ID of "unknown users" with
ID = UID_NOBODY. The same is valid for "unknown users" GID:

$ more /usr/include/nfs/nfs.h
......
/*
  * The value of UID_NOBODY/GIF_NOBODY presented to the world via NFS.
  * UID_NOBODY/GID_NOBODY is translated to NFS_UID_NOBODY/NFS_GID_NOBODY
  * when being sent out over the network and NFS_UID_NOBODY/NFS_GID_NOBODY
  * is translated to UID_NOBODY/GID_NOBODY when received.
  */
#define NFS_UID_NOBODY  -2
#define NFS_GID_NOBODY  -2

You may change it with a key of "share" command:

# share anon=60001 .....

See also "man share_nfs".

Vitaly Filatov, Moscow, Russia
http://members.tripod.com/vitaly_Filatov


> I'm having problems with the UID & GID 60001 on an NFS mounted share
> from a Solaris server to a Mac OS X client.  Any files with the UID/GID
> of 60001 show up on the Mac OS X client as 4294967294.  If i mount the
> same share on a Solaris client they show up just fine as 60001.

> Export directory from Solaris 8 system: server:/testdir
> NFS mount directrory on Max OS X (10.3.8) system:
> client:/nfs/server/testdir

> Problem is that the UID or GID of 60001 shows up as 4294967294 on the
> NFS mount.

> Folder listing on Solaris 8 NFS server:

> total 8
> drwxr-xr-x   4 8055     24           512 Jun 10 19:33 ./
> drwxr-xr-x  27 0        1            512 Jun 10 17:20 ../
> -rw-r--r--   1 60000    60000          0 Jun 10 18:14 foo0
> -rw-r--r--   1 60001    60001          0 Jun 10 17:49 foo1
> -rw-r--r--   1 60002    60002          0 Jun 10 17:49 foo2
> -rw-r--r--   1 0        1              0 Jun 10 18:07 foo3
> -rw-r--r--   1 65534    65534          0 Jun 10 18:07 foo4
> drwxr-xr-x   2 8055     24           512 Jun 10 17:20 testsubdir/

> Folder listing on Mac OS X NFS client:
> client:/nfs/server root# ls -lan testdir/
> total 6
> drwxr-xr-x  4 8055        24          512 10 Jun 19:33 .
> drwxr-xr-x  5 0           80          170 10 Jun 18:38 ..
> -rw-r--r--  1 60000       60000         0 10 Jun 18:14 foo0
> -rw-r--r--  1 4294967294  4294967294    0 10 Jun 17:49 foo1
> -rw-r--r--  1 60002       60002         0 10 Jun 17:49 foo2
> -rw-r--r--  1 0           1             0 10 Jun 18:07 foo3
> -rw-r--r--  1 65534       65534         0 10 Jun 18:07 foo4
> drwxr-xr-x  2 8055        24          512 10 Jun 17:20 testsubdir

> The NFS share on the server was set up as:

> -               /testdir   root=client.domain.com,rw=client.domain.com
>  ""

> The client mount was set up as:
> client:/ root# mount_nfs server:/testdir /nfs/server/testdir/

> Any ideas as to why this is happening or how i fix this?

 
 
 

1. NFS Problems (Mac OS X client and RedHat 8.0 server)

I've been having such a problem getting NFS to work with my RedHat 8.0
server and my OS X client.

Here is what I've exported in /etc/exports
/home/foo/share    *(rw,sync,all_squash,anonuid=501,anongid=100)

I've made sure that the firewall on the server is not running by
doing:
service iptables stop

The command that I'm using to mount from my Mac is:
mount_nfs server:/home/foo/share /Users/bar/mnt

The response that I'm getting on the client is:
mount_nfs: /Users/bar/mnt: RPC prog. not avail

And the server log shows:
Feb 26 21:47:38 localhost rpc.mountd: authenticated mount request from
192.168.123.121:1015 for /home/foo/share (/home/foo/share)

Does that me that the mount worked from a servers prospective?  The
client doesn't think that its mounted.

Is this a server problem or a client problem?  I'm thinking that it is
a client problem.  I don't know too much about OS X and I'm not sure
what exact service I need runing before doing the mount command.

I've looked into portmap and I'm just getting frustrated because I've
been trying to do this for two weeks.  I can't seems to find any posts
on the web that relate to this issue.

If you have any information it would be greatly appriciated.

Thanks,

Stinky

2. Mouse Installation with Slackware, newbie

3. Distributed Open Systems Performance Workshop (Australia)

4. Linux NFS server to Mac OS X Client

5. HELP w/ Slackware 1.2.0 using Intel Express Ethernet Card

6. NFS mount from SunOS onto Mac OS X: server not responding

7. Turtle Beach Montego II

8. Can't mount OS/2 nfs share with Solaris 9 clients

9. problem with LINUX (NFS server) and Solaris 2.7 (intel ) NFS client.

10. OS/2 NFS client and Linux NFS Server help needed

11. OS/2 NFS Client and Linux NFS Server?

12. Mounting nfs from solaris client on linux server