Re: Subversion: existing users

2011-07-21 Thread Andy Canfield
On 07/21/2011 09:33 PM, Nico Kadel-Garcia wrote: On Thu, Jul 21, 2011 at 6:12 AM, Andy Canfield wrote: ADDENDUM ... I used root to create the /data/svn directory. Then, anticpiating problems, I did a chmod to make it writable to all. Later I ran svnadmin create /data/svn/sample and it creat

Re: Subversion access control

2011-07-21 Thread Andy Canfield
Thank you very much On 07/20/2011 10:27 PM, Geoff Hoffman wrote: Andy, I thought you were off Apache and onto svnserve. Anyway, I sent you this info last week - maybe you missed it. It is pasted again below. I will grant to you that it is tricky to set up. The david winter blog post below s

Re: svnadmin failure on nearly identical system

2011-07-21 Thread Andy Canfield
On 07/22/2011 10:20 AM, Ryan Schmidt wrote: On Jul 21, 2011, at 22:09, Andy Canfield wrote: I have Ubuntu Linux 10.4 installed on my notebook computer named Lenny. I have the same system installed on my desktop computer named Athol (I had a lot of trouble getting that hardware to work). I h

Re: svnadmin failure on nearly identical system

2011-07-21 Thread Les Mikesell
On 7/21/11 10:09 PM, Andy Canfield wrote: *sudo -u www-data svnadmin create /data/svn/boofar* On Lenny the command works, silently. On Athol I get this message: * svnadmin: error while loading shared libraries: libsvn_repos-1.so.0: cannot open shared object file: No such file or

Re: svnadmin failure on nearly identical system

2011-07-21 Thread Ryan Schmidt
On Jul 21, 2011, at 22:09, Andy Canfield wrote: > I have Ubuntu Linux 10.4 installed on my notebook computer named Lenny. I > have the same system installed on my desktop computer named Athol (I had a > lot of trouble getting that hardware to work). I have installed the Ubuntu > Subversion pac

svnadmin failure on nearly identical system

2011-07-21 Thread Andy Canfield
I have Ubuntu Linux 10.4 installed on my notebook computer named Lenny. I have the same system installed on my desktop computer named Athol (I had a lot of trouble getting that hardware to work). I have installed the Ubuntu Subversion packages on each; namely subversion libapach

Re: Subversion user problem?

2011-07-21 Thread Nico Kadel-Garcia
On Thu, Jul 21, 2011 at 10:01 PM, Andy Levy wrote: > On Thu, Jul 21, 2011 at 21:31, Andy Canfield wrote: >> I ran into a problem with a web site I am developing under Drupal; a problem >> related to user. And I suspect that the same problem arises witn Subversion. >> >> On my local copy of that s

Re: Subversion user problem?

2011-07-21 Thread Andy Levy
On Thu, Jul 21, 2011 at 21:31, Andy Canfield wrote: > I ran into a problem with a web site I am developing under Drupal; a problem > related to user. And I suspect that the same problem arises witn Subversion. > > On my local copy of that site, sometimes the PHP code creates a directory > and puts

Re: Subversion user problem?

2011-07-21 Thread Nico Kadel-Garcia
On Thu, Jul 21, 2011 at 9:31 PM, Andy Canfield wrote: > I ran into a problem with a web site I am developing under Drupal; a problem > related to user. And I suspect that the same problem arises witn Subversion. > > On my local copy of that site, sometimes the PHP code creates a directory > and pu

Re: Subversion user problem?

2011-07-21 Thread Ryan Schmidt
On Jul 21, 2011, at 20:31, Andy Canfield wrote: > I ran into a problem with a web site I am developing under Drupal; a problem > related to user. And I suspect that the same problem arises witn Subversion. > > On my local copy of that site, sometimes the PHP code creates a directory and > puts

Subversion user problem?

2011-07-21 Thread Andy Canfield
I ran into a problem with a web site I am developing under Drupal; a problem related to user. And I suspect that the same problem arises witn Subversion. On my local copy of that site, sometimes the PHP code creates a directory and puts files into that directory. The directory had standard p

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Nico Kadel-Garcia
On Thu, Jul 21, 2011 at 7:24 PM, David Chapman wrote: > On 7/21/2011 4:00 PM, Daniel Neuberger wrote: >> >> On Thu, Jul 21, 2011 at 2:13 PM, Nico Kadel-Garcia >>  wrote: >>> >>> Don't give the shared "svn" user a valid shell If an administrator >>> needs to run operations as that user, to mani

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread David Chapman
On 7/21/2011 4:00 PM, Daniel Neuberger wrote: On Thu, Jul 21, 2011 at 2:13 PM, Nico Kadel-Garcia wrote: Don't give the shared "svn" user a valid shell If an administrator needs to run operations as that user, to manipulate config files or create new repositories, they can do "sudo -s -H -u

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Daniel Neuberger
On Thu, Jul 21, 2011 at 2:13 PM, Nico Kadel-Garcia wrote: > Don't give the shared "svn" user a valid shell If an administrator > needs to run operations as that user, to manipulate config files or > create new repositories, they can do "sudo -s -H -u svn" to get a > valid shell as the administ

Re: Subversion access control

2011-07-21 Thread Ryan Schmidt
On Jul 20, 2011, at 23:14, Andy Canfield wrote: > I would like to use http/https. I am not supposed to be working on the > server, but on my notebook workstation. And svn or svn+ssh require port 3690 > to be forwarded by the router, and we don't own the router. So I would prefer > http and/or

Re: Subversion access control / Linux users etc.

2011-07-21 Thread Ryan Schmidt
On Jul 21, 2011, at 06:54, Andy Canfield wrote: > The browser, when pointing to http://localhost/svn/RepoName, gives this answer > RepoName - Revision 0: / > Powered by Subversion version 1.6.12 (r955767). > This is true whether RepoName is 'sample' or 'example'. Of course, the only > thi

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Nico Kadel-Garcia
On Thu, Jul 21, 2011 at 11:05 AM, Daniel Neuberger wrote: > On Thu, Jul 21, 2011 at 10:51 AM, Nico Kadel-Garcia wrote: >> Stop *RIGHT* there. Go grab the Subverson 1.6.x from the RHEL updates. >> Do not pass go, do not collect $200 until you do this sitewide.  There >> are significant security an

Re: Can I prevent a file from being modified?

2011-07-21 Thread Andreas Krey
On Thu, 21 Jul 2011 11:06:00 +, David Weintraub wrote: > I have a pre-commit hook that allows you to set a directory as > "add-only". This was mainly for the tags directory. You can create a > tag, but once created, it can't be modified. The devil's advocate wants to know it this script accide

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Daniel Neuberger
On Thu, Jul 21, 2011 at 11:16 AM, Konstantin Kolinko wrote: > The scripts have execute permissions for those other users? Yes. > Maybe svn cannot find bash to execute those scripts? Consider what > happens when you run with empty PATH.  One known example is the tasks > run by cron. The same scrip

Re: Subversion access control / Linux users etc.

2011-07-21 Thread Thomas Harold
The issues with passwords is why we ended up going with SSH public-key authentication. Load the SSH key into the SSH agent, unlock it with the passphrase, then don't worry about it again until we reset the SSH agent at logout. Less prompts, happier users. (Plus it makes it harder to get into

Re: Subversion access control / Linux users etc.

2011-07-21 Thread Geoff Hoffman
On Thu, Jul 21, 2011 at 4:54 AM, Andy Canfield wrote: > ** > More user/command interaction - > > The commands to create the Subversion Repository Parent directory were > *sudo bash > mkdir /data/svn > chmod a+w /data/svn* > This created this directory: > *drwxrwxrwx 4 root 4096 201

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Konstantin Kolinko
2011/7/21 Daniel Neuberger : > In short, we have a repository owned by one user that is accessed by > tunneling over ssh to other user accounts. Can't comment on this. > The hooks work fine though if I ssh to the user account that owns the > repository rather than another user account (we can't o

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Daniel Neuberger
On Thu, Jul 21, 2011 at 11:01 AM, Daniel Shahaf wrote: > ls -ald $REPOS_DIR $REPOS_DIR/hooks/ $REPOS_DIR/hooks/pre-commit $ ls -ald repos/testrepo repos/testrepo/hooks/ repos/testrepo/hooks/pre-commit drwxrwxrwx 7 svnuser svnuser 4096 Jul 20 13:03 repos/testrepo drwxrwxrwx 2 svnuser svnuser 4096

Re: Subversion access control

2011-07-21 Thread Geoff Hoffman
> > > > On Wed, Jul 20, 2011 at 9:14 PM, Andy Canfield > wrote: > >> ** >> Thank you very much. >> >> >> On 07/20/2011 12:19 PM, Nico Kadel-Garcia wrote: >> >> On Tue, Jul 19, 2011 at 11:14 PM, Andy Canfield >> wrote: >> >> One thing has hit my mind today that I don't think you realize ... >> >

Re: Subversion access control

2011-07-21 Thread Geoff Hoffman
On Wed, Jul 20, 2011 at 9:14 PM, Andy Canfield wrote: > ** > Thank you very much. > > > On 07/20/2011 12:19 PM, Nico Kadel-Garcia wrote: > > On Tue, Jul 19, 2011 at 11:14 PM, Andy Canfield > wrote: > > One thing has hit my mind today that I don't think you realize ... > > I have never, in m

Re: Can I prevent a file from being modified?

2011-07-21 Thread David Weintraub
I have a pre-commit hook that allows you to set a directory as "add-only". This was mainly for the tags directory. You can create a tag, but once created, it can't be modified. This should fit well in your process. You can give it a try. I've just done a major rewrite that is more object oriented

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Daniel Neuberger
On Thu, Jul 21, 2011 at 10:51 AM, Nico Kadel-Garcia wrote: > Stop *RIGHT* there. Go grab the Subverson 1.6.x from the RHEL updates. > Do not pass go, do not collect $200 until you do this sitewide.  There > are significant security and performance improvements, well worth the > update pain. Okay,

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Daniel Shahaf
ls -ald $REPOS_DIR $REPOS_DIR/hooks/ $REPOS_DIR/hooks/pre-commit Daniel Neuberger wrote on Thu, Jul 21, 2011 at 09:36:22 -0400: > We have a rather unique setup to meet certain requirements and as a > result I can't get any hooks to work (even empty ones or ones that > just exit with a zero return

Re: empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Nico Kadel-Garcia
On Thu, Jul 21, 2011 at 9:36 AM, Daniel Neuberger wrote: > We have a rather unique setup to meet certain requirements and as a > result I can't get any hooks to work (even empty ones or ones that > just exit with a zero return code). > > In short, we have a repository owned by one user that is acc

empty pre-commit hook fails with svn+ssh with some accounts

2011-07-21 Thread Daniel Neuberger
We have a rather unique setup to meet certain requirements and as a result I can't get any hooks to work (even empty ones or ones that just exit with a zero return code). In short, we have a repository owned by one user that is accessed by tunneling over ssh to other user accounts. To get around

Re: Subversion: existing users

2011-07-21 Thread Nico Kadel-Garcia
On Thu, Jul 21, 2011 at 6:12 AM, Andy Canfield wrote: > ADDENDUM ... > > I used root to create the /data/svn directory. Then, anticpiating problems, > I did a chmod to make it writable to all. > > Later I ran svnadmin create /data/svn/sample and it created an entire > repository directory tree und

RE: Subversion: existing users

2011-07-21 Thread Cooke, Mark
> -Original Message- > From: Andy Canfield [mailto:andy.canfi...@pimco.mobi] > Sent: 21 July 2011 13:19 > To: nka...@gmail.com > Cc: users@subversion.apache.org > Subject: Re: Subversion: existing users > > > > On 07/21/2011 05:55 PM, Andy Levy wrote: > > On Thu, Jul 21, 2011 at

Re: Subversion: existing users

2011-07-21 Thread Andy Levy
On Thu, Jul 21, 2011 at 08:18, Andy Canfield wrote: > > > On 07/21/2011 05:55 PM, Andy Levy wrote: > > On Thu, Jul 21, 2011 at 06:12, Andy Canfield > wrote: > > ADDENDUM ... > > I used root to create the /data/svn directory. Then, anticpiating problems, > I did a chmod to make it writable to all.

Re: Subversion: existing users

2011-07-21 Thread Andy Canfield
On 07/21/2011 05:55 PM, Andy Levy wrote: On Thu, Jul 21, 2011 at 06:12, Andy Canfield wrote: ADDENDUM ... I used root to create the /data/svn directory. Then, anticpiating problems, I did a chmod to make it writable to all. Giving global write permission will lead to problems as well. Diffe

Re: Subversion access control / Linux users etc.

2011-07-21 Thread Andy Canfield
More user/command interaction - The commands to create the Subversion Repository Parent directory were *sudo bash mkdir /data/svn chmod a+w /data/svn* This created this directory: *drwxrwxrwx 4 root 4096 2011-07-21 17:36 /data/svn/* I ran this command as user root: *svnadmin

Re: Subversion: existing users

2011-07-21 Thread Andy Levy
On Thu, Jul 21, 2011 at 00:36, Andy Canfield wrote: >>> Alternatively, the SVN protocol will go to the svnserve program. >>> Below the mod_dav_syn layer and the svnserve layer and the repository >>> local >>> layer is the "Subversion Repository". Significantly, this is diagrammed >>> as >>> data,

Re: Subversion: existing users

2011-07-21 Thread Andy Levy
On Thu, Jul 21, 2011 at 06:12, Andy Canfield wrote: > ADDENDUM ... > > I used root to create the /data/svn directory. Then, anticpiating problems, > I did a chmod to make it writable to all. Giving global write permission will lead to problems as well. Different problems, but problems nonetheless

Re: Subversion: existing users

2011-07-21 Thread Andy Canfield
ADDENDUM ... I used root to create the /data/svn directory. Then, anticpiating problems, I did a chmod to make it writable to all. Later I ran svnadmin create /data/svn/sample and it created an entire repository directory tree under /data/svn. I don't remember but I probably ran it as root.

Server sent unexpected return value (504 ) in response to MERGE request for '/xxx'

2011-07-21 Thread zhiwei chen
Hi,all! When I commit some file(263 directories, 3016 files, and 30M), I encountered with this error: svn: Commit failed (details follow): svn: Server sent unexpected return value (504 ) in response to MERGE request for '/xxx' message bellow are apache error logs: [Thu Jul 20 16:45:20 2011] [erro

Re: external merge tool argument order does not match sample in svn-book

2011-07-21 Thread Stefan Sperling
On Wed, Jul 20, 2011 at 02:41:02PM -0600, Steven Trabert wrote: > http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.externaldifftools.merge, > Example 7.6 "mergewrap.py" shows the argument order as > ># Get the paths provided by Subversion. > >BASE = sys.argv[1] > >MINE = sys.ar