Subject: Re: misc/17851: nfs client behaves strangely wrt uid 60001
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: grant beattie <grant@netbsd.org>
List: netbsd-bugs
Date: 08/14/2002 20:02:13
On Wed, Aug 07, 2002 at 09:11:45PM +0200, Manuel Bouyer wrote:
> > server# id -a nobody
> > uid=60001(nobody) gid=60001(nobody) groups=60001(nobody)
> >
> > client# ls -l
> > -rw-rw-r-- 1 60000 60000 0 Aug 6 13:26 60000
> > -rw-rw-r-- 1 4294967294 4294967294 0 Aug 6 13:26 60001
> > -rw-rw-r-- 1 60002 60002 0 Aug 6 13:26 60002
>
> -2 (signed) == 4294967294 (unsigned) on 32bit integer.
> Make sure you don't have 2 'nobody' users on the server, one with
> uid/gid 60001, one with uid/gid -2. Historically 'nobody' has been
> -2/-2 on sun, and there may be one lying around.
> Did you try
> chown 60001:60001 60001
> on the server ?
Yes, the only uid with username 'nobody' is 60001.
This appears to be an NFS server bug in Solaris:
NFS: ----- Sun NFS -----
NFS:
NFS: Proc = 1 (Get file attributes)
NFS: Status = 0 (OK)
NFS: File type = 1 (Regular File)
NFS: Mode = 0644
NFS: Setuid = 0, Setgid = 0, Sticky = 0
NFS: Owner's permissions = rw-
NFS: Group's permissions = r--
NFS: Other's permissions = r--
NFS: Link count = 1, User ID = 4294967294, Group ID = 103
NFS: File size = 0, Used = 0
NFS: Special: Major = 0, Minor = 0
NFS: File system id = 17301504, File id = 13553
NFS: Last access time = 14-Aug-02 09:58:02.000000000 GMT
NFS: Modification time = 14-Aug-02 09:58:02.000000000 GMT
NFS: Attribute change time = 14-Aug-02 09:58:20.083654000 GMT
I will close this PR.