From gene@starkhome.cs.sunysb.edu  Thu Jul 17 21:06:12 1997
Received: from bsd7.cs.sunysb.edu (bsd7.cs.sunysb.edu [130.245.1.197])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA25928
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 17 Jul 1997 21:06:11 -0700 (PDT)
Received: (from uucp@localhost)
	by bsd7.cs.sunysb.edu (8.8.5/8.8.5) with UUCP id AAA29737
	for FreeBSD-gnats-submit@freebsd.org; Fri, 18 Jul 1997 00:06:09 -0400 (EDT)
Received: (from gene@localhost)
	by starkhome.cs.sunysb.edu (8.8.5/8.8.5) id XAA09260;
	Thu, 17 Jul 1997 23:32:12 -0400 (EDT)
Message-Id: <199707180332.XAA09260@starkhome.cs.sunysb.edu>
Date: Thu, 17 Jul 1997 23:32:12 -0400 (EDT)
From: Gene Stark <gene@starkhome.cs.sunysb.edu>
Reply-To: gene@starkhome.cs.sunysb.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: SunOS NFS file has wrong owner if creator has EUID = 65534
X-Send-Pr-Version: 3.2

>Number:         4115
>Category:       kern
>Synopsis:       [nfs] SunOS NFS file has wrong owner if creator has EUID = 65534
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 17 21:10:02 PDT 1997
>Closed-Date:    Sat Jul 30 01:07:56 GMT 2005
>Last-Modified:  Sat Jul 30 01:07:56 GMT 2005
>Originator:     Gene Stark
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
SUNY at Stony Brook CS Dept.
>Environment:

	FreeBSD machine with NFS mounted volumes being served
	by Sparc IPX's running SunOS 4.1.3.

>Description:

	When a program that is running setuid to "nobody" (UID 65534)
	creates a file on an NFS mounted volume being served by a
	Sparc IPX running SunOS 4.1.3, the file comes out being owned
	by a bizarre user ID:

	-rwxr-xr-x  1 4294967  daemon  0 Jul 17 23:16 foo

>How-To-Repeat:

Compile the following program, chown to nobody (UID 65534),
chmod 4711, then run it, specifying as argument a path on the
NFS mounted volume.  Observe that a file with a bogus UID is
created.  If a path is specified on the local FreeBSD machine,
everything is normal.
#include <unistd.h>
#include <sys/types.h>

main(int argc, char *argv[])
{
        printf("UID: %ld, EUID: %ld\n", getuid(), geteuid());
        creat(argv[1], 0777);
}

>Fix:
	
	Unknown.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: peter 
Responsible-Changed-When: Sun Apr 26 01:18:53 PDT 1998 
Responsible-Changed-Why:  
I'll look into this. 
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Wed Mar 28 12:09:46 PST 2001 
State-Changed-Why:  
Is this still a problem with recent releases? I don't think that 
there is enough information in the PR to determine if this is a 
FreeBSD client problem or a SunOs server problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=4115 
Responsible-Changed-From-To: peter->freebsd-bugs 
Responsible-Changed-By: peter 
Responsible-Changed-When: Mon Mar 29 11:14:51 PST 2004 
Responsible-Changed-Why:  
Return neglected PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=4115 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Jul 30 01:07:46 GMT 2005 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=4115 
>Unformatted:
