LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Running CVS Server with pserver as "cvs" user on Fedora Core 4 (https://www.linuxquestions.org/questions/linux-software-2/running-cvs-server-with-pserver-as-cvs-user-on-fedora-core-4-a-364181/)

rupak 09-17-2005 08:34 AM

Running CVS Server with pserver as "cvs" user on Fedora Core 4
 
Hi,

I have been trying hard to setup a cvs server on Fedora Core 4 box. After lots of efforts (including installing missing xinetd), here is the state where I'm stuck:

Code:

$ cvs -d :pserver:rupak@192.168.2.10:/home/cvs/cvsroot status
setgid failed: Operation not permitted

I can login but any other operation just fails with this error.

Here is how the cvspserver service configuration looks like:

Code:

# default: off
# description: The CVS service can record the history of your source \
#              files. CVS stores all the versions of a file in a single \
#              file in a clever way that only stores the differences \
#              between versions.
service cvspserver
{
        disable                        = no
        socket_type                = stream
        protocol                = tcp
        wait                        = no
        user                        = cvs
        log_type                = FILE /var/log/cvspserver
        passenv                        = PATH
        server                        = /usr/bin/cvs
#        env                        = HOME=/home/cvs
        server_args                = -f --allow-root=/home/cvs/cvsroot pserver
        bind                        = 192.168.2.10
#        log_on_failure                += USERID
}

and this is the cvs permissions:
Code:

-rwxr-sr-x  1 root root 603128 Apr 20 14:31 /usr/bin/cvs
following is the cvsroot directory:
Code:

drwxrwxr-x  3 cvs cvsadmin 4096 Sep 16 18:45 /home/cvs/cvsroot
with these contents:
Code:

total 12
drwxrwxr-x  3 cvs cvsadmin 4096 Sep 16 18:45 .
drwxr-xr-x  3 cvs cvsadmin 4096 Sep 16 23:54 ..
drwxrwxr-x  3 cvs cvsadmin 4096 Sep 16 23:42 CVSROOT

The remote login succeeds:
Code:

$ cvs -d :pserver:rupak@192.168.2.10:/home/cvs/cvsroot login
Logging in to :pserver:rupak@192.168.2.10:2401/home/cvs/cvsroot
CVS password:
$

I have tried removing the setgid from cvs and putting it back, modifying the service configuration (putting group there and removing it) but somehow nothing seems to work. Also, even google fails me here and does not yield any documentation on this. :scratch:

Oh and BTW, the firewall is disabled and SELinux is also disabled.

Help me, Gurus! I don't want to run the cvs server as root.

Thanks.
Rupak

acid_kewpie 09-17-2005 10:23 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

rupak 09-17-2005 12:10 PM

I was not sure if it is a CVS issue or Fedora Issue. I was thinking of (sym)linking it somehow but could not figure out if that was possible.

I think, Fedora guys should cover this issue in any case, hence this one can be closed.

Sorry guys.
Rupak


All times are GMT -5. The time now is 09:07 AM.