You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Karl Heinz Marbaise <kh...@gmx.de> on 2006/02/12 11:32:02 UTC

Re: svnserve via xinetd : file 'format' permission denied

Hi there,

> when using svnserve via xinetd, I have a problem related to the file 'format' 
> in my repository as permission is denied (whatever access file flags on file). 
> 'Can't open file my_repo/...etc.../format : permission is denied'

Would please put your "svn list svn:..." call here...

> service svnserve
> {
>         socket_type     = stream
>         protocol        = tcp
>         user            = svnadmin
Have you given the directories/files the correct permission?

chmod -R 03777 /home/bruno/.svn_repository_documents
and of course
chown svnadmin:users for the directories...

>         server_args     = -i -r /home/bruno/.svn_repository_documents
Why do you put your repos into a user home directory?

Kind regards.
Karl Heinz Marbaise
-- 
Software Entwicklungs- und Beratungs Service  http://www.soebes.de
Dipl.Ing.(FH) Karl Heinz Marbaise            email: info@soebes.de
Tel.: +49 (0) 241 / 16 91 210                 ICQ#: 135949029

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnserve via xinetd : file 'format' permission denied

Posted by Bruno Costacurta <co...@biz.tiscali.be>.
Hi again Karl Heinz,

On Sunday 12 February 2006 17:49, Karl Heinz Marbaise wrote:
> Hi Bruno,
>
> > svn info svn://192.168.1.2/
> > svn : Can't open file '/home/bruno/.svn_repository_documents/format' :
> > Permission denied
>
> [...]
>
> > ls -al /home/bruno/.svn_repository_documents/
> > total 36
> > drwxrwsrwt   7 svnadmin users 4096 Feb 11 18:51 .
> > drwx------  73 bruno     1003 4096 Feb 12 13:13 ..
> > drwxrwsrwt   2 svnadmin users 4096 Feb 11 23:34 conf
> > drwxrwsrwt   2 svnadmin users 4096 Feb 11 18:51 davroot bin daemon sys
> > adm disk wheel svnadmin
> > drwxrwsrwt   5 svnadmin users 4096 Feb 12 00:37 db
> > -rwxrwxrwt   1 svnadmin users    2 Feb 11 18:51 format
> > drwxrwsrwt   2 svnadmin users 4096 Feb 11 18:51 hooks
> > drwxrwsrwt   2 svnadmin users 4096 Feb 11 18:51 locks
> > -rwxrwxrwt   1 svnadmin users  379 Feb 11 18:51 README.txt
>
> Now it's clear what's going on.
>
>  > drwx------  73 bruno     1003 4096 Feb 12 13:13 ..
>
> You have to give
> others the permission to change into your home directory.
> You should chmod 0755 your /home/bruno directory, cause you don't allow
> any other user to change into your home directory.
> You have created a user svnadmin and run the xinetd with that user, but
> you don't allow any user to go into your home directory.
>
> First you should change your home directory (for testing) to the above
> (chmod 0755 /home/bruno) and try it again.
>
> After that you should change the user of the entry for xinetd into e.g.
> "bruno" instead of svnadmin and test this...

Indeed after 'chmod /home/bruno' svnserve (via xinetd) works fine.
Thanks a lot for your time.

Kind Regards,
Bruno

> Kind Regards
> Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnserve via xinetd : file 'format' permission denied

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi Bruno,


> svn info svn://192.168.1.2/
> svn : Can't open file '/home/bruno/.svn_repository_documents/format' : 
> Permission denied
[...]

> ls -al /home/bruno/.svn_repository_documents/
> total 36
> drwxrwsrwt   7 svnadmin users 4096 Feb 11 18:51 .
> drwx------  73 bruno     1003 4096 Feb 12 13:13 ..
> drwxrwsrwt   2 svnadmin users 4096 Feb 11 23:34 conf
> drwxrwsrwt   2 svnadmin users 4096 Feb 11 18:51 davroot bin daemon sys adm 
> disk wheel svnadmin
> drwxrwsrwt   5 svnadmin users 4096 Feb 12 00:37 db
> -rwxrwxrwt   1 svnadmin users    2 Feb 11 18:51 format
> drwxrwsrwt   2 svnadmin users 4096 Feb 11 18:51 hooks
> drwxrwsrwt   2 svnadmin users 4096 Feb 11 18:51 locks
> -rwxrwxrwt   1 svnadmin users  379 Feb 11 18:51 README.txt
> 
Now it's clear what's going on.

 > drwx------  73 bruno     1003 4096 Feb 12 13:13 ..
You have to give
others the permission to change into your home directory.
You should chmod 0755 your /home/bruno directory, cause you don't allow 
any other user to change into your home directory.
You have created a user svnadmin and run the xinetd with that user, but 
you don't allow any user to go into your home directory.

First you should change your home directory (for testing) to the above 
(chmod 0755 /home/bruno) and try it again.

After that you should change the user of the entry for xinetd into e.g. 
"bruno" instead of svnadmin and test this...

Kind Regards
Karl Heinz Marbaise
-- 
Software Entwicklungs- und Beratungs Service  http://www.soebes.de
Dipl.Ing.(FH) Karl Heinz Marbaise            email: info@soebes.de
Tel.: +49 (0) 241 / 16 91 210                 ICQ#: 135949029


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnserve via xinetd : file 'format' permission denied

Posted by Bruno Costacurta <co...@biz.tiscali.be>.
Hi again Karl Heinz,

many thanks for your patience. Hereafter my (hopefully complete) answers to 
your questions.

On Sunday 12 February 2006 16:19, Karl Heinz Marbaise wrote:
> Hi Bruno,
>
> >>>when using svnserve via xinetd, I have a problem related to the file
> >>>'format' in my repository as permission is denied (whatever access file
> >>>flags on file). 'Can't open file my_repo/...etc.../format : permission
> >>> is denied'
>
> Can you post the complete error message here...
svn info svn://192.168.1.2/
svn : Can't open file '/home/bruno/.svn_repository_documents/format' : 
Permission denied

>
> > svn info svn://192.168.1.2/
> > As I said before, this command works fine when svnserve is started in
> > daemon,
>
> You started the svnserve as user bruno? 
No. svnserve in daemon mode was started with user root.
(remind : svnserve via daemon mode is working fine, not xinetd)

>
> > but not via xinetd.
> > note: 192.168.1.2 is the IP address of my server.
>
> Ok. Would please give a liste "ls -al" of the directory "my_repo" cause
> it seemed to me you don't give the correct permissions to your directories.
ls -al /home/bruno/.svn_repository_documents/
total 36
drwxrwsrwt   7 svnadmin users 4096 Feb 11 18:51 .
drwx------  73 bruno     1003 4096 Feb 12 13:13 ..
drwxrwsrwt   2 svnadmin users 4096 Feb 11 23:34 conf
drwxrwsrwt   2 svnadmin users 4096 Feb 11 18:51 davroot bin daemon sys adm 
disk wheel svnadmin
drwxrwsrwt   5 svnadmin users 4096 Feb 12 00:37 db
-rwxrwxrwt   1 svnadmin users    2 Feb 11 18:51 format
drwxrwsrwt   2 svnadmin users 4096 Feb 11 18:51 hooks
drwxrwsrwt   2 svnadmin users 4096 Feb 11 18:51 locks
-rwxrwxrwt   1 svnadmin users  379 Feb 11 18:51 README.txt

>
> >>chmod -R 03777 /home/bruno/.svn_repository_documents
> >>and of course
> >>chown svnadmin:users for the directories...
> >
> > Try this but have still same problems
>
> I can't believe that, cause you give all permissions to all users
> and world...
for bruno : groups returns 'bruno uucp users svnuser'
for root : groups returns 'root bin daemon sys adm disk wheel svnadmin'

>
> Have you restarted xinetd ?
Yes, via kill -SIGUSR2 `cat /var/run/xinetd.pid`

>
> BTW: If you having this local repos just to synchronize with your server
> just take a look at svk.elixus.org which might be a solution for you...
Indeed. I don't know svk.elixus.org but in fact currently I use Subversion 
because also looking for versioning..etc..for these documents.

>
> Kind regards.
> Karl Heinz Marbaise

Kind Regards,
Bruno

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnserve via xinetd : file 'format' permission denied

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi Bruno,

>>>when using svnserve via xinetd, I have a problem related to the file
>>>'format' in my repository as permission is denied (whatever access file
>>>flags on file). 'Can't open file my_repo/...etc.../format : permission is
>>>denied'

Can you post the complete error message here...


> svn info svn://192.168.1.2/
> As I said before, this command works fine when svnserve is started in daemon, 
You started the svnserve as user bruno?

> but not via xinetd.
> note: 192.168.1.2 is the IP address of my server.

Ok. Would please give a liste "ls -al" of the directory "my_repo" cause 
it seemed to me you don't give the correct permissions to your directories.

>>chmod -R 03777 /home/bruno/.svn_repository_documents
>>and of course
>>chown svnadmin:users for the directories...
> 
> 
> Try this but have still same problems
I can't believe that, cause you give all permissions to all users
and world...

Have you restarted xinetd ?


BTW: If you having this local repos just to synchronize with your server 
just take a look at svk.elixus.org which might be a solution for you...

Kind regards.
Karl Heinz Marbaise
-- 
Software Entwicklungs- und Beratungs Service  http://www.soebes.de
Dipl.Ing.(FH) Karl Heinz Marbaise            email: info@soebes.de
Tel.: +49 (0) 241 / 16 91 210                 ICQ#: 135949029

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnserve via xinetd : file 'format' permission denied

Posted by Bruno Costacurta <co...@biz.tiscali.be>.
On Sunday 12 February 2006 11:32, Karl Heinz Marbaise wrote:
> Hi there,
>
> > when using svnserve via xinetd, I have a problem related to the file
> > 'format' in my repository as permission is denied (whatever access file
> > flags on file). 'Can't open file my_repo/...etc.../format : permission is
> > denied'
>
> Would please put your "svn list svn:..." call here...

svn info svn://192.168.1.2/
As I said before, this command works fine when svnserve is started in daemon, 
but not via xinetd.
note: 192.168.1.2 is the IP address of my server.

>
> > service svnserve
> > {
> >         socket_type     = stream
> >         protocol        = tcp
> >         user            = svnadmin
>
> Have you given the directories/files the correct permission?
>
> chmod -R 03777 /home/bruno/.svn_repository_documents
> and of course
> chown svnadmin:users for the directories...

Try this but have still same problems.

>
> >         server_args     = -i -r /home/bruno/.svn_repository_documents
>
> Why do you put your repos into a user home directory?

Because this repo is strictly dedicated to personal documents files and 
directories. Subversion is use here to synchronize files between the two PC I 
work with.

>
> Kind regards.
> Karl Heinz Marbaise

Regards,
Bruno


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org