X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Claudius_Schn=F6rr?= <Claudius.Schnoerr@gmx.de>
Subject:  Re: Q: nfsd: Unable to seteuid(-2)
Date:  Thu, 16 Feb 2006 18:56:22 +0100
Lines: 83
Message-ID: <dt2ebv$m4a$1@sea.gmane.org>
References:  <dt0g7v$gr4$1@sea.gmane.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  8bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax)
In-Reply-To: <dt0g7v$gr4$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hello again,

after changing my clswork.map to
#       remote  local
uid     1010    1000            #nfsd -> user
uid     1000    1000            #user -> user
gid     1000    1000            #group bv -> group bv

a mount works, but the files still get the wrong uid:

drwxrwxrwx   37 4294967294 bv       0 2006-02-16 17:24 mnt/

The log of mountd seems ok.
The log of nfsd shows

nfsd[252] 02/16/106 18:51 auth_clnt.c 307 : Unable to setegid(-2): 
Invalid argument
nfsd[252] 02/16/106 18:51 auth_clnt.c 332 : Unable to setgroups: Invalid 
argument
nfsd[252] 02/16/106 18:51 auth_clnt.c 352 : Unable to seteuid(-2): 
Invalid argument
nfsd[252] 02/16/106 18:51 auth_clnt.c 307 : Unable to setegid(-2): 
Invalid argument
nfsd[252] 02/16/106 18:51 auth_clnt.c 332 : Unable to setgroups: Invalid 
argument
nfsd[252] 02/16/106 18:51 auth_clnt.c 352 : Unable to seteuid(-2): 
Invalid argument
nfsd[252] 02/16/106 18:52 auth_clnt.c 332 : Unable to setgroups: Invalid 
argument
nfsd[252] 02/16/106 18:52 auth_clnt.c 352 : Unable to seteuid(1000): 
Invalid argument

And portmapd issues no log entries at all.
The mount takes about 10 seconds to be accomplished.

How can I get the mounted file system to appear with the correct uid of 
the user on the client side?
How can I prevent that delay when mounting the remote file system?

Claudius

Claudius Schnörr schrieb:
> Hello,
> 
> I just started nfsd and get this error when auto-mounting some 
> filesystem from the server:
> 
> nfsd[1524] 02/16/106 00:52 auth_clnt.c 352 : Unable to seteuid(-2): 
> Invalid argument
> 
> The config files on the client (clswork):
> 
> /etc/exports:
> /dokus/Claudius     clswork(rw,map_static=/etc/nfs/clswork.map)
> /work               clswork(rw,map_static=/etc/nfs/clswork.map)
> 
> /etc/nfs/clswork:
> #       remote  local
> uid     1010    1000
> gid     1000    1000
> 
> /etc/passwd:
> Claudius::1000:1000::/dokus/Claudius:/bin/bash
> nfsd:unused_by_nt/2000/xp:1010:1000:nfsd,U-CLSPC\nfsd,S-1-5-21-329068152-813497703-1957994488-1010:/home/nfsd:/bin/bash 
> 
> 
> 
> If I mount by hand instead, it works, but ne files get the wrong userid 
> and groupid:
> 
> drwx------  37 4294967294 4294967294    0 2006-02-16 00:25 mnt/
> 
> It should be 1000:1000 as on the server.
> 
> Can anyone help?
> 
> I thank you in advance,
> 
> Claudius
> 
> 
> 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

