[scponly] subversion support

Dimitri Papadopoulos-Orfanos papadopo at shfj.cea.fr
Thu Apr 7 05:31:24 EDT 2005


Hi,

I'm sorry if you receive this twice. I believe my first message didn't 
seem to have made it to the list so I'm resending it.

I have some problems using Subversion with scponly. Some of them are
known problems, for others I couldn't find a solution in the mailing
list archive.


1) Some configure options fail at compile time.

I configure scponly this way:
	./configure \
		--prefix=/usr/local/scponly-4.0 \
		--enable-svn-compat \
		--disable-scp-compat \
		--disable-gftp-compat \
		--disable-winscp-compat \
		--disable-sftp \
		--disable-wildcards
This doesn't work with scponly-4.0 because of missing #ifdef's. It's a 
known issue and has already been fixed in CVS. See also:
https://lists.ccs.neu.edu/pipermail/scponly/2005-March/000736.html
https://lists.ccs.neu.edu/pipermail/scponly/2005-March/000773.html

2) scponly expects 'svn' instead of 'svnserve'

See also:
https://lists.ccs.neu.edu/pipermail/scponly/2005-March/000774.html

I've used the following patch to work around this problem:

--- configure.in-	2004-11-28 21:26:44.000000000 +0100
+++ configure.in	2005-04-06 14:03:20.208600910 +0200
@@ -237,7 +237,7 @@

  if test "x$enable_svn_compat" != "x" && test "x$enable_svn_compat" !=
"xno"; then
  	AC_MSG_NOTICE([enabling subversion compatability...])
-	SCPONLY_PATH_PROG_DEFINE([PROG_SVN],   [svn],
[/bin:/usr/bin:/usr/local/bin])
+	SCPONLY_PATH_PROG_DEFINE([PROG_SVN],   [svnserve],
[/bin:/usr/bin:/usr/local/bin])
  fi

  if test "x$enable_passwd_compat" != "x" && test
"x$enable_passwd_compat" != "xno"; then



3) It still doesn't work - maybe because of the '-t' option flag?

Here is the log with scponly. scponly is referenced in /etc/shells.
The same command works with the bash shell.

$ svn log svn+ssh://dimitri@svnhost/home/svn/repos/
[4402]: 3 arguments in total.
[4402]:         arg 0 is scponly
[4402]:         arg 1 is -c
[4402]:         arg 2 is svnserve -t
[4402]: opened log at LOG_AUTHPRIV, opts 0x00000029
[4402]: retrieved home directory of "/home/dimitri" for user "dimitri"
[4402]: setting uid to 1001
[4402]: processing request: "svnserve -t"
[4402]: denied request: svnserve -t [username: dimitri(1001), IP/port:
::ffff:132.111.11.11 65407 22]
svn: Connection closed unexpectedly
$

Any clues? I've seen similar error messages posted to the list, but my 
problem does't seem releated.



4) Our Subversion setup requires a different umask (0007).

Under bash I can set umask in ~/.bashrc. Can I set umask under scponly?
See also:
https://lists.ccs.neu.edu/pipermail/scponly/2005-February/000724.html


Is anyone using scponly with Subversion?

Regards,
Dimitri Papadopoulos




More information about the scponly mailing list