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

RE: Beginning Subversion - 404 Not Found

From: Erik Hemdal <erik_at_comprehensivepower.com>
Date: 2006-09-12 19:27:15 CEST

> -----Original Message-----
> From: Bob Butterworth [mailto:BButterworth@techpro.com]
> Sent: Tuesday, September 12, 2006 12:12 PM
> To: users@subversion.tigris.org
> Subject: RE: Beginning Subversion - 404 Not Found
>
>
> Ok, after a little research I found this page which has a
> chmod 1/4 of the way down
>
> http://www.debian-administration.org/articles/374
>
> The chmod in the tutorial I was using:
>
> http://www.howtoforge.com/debian_subversion_websvn
>
> Was this
>
> chmod -R 770 /var/svn-repos/*
>

This one says, "Give read, write, and execute permission to everything under
/var/svn-repos to the user who owns the file and to any others in his group.
Don't give any privileges to any other users." The -R option makes it
recursive, so it will really do all the files and folders in there. Let's
say for argument that these files are owned by a user called 'svn'.

The notion of a group allows multiple users to share files, if you want them
to.

Most Linux systems I've seen have a "user-private group" scheme. Each user
is placed in a unique group. So the group permissions don't help you share
files unless you specifically set up groups for users to share. If a user
named 'apache' is trying to work in these files owned by user 'svn', and
they are not in the same group, then it will fail.

> Which didn't work
>
> But this new chmod did
>
> chmod -R 777 /var/svn-repos/*
>

This chmod gives read, write, and execute permissions to the owner, his
group members (if there are any), and to any other users -- everyone who
uses the computer.

> I'm not quite the linux guru yet but is this way chmod
> command secure or am I opening myself up to future problems?
>

Permissions of 777 allow any user to make changes in /var/svn-repos, such as
deleting files. Based on how you're set up -- whether you trust users,
whether you're on a secure network, etc. -- you can decide if this is a
problem for you.

Check the man pages for

        chmod: changes file mode
        chown: changes file ownership
        chgrp: changes the active group

Erik
>
> Bob
>
> -----Original Message-----
> From: Bob Butterworth [mailto:BButterworth@techpro.com]
> Sent: Tuesday, September 12, 2006 9:46 AM
> To: Ryan Schmidt
> Cc: users@subversion.tigris.org
> Subject: RE: Beginning Subversion - 404 Not Found
>
> Ok my apache error log says Could not open the requested_SVN
> filesystem
>
> So maybe some kind of permission problem?
>
> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2006c@ryandesign.com]
> Sent: Tuesday, September 12, 2006 5:32 AM
> To: Bob Butterworth
> Cc: users@subversion.tigris.org
> Subject: Re: Beginning Subversion - 404 Not Found
>
> On Sep 12, 2006, at 08:01, Bob Butterworth wrote:
>
> > I created a repository at /var/svn-repos
> >
> > and added to my apache config
> >
> > <Location /svn>
> > DAV svn
> > SVNPath /var/svn-repos
> > AuthType Basic
> > AuthName "My Subversion Repository"
> > AuthUserFile /etc/apache2/dav_svn.passwd
> > Require valid-user
> > SSLRequireSSL
> > </Location
> >
> > I can browse to my my machine and it comes up with the
> apache default
> > page
> >
> > I can add /svn at the end and it will say My Subversion
> Repository and
>
> > ask me for a user name and password. It accepts my username and
> > password but then give me a 404 error like it's not finding
> any files.
>
> > Any ideas?
>
> What does the Apache error log say? What exactly is it trying
> and failing to find?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 12 20:21:28 2006

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