info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble in checking out from remote CVS server


From: Larry Jones
Subject: Re: Trouble in checking out from remote CVS server
Date: Tue, 3 Oct 2000 15:01:28 -0400 (EDT)

Feng Sian writes:
> 
> Bad news: it didn't worked. I created an user named devel, and in
> $CVSROOT/CVSROOT/passwd I set the following line
> 
> feng::devel
> 
> and then I started tcpserver with -u<devel-uid> -g<devel-gid> ...
> 
> , but it continue to complain with the following error message:
> 
>   setuid failed: Operation not permitted
>   cvs [checkout aborted]: authorization failed: server server.i-bizz.net
>        rejected access

What is $CVSROOT set to?

> I have switched back to run the process as root, but I have some questions:
> - if tcpserver is invoked from root, and the program is ran as root (#
> tcpserver -u0 -g0 0 2401 ...), why it can't 'chdir /root'?

As soon as pserver has validated the client's username and password, it
changes user to the client's user (or the system user specified for that
user in CVSROOT/passwd).  It can't chdir to /root because it's already
switched to the client user, which isn't root.  But it shouldn't even be
*tying* to chdir to /root, it should be trying to chdir to the real
user's home directory.  If you don't have -f on the pserver command (and
note that it has to go *before* pserver, not after it), it figures out
the home directory before it changes user and remembers it and tries to
use it afterwards, which won't work.  If you have -f in the right place
and it's still trying to chdir to /root, that means that $HOME is set to
/root in pserver's environment, which is just plain wrong.

-Larry Jones

I hope Mom and Dad didn't rent out my room. -- Calvin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]