[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [LINUX] How to launch svnserve process with another user than 'root' ?

From: Tuncer Ayaz <tuncer.ayaz_at_gmail.com>
Date: 2006-08-30 20:40:05 CEST

On 8/30/06, Jim Weir <javawaba@hotmail.com> wrote:
> >From: "Tuncer Ayaz" <tuncer.ayaz@gmail.com>
> >To: "Anthony Muller" <Anthony.Mueller@hyperoffice.fr>
> >CC: users@subversion.tigris.org
> >Subject: Re: [LINUX] How to launch svnserve process with another user than
> >'root' ?
> >Date: Wed, 30 Aug 2006 15:19:54 +0000
> >
> >On 8/30/06, Anthony Muller <Anthony.Mueller@hyperoffice.fr> wrote:
> >>Hello,
> >>
> >>I don't know anything about Linux ... But I need to launch svnserve
> >>process (using xinetd deamon) with another user than 'root'.
> >>
> >>What must I change to do that?
> >
> >sample config which runs svnserve as user 'svn'
> >
> >/etc/xinet.d/svn
> >service svn
> >{
> > socket_type = stream
> > protocol = tcp
> > user = svn
> > wait = no
> > disable = no
> > server = /usr/bin/svnserve
> > server_args = -i -r /srv/svn
> > port = 3690
> >}
> >
> >>Moreover, is it possible to change the place where Subversion's files
> >>are installing using RPM distribution? My customer asks me to provide a
> >>RPM (or something else) that will install Subversion's files according
> >>their wishes... Is that possible?
> >
> >yes it is possible, but someone with knowledge about Subversion's
> >RPM specfiles might be able to help better than me.
> >I suggest reading RPM tutorials/HowTos first.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> >For additional commands, e-mail: users-help@subversion.tigris.org
> >
>
> If I want svn to start at boot up as the user "svn" I need to create the svn
> file as above and place it in place it in /etc/xinet.d/svn directory, is
> that right?

no, this is the inetd config for xinetd configuring what to do if someone
connects to the svnserve port. this means that each time someone
connects to the svnserve port xinetd starts an instance of svnserve as
configured above. there won't be any svnserve daemon running in the
background. xinetd will bind to the individual svnserve instances
port but only act as a multiplexer/proxy which lets svnserve do
the work. to learn how to run svnserve as a daemon consult the
Subversion manual (installation/setting up chapter) as it is
documented there already. basically you have to write an init script
and enable it in the needed runlevels.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 30 20:49:48 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.