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

Re: Permission denied when import a project to subversion

From: ken carlino <ken.carlino_at_gmail.com>
Date: 2007-01-14 17:37:09 CET

I have change the permission of my 'db' directory to be 777. But when
i commit files from a directory, it has worked for a while. And then i
get a permssion denied message at a file.

And idea why?

# pwd
/srv/svn/repositories/sample/db
# ls -la
total 36
drwxrwsr-x 5 svn svn 4096 Jan 13 21:43 .
drwxr-xr-x 7 svn svn 4096 Jan 13 21:43 ..
-rwxrwxrwx 1 svn svn 6 Jan 13 21:43 current
-rwxrwxrwx 1 svn svn 2 Jan 13 21:43 format
-rwxrwxrwx 1 svn svn 5 Jan 13 21:43 fs-type
drwxrwxrwx 2 svn svn 4096 Jan 14 10:19 revprops
drwxrwxrwx 2 svn svn 4096 Jan 14 10:19 revs
drwxrwxrwx 2 svn svn 4096 Jan 14 10:19 transactions
-rwxrwxrwx 1 svn svn 37 Jan 13 21:43 uuid
-rwxrwxrwx 1 svn svn 0 Jan 13 21:43 write-lock

But here is the error message?

Adding mozilla/aclocal.m4
subversion/libsvn_subr/io.c:376: (apr_err=13)
svn: Can't open '/srv/svn/repositories/snapshot/db/current.tmp':
Permission denied

On 1/13/07, Bryan Kardisco <bryan.kardisco@gmail.com> wrote:
> Sometimes the stupid chmod and chown don't get into all of the
> sub-directories. I know when I setup a server this past week I was having
> all sorts of problems and that was one of the first ones I came across.
>
> I'd verify that all of the folders & sub-folders are 755s for that group.
> After that, if that doesn't work. Sometimes things are just goofy and you
> can try to create a new repo and stuff.
>
>
>
> On 1/13/07, ken carlino <ken.carlino@gmail.com> wrote:
> >
> > Hi,
> >
> > I have created a new repository in subversion using this (with the group
> 'svn'):
> > svnadmin create /srv/svn/repositories/sample
> >
> > And then i try to import a project by doing this:
> >
> > $ svn import . file:///srv/svn/repositories/sample
> --message "Initial import"
> >
> > But I get an error like this:
> > subversion/libsvn_subr/io.c:2764: (apr_err=13)
> > svn: Can't create directory
> > '/srv/svn/repositories/sample/db/transactions/0-1.txn':
> Permission
> > denied
> >
> > And I have checked the permission on linux:
> > $ ls -la
> > total 36
> > drwxr-xr-x 7 svn svn 4096 Jan 13 21:43 .
> > drwxr-xr-x 3 svn svn 4096 Jan 13 21:43 ..
> > drwxr-xr-x 2 svn svn 4096 Jan 13 21:43 conf
> > drwxr-xr-x 2 svn svn 4096 Jan 13 21:43 dav
> > drwxrwsr-x 5 svn svn 4096 Jan 13 21:43 db
> > -r--r--r-- 1 svn svn 2 Jan 13 21:43 format
> > drwxr-xr-x 2 svn svn 4096 Jan 13 21:43 hooks
> > drwxr-xr-x 2 svn svn 4096 Jan 13 21:43 locks
> > -rw-r--r-- 1 svn svn 229 Jan 13 21:43 README.txt
> >
> >
> > And I am sure I am in 'svn' group:
> > $ grep svn /etc/group
> > svn:x:502:svn,carlino
> >
> > Can you please tell me what am I missing?
> >
> > Thank you.
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail:
> users-help@subversion.tigris.org
> >
> >
>
>
>
> --
> Bryan Kardisco
> PSU: Class of 2006
> Information Sciences & Tech

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 14 17:37:37 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.