Hi, I know this is a FAQ issue.  However, I'm too dumb to figure this out
(maybe I should not touch this linux stuff :) ).  I have been working on
this pserver problem last week and read all the email regarding this issue.
Here is what's happened:

cvs server is 1.8.10 at redhat linux 6.1
I did all the standard things in Open Source Development with CVS book.  I
tried "telent localhost 2401" to make sure inetd started properly.  When I
login from remote (another redhat linux 6.1) cvs client (1.8.10), I got 

cvs login: cannot open /root/.cvspass: Permission denied
cvs [login aborted]: could not open /root/.cvspass: Permission denied  

I knew this is due to a broken inetd problem that is discussed between larry
and noey.  However, I tried both lines in inetd.conf and none of them work.

cvspserver stream tcp nowait root /usr/bin/env - /usr/bin/cvs -f
--allow-root=/usr/local/cvsrepos pserver

cvspserver stream tcp nowait root /usr/bin/env env - /usr/bin/cvs -f
--allow-root=/usr/local/cvsrepos pserver

Cederqvist's trouble shooting session also discuss exact same problem.  I
applied a cvs.wrapper file copied from Hamid Ghassemi (in his question about
memory error) trying to unset the HOME environment variable.

Now, my inetd.conf has a line like this:
cvspserver stream tcp nowait root /usr/local/bin/cvs.wrapper

cvs.wrapper sets to executable and contains the following:
#!/bin/sh
echo `date` >> /tmp/cvs.log
unset HOME
exec /usr/bin/cvs -f --allow-root=/usr/local/cvsRepos pserver

In the last line, I tried both "exec" and "exec -".  I still get the
permission denied error.  Apparently, cvs still use "/root" as home
directory.

Can you help me to see where is my problem?  Do I need to remove existing
"/root/.cvspass" file?  

Other Info:
I have always signed up as root on the server box. All files I created are
owned by root. I did not use passwd file in CVSROOT/ directory (yet). 

When attempting to connect to cvs server, I use a command like this:
$cvs -d :pserver:user@domain:/usr/local/cvsRepos login
if I issue this command as root (from the client side), I can pass the login
in (without the permission denied error) but failed at "cvs co myproj"
command.

Reply via email to