Larry Jones wrote:
> What is $CVSROOT set to?
/works/CVS
# ls -lF /works
...
drwxrwxr-x 4 feng devel 4096 Oct 3 15:24 CVS
...
> > 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.
The sad part is that I have put the '-f' option in the right place. Look at the
command I used to start cvs:
# /sbin/tcpserver -v -u0 -g0 0 2401 /usr/local/bin/cvs -f \
--allow-root=/works/CVS pserver 2>&1 | /sbin/splogger cvs 3 &
> 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.
The correct $HOME value should then be the users' home? I'm wondering if running
a script to set the correct values for $HOME would work... But this solutin seems
pretty ugly :-<
> -Larry Jones
>
> I hope Mom and Dad didn't rent out my room. -- Calvin
--
Feng <[EMAIL PROTECTED]>
i-Bizz Mídia e Tecnologia
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs