|
434.
|
|
|
<Location /svn>
DAV svn
SVNPath /path/to/repos
AuthType Basic
AuthName "Your repository name"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
<Location /svn>
DAV svn
SVNPath /caminho/para/o/repositorio
AuthType Basic
AuthName "Nome do seu repositorio"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
|
|
Translated and reviewed by
Yves Junqueira
|
|
|
|
Located in
../generic/serverguide/C/vcs.xml:212(programlisting)
|
|
435.
|
|
|
To import or commit files to your Subversion repository over HTTP, the repository should be owned by the HTTP user. In Ubuntu systems, normally the HTTP user is <command>www-data</command>. To change the ownership of the repository files enter the following command from terminal prompt:
|
|
|
|
Para importar ou enviar arquivos para seu repositório Subversion através de HTTP, o repositório deve ter o usuário HTTP como dono. Nos sistemas Ubuntu, o usuário HTTP normalmente é <command>www-data</command>. Para mudar o dono dos arquivos de um repositório difite o seguinte comando em um prompt de terminal:
|
|
Translated by
Daniel Neis
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
serverguide/C/vcs.xml:229(para)
|
|
436.
|
|
|
sudo chown -R www-data:www-data /path/to/repos
|
|
|
|
sudo chown -R www-data:www-data /path/to/repos
|
|
Translated and reviewed by
Andre Noel
|
|
|
|
Located in
serverguide/C/vcs.xml:238(command)
|
|
437.
|
|
|
By changing the ownership of repository as <command>www-data</command> you will not be able to import or commit files into the repository by running <command>svn import file:///</command> command as any user other than <command>www-data</command>.
|
|
|
|
Mudando o done do repositório para <command>www-data</command> você não poderá importar ou enviar arquivos ao repositório executando o comando <command>svn import file:///</command> como qualquer usuário diferente de <command>www-data</command>.
|
|
Translated by
Daniel Neis
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
serverguide/C/vcs.xml:241(para)
|
|
438.
|
|
|
Next, you must create the <filename>/etc/subversion/passwd</filename> file. This file contains user authentication details. To add an entry, i.e. to add a user, you can run the following command from a terminal prompt:
|
|
|
|
Em seguida, você precisa criar o arquivo <filename>/etc/subversion/passwd</filename>. Esse arquivo contém detalhes de autenticação de usuários. Para adicionar uma entrada, ex.: para adicionar um usuário, você pode rodar o seguinte comando a partir do prompt de um terminal:
|
|
Translated and reviewed by
Yves Junqueira
|
|
|
|
Located in
serverguide/C/vcs.xml:245(para)
|
|
439.
|
|
|
sudo htpasswd -c /etc/subversion/passwd user_name
|
|
|
|
sudo htpasswd -c /etc/subversion/passwd nome_do_usuario
|
|
Translated by
Rafael Sachetto
|
|
Reviewed by
Andre Noel
|
|
|
|
Located in
serverguide/C/vcs.xml:256(command)
|
|
440.
|
|
|
This command will prompt you to enter the password. Once you enter the password, the user is added. Now, to access the repository you can run the following command:
|
|
|
|
Esse comando irá lhe solicitar a entrada de uma senha. Assim que você informar a senha, o usuário será adicionado. Agora, para acessar o repositório você precisa rodar o seguinte comando:
|
|
Translated and reviewed by
Marcelo R. Minholi
|
|
|
|
Located in
serverguide/C/vcs.xml:268(para)
|
|
441.
|
|
|
svn co http://servername/svn
|
|
|
|
svn co http://servername/svn
|
|
Translated and reviewed by
Og Maciel
|
|
|
|
Located in
serverguide/C/vcs.xml:269(command)
|
|
442.
|
|
|
The password is transmitted as plain text. If you are worried about password snooping, you are advised to use SSL encryption. For details, please refer next section.
|
|
|
|
As senhas são transmitidas em texto simples. Se você estiver preocupado com roubo de senhas, você está convidado a usar criptografia SSL. Para detalhes, por favor consulte a próxima seção.
|
|
Translated and reviewed by
Yves Junqueira
|
|
|
|
Located in
serverguide/C/vcs.xml:271(para)
|
|
443.
|
|
|
Access via WebDAV protocol with SSL encryption (https://)
|
|
|
|
Acesso via protocolo WebDAV com criptografia SSL (https://)
|
|
Translated and reviewed by
Marcelo R. Minholi
|
|
|
|
Located in
serverguide/C/vcs.xml:277(title)
|