You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ken carlino <ke...@gmail.com> on 2007/01/14 03:55:02 UTC
Permission denied when import a project to subversion
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
Re: Permission denied when import a project to subversion
Posted by ken carlino <ke...@gmail.com>.
Adding mozilla/alocal.m4
I have tried multiple times, it always stuck at the same file
('mozilla/aclocal.m4') with the permission denied on the same file
'current.tmp'.
again, i have chmod 777 on the 'db' directory of my repository.
any further help is appreciated.
On 1/14/07, ken carlino <ke...@gmail.com> wrote:
> 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 <br...@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 <ke...@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
Re: Permission denied when import a project to subversion
Posted by ken carlino <ke...@gmail.com>.
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 <br...@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 <ke...@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
Re: Permission denied when import a project to subversion
Posted by Jeff Smith <js...@robotronics.com>.
On Sunday 14 January 2007 09:45, ken carlino wrote:
> 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?
When it happened to me, it was because I needed to set the umask. The
user writing (which wouldn't change if svn was the user) was
commiting a new revision which didn't have proper permissions for
another user to access it.
I've also used sticky bit in directory permissions. The only time this
should be a problem though, is if some are accessing it with file://
which bypasses the svn server.
I've used a complex `find` command to search for files that either
have unexpected permission bits, or have a username that is not
"svn".
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Permission denied when import a project to subversion
Posted by Bryan Kardisco <br...@gmail.com>.
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 <ke...@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