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

Re: chrooted ssh cvs server



On Sat, Jun 30, 2001 at 10:42:23PM -0700, will wrote:
> i think there may be a problem in this wrapper that chroots the repo.
> 
> http://www.idealx.org/en/doc/chrooted-ssh-cvs-server/chrooted-ssh-cvs-server_monobloc.html#runcvs
> 
> help is greatly appreciated

Where it says:


        } else {
                execl("/bin/cvs", "cvs", 
                        "server",
                        NULL);
        }

You'll probably want to add additional arguments, one per repository. Here's
an example from the LOSURS (www.losurs.org) repository (which uses a different
"run-cvs", but it's close enough and the differences don't affect the missing
argument problem):

        /* there should be --allow-root string for every
           repository you are going to allow access to */
        execl("/bin/cvs", "cvs",
                "--allow-root=/TILLMAN",
                "--allow-root=/LOSURS",
                "pserver",
                NULL);

- Tillman

-- 
Money is truthful. If a man speaks of his honor, make him pay cash.
	Robert Heinlein