права доступа svn (помогите понять)

IDE, VCS и прочее

Модератор: Модераторы разделов

godima
Сообщения: 92
ОС: Debian Etch

права доступа svn

Сообщение godima »

Добрый день!
Попробовал освоить svn - получилось, теперь следующий шаг - администрирование.
Делаю следующее:

# svnadmin create file:///var/svn

# svn import . file:///var/svn -m "Comment"

# svnserve -d --listen-port 8000 -r /var/svn

# svn list svn://localhost:8000
выводит вид репозитория

В репозитории лежит каталог ruby

Далее иду в /var/svn/conf , чтобы настроить права доступа

файл svnserve.conf

Код:

### This file controls the configuration of the svnserve daemon, if you ### use it to allow access to this repository. (If you only allow ### access through http: and/or file: URLs, then this file is ### irrelevant.) ### Visit http://subversion.tigris.org/ for more information. [general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are "write", "read", ### and "none". The sample settings below are the defaults. anon-access = none auth-access = write ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file's location is relative to the conf directory. ### Uncomment the line below to use the default password file. password-db = passwd ### The authz-db option controls the location of the authorization ### rules for path-based access control. Unless you specify a path ### starting with a /, the file's location is relative to the conf ### directory. If you don't specify an authz-db, no path-based access ### control is done. ### Uncomment the line below to use the default authorization file. authz-db = authz ### This option specifies the authentication realm of the repository. ### If two repositories have the same authentication realm, they should ### have the same password database, and vice versa. The default realm ### is repository's uuid. # realm = My First Repository


файл authz

Код:

### This file is an example authorization file for svnserve. ### Its format is identical to that of mod_authz_svn authorization ### files. ### As shown below each section defines authorizations for the path and ### (optional) repository specified by the section name. ### The authorizations follow. An authorization line can refer to a ### single user, to a group of users defined in a special [groups] ### section, or to anyone using the '*' wildcard. Each definition can ### grant read ('r') access, read-write ('rw') access, or no access ### (''). [groups] # harry_and_sally = harry,sally # [/foo/bar] # harry = rw # * = # [repository:/baz/fuz] # @harry_and_sally = rw # * = r [ruby] harry = rw


файл passwd

Код:

### This file is an example password file for svnserve. ### Its format is similar to that of svnserve.conf. As shown in the ### example below it contains one section labelled [users]. ### The name and password for each user follow, one account per line. [users] harry = harry # sally = sallyssecret


далее делаю следующее:
# svn list svn://localhost:8000
сначала спрашивает пароль root,
потом предлагает ввести username, ввожу harry
предлагает ввести пароль, ввоже harry
ну и получаю в ответ звучную фразу
svn: Authorization failed

пытаюсь заново сделать команду
# svn list svn://localhost:8000
сразу же получаю
svn: Authorization failed

Помогите, пожалуйста, разобраться. Если не сложно конфиги покажите рабочие, или поправьте, в чем не прав

Заранее всем благодарен за помощь
Спасибо сказали:
Аватара пользователя
Doka
Сообщения: 715
Статус: ASIC Design Engineer
ОС: RHEL4

Re: права доступа svn

Сообщение Doka »

1. (наиболее очевидное) попробуйте после "# svnadmin create file:///var/svn"
выставить права на запись в эту папку **7, либо сделайте её владельцем - svnserve

2. разрешите анонимный доступ и попробуйте добиться работы в такой конфигурации

3. в authz для отладки прописать

Код: Выделить всё

 [/]
 * = rw

к сожалению, более подробно подсказать не могу - у меня SVN крутится на http://
Never stop thinking..................................................................
Спасибо сказали: