Discussion:
svnserve via xinetd : file 'format' permission denied
Bruno Costacurta
2006-02-12 11:48:58 UTC
Permalink
Hello to All,

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'

However when started in daemon mode, svnserve is working fine.
So it seems I missed something about xinetd...

My xinetd config is :
.....
# default: on
# Subversion server

service svnserve
{
socket_type = stream
protocol = tcp
user = svnadmin
wait = no
disable = yes
server = /usr/bin/svnserve
server_args = -i -r /home/bruno/.svn_repository_documents
port = 3690
}
.....

Thanks for any clue.
Bye,
Bruno
Karl Heinz Marbaise
2006-02-12 11:32:02 UTC
Permalink
Hi there,
Post by Bruno Costacurta
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...
Post by Bruno Costacurta
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...
Post by Bruno Costacurta
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: ***@soebes.de
Tel.: +49 (0) 241 / 16 91 210 ICQ#: 135949029
Bruno Costacurta
2006-02-12 13:26:00 UTC
Permalink
Post by Karl Heinz Marbaise
Hi there,
Post by Bruno Costacurta
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.
Post by Karl Heinz Marbaise
Post by Bruno Costacurta
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.
Post by Karl Heinz Marbaise
Post by Bruno Costacurta
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.
Post by Karl Heinz Marbaise
Kind regards.
Karl Heinz Marbaise
Regards,
Bruno
Karl Heinz Marbaise
2006-02-12 16:19:47 UTC
Permalink
Hi Bruno,
Post by Bruno Costacurta
Post by Karl Heinz Marbaise
Post by Bruno Costacurta
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...
Post by Bruno Costacurta
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?
Post by Bruno Costacurta
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.
Post by Bruno Costacurta
Post by Karl Heinz Marbaise
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: ***@soebes.de
Tel.: +49 (0) 241 / 16 91 210 ICQ#: 135949029
Bruno Costacurta
2006-02-12 18:23:38 UTC
Permalink
Hi again Karl Heinz,

many thanks for your patience. Hereafter my (hopefully complete) answers to
your questions.
Post by Karl Heinz Marbaise
Hi Bruno,
Post by Bruno Costacurta
Post by Karl Heinz Marbaise
Post by Bruno Costacurta
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
Post by Karl Heinz Marbaise
Post by Bruno Costacurta
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)
Post by Karl Heinz Marbaise
Post by Bruno Costacurta
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
Post by Karl Heinz Marbaise
Post by Bruno Costacurta
Post by Karl Heinz Marbaise
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'
Post by Karl Heinz Marbaise
Have you restarted xinetd ?
Yes, via kill -SIGUSR2 `cat /var/run/xinetd.pid`
Post by Karl Heinz Marbaise
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.
Post by Karl Heinz Marbaise
Kind regards.
Karl Heinz Marbaise
Kind Regards,
Bruno
Karl Heinz Marbaise
2006-02-12 17:49:28 UTC
Permalink
Hi Bruno,
Post by Bruno Costacurta
svn info svn://192.168.1.2/
Permission denied
[...]
Post by Bruno Costacurta
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.
Post by Bruno Costacurta
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: ***@soebes.de
Tel.: +49 (0) 241 / 16 91 210 ICQ#: 135949029
Bruno Costacurta
2006-02-12 21:07:01 UTC
Permalink
Hi again Karl Heinz,
Post by Karl Heinz Marbaise
Hi Bruno,
Post by Bruno Costacurta
svn info svn://192.168.1.2/
Permission denied
[...]
Post by Bruno Costacurta
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.
Post by Bruno Costacurta
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
Post by Karl Heinz Marbaise
Kind Regards
Karl Heinz Marbaise
Karl Heinz Marbaise
2006-02-12 11:33:22 UTC
Permalink
Hi there,

i'm sorry. I have missed to ask what version do you use as client and
server ?

Kind regards.
Karl Heinz Marbaise
--
Software Entwicklungs- und Beratungs Service http://www.soebes.de
Dipl.Ing.(FH) Karl Heinz Marbaise email: ***@soebes.de
Tel.: +49 (0) 241 / 16 91 210 ICQ#: 135949029
Bruno Costacurta
2006-02-12 13:22:21 UTC
Permalink
Post by Karl Heinz Marbaise
Hi there,
i'm sorry. I have missed to ask what version do you use as client and
server ?
Kind regards.
Karl Heinz Marbaise
On both server and laptop, svn --version returns 'version 1.2.3 (r15833)'
Note:
Linux Fedora on server
Linux Debian on laptop.

Regards,
Bruno
Loading...