[EMAIL PROTECTED] on 06/05/2000 10:47:30 AM
>Noel L Yap writes:
>>
>> Anyway, "cvs login" works fine now, but when I try to do "cvs co CVSROOT"
this
>> is what I get:
>> cvs server: cannot open /root/.cvsignore: Permission denied
>> cvs [server aborted]: can't chdir(/root): Permission denied
>
>(Sigh.) This problem gets reported at least twice a week -- haven't you
>been paying attention, Noel? :-)
Sorry, since I've only had to deal with pserver recently, I've been ignoring all
messages pertaining to it.
>You need to add a -f global option in inetd.conf and if that doesn't fix
>it (which means you're running Linux with its defective inetd), you need
>to arrange to unset $HOME in the server's environment. The easiest way
>is by using env to run cvs with a completely empty environment by
>changing inetd to something like:
>
> cvspserver stream tcp nowait root /usr/bin/env - /usr/local/bin/cvs -f
>--allow-root=/usr/home/nyap/.cvsroot-test pserver
Yes, I have it setup on Linux. This worked (although I had to
s|/usr/bin/env|/usr/bin/env env|).
>> cvspserver 2401/tcp
>> cvspserver 2401/udp
>
>CVS only uses TCP, so you can get rid of the UDP line if you like.
The udp line was already there, so I'll probably leave it.
>> Another thing I've tried was to explicitly create the $CVSROOT/CVSROOT/passwd
>> file. When doing this, I'm able to "cvs login" fine, but when I
>> "cvs co -c" I get:
>> Fatal error, aborting.
>> 4642: no such user
>> cvs checkout: authorization failed: server rh rejected access
>>
>> My $CVSROOT/CVSROOT/passwd file looks like:
>> nyap:<crypted passwd>
>
>Are you sure that's what it looks like? That error message almost
>always means that you're using an extract from /etc/passwd, which has a
>different format than CVSROOT/passwd:
>
> <user>:<password>:<gid>:<uid>...
>
>In CVSROOT/passwd, the third field is the user to run as.
The line in inetd.conf was all I had to fix. I guess the passwd file was a
strange symptom/side effect.
Noel
This communication is for informational purposes only. It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.