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

Re: svnadmin create makes bad file permissions

From: Peter Samuelson <peter_at_p12n.org>
Date: 2007-03-31 04:19:19 CEST

[zig]
> >sudo -u apache svnadmin create repo

> I guess this would work for me. I didn't know about sudo's -u flag.
> I guess it would be nice if there were a tiny brief mention of this
> in the documentation.

It's in the documentation on my system.

       -u The -u (user) option causes sudo to run the specified command
          as a user other than root.

...from 'man sudo'.

If you meant the svnadmin documentation - well, svnadmin behaves
exactly like almost all Unix commands: it creates output files as its
own user. I can't imagine what else anyone would expect. If you want
to create files owned by user 'foo', the thing to do is to become user
'foo' before creating them. Nothing specific to svn here.

Received on Sat Mar 31 04:19:40 2007

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.