You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Walter Cazzola <ca...@dico.unimi.it> on 2011/03/22 20:58:23 UTC
a wrong chmod command rendered all my repositories unaccessible
Dear SVN experts,
I'm administrating a SVN server for my lab with several
repositories/projects accessed via SSL+DAV. The server runs on an old
mandriva (2009) with subversion 1.5.2 and apache 2.2.9 with mod_dav,
mod_ssl and mod_dav_svn installed. Repositories are separate directory
associate to the project.
A couple of days ago doing some cleaning on my server I've executed a
«chmod 700 -R *» on the wrong directory (to be precise on /home/svn) with
the result to render inaccessible the access to my repository from
remote, as in the following case:
>svn checkout https://url/svn/thales/trunk
svn: access to 'https://url/svn/thales/trunk' forbidden
I can't do update or commit as well. Before that catastrophic error
everything was working well. I can't access neither from the command line
nor from firefox.
I've tried to change back the correct access rights but with no luck and
also a «chmod 777 -R *» on the same directory didn't help. Also
restarting apache doesn't help.
What am I doing wrong? Attached to this message you find the current
situation of one of my repositories with what I consider correct access
rights.
I hope you can help with my problem.
Thanks in advance for all the help
Walter
--
Re: a wrong chmod command rendered all my repositories unaccessible
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 22, 2011, at 14:58, Walter Cazzola wrote:
> I'm administrating a SVN server for my lab with several
> repositories/projects accessed via SSL+DAV. The server runs on an old
> mandriva (2009) with subversion 1.5.2 and apache 2.2.9 with mod_dav,
> mod_ssl and mod_dav_svn installed. Repositories are separate directory
> associate to the project.
>
> A couple of days ago doing some cleaning on my server I've executed a
> «chmod 700 -R *» on the wrong directory (to be precise on /home/svn) with
> the result to render inaccessible the access to my repository from
> remote, as in the following case:
> >svn checkout https://url/svn/thales/trunk
> svn: access to 'https://url/svn/thales/trunk' forbidden
>
> I can't do update or commit as well. Before that catastrophic error
> everything was working well. I can't access neither from the command line
> nor from firefox.
>
> I've tried to change back the correct access rights but with no luck and
> also a «chmod 777 -R *» on the same directory didn't help. Also
> restarting apache doesn't help.
>
> What am I doing wrong? Attached to this message you find the current
> situation of one of my repositories with what I consider correct access
> rights.
The listings shown in your attachment show things that have not been chmod'ed 777.
Not sure about Mandriva, but on Mac OS X at least, the required syntax is "chmod -R 777 thing"; "chmod 777 -R thing" would show the error message "chmod: -R: No such file or directory".