You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Claudio Miranda <cl...@claudius.com.br> on 2004/03/24 04:36:43 UTC
user and group permissions
Hi, I am trying to configure my system to use local repository, users
and groups, then I followed the instructions of "Supporting Multiple
Repository Access Methods - Chapter 6. Server Configuration"
(http://svnbook.red-bean.com/svnbook/ch06s05.html), after I tried
http://subversion.tigris.org/servlets/ReadMsg?list=users&msgId=298513
> - create a svn group and make sure your user belong to it,
> - give the repository ownership to www (or whatever user Apache is
> running),
> - chgrp the repository to the svn group,
> - alter the repository permissions in order give write permission and
> directory access to the svn group for the whole repository,
> - add the group ID permission to the directories,
> - make sure every user accessing the repository have a umask of 00x.
But users are not capable to have 'write' access to repository, read
the configurations below:
# repository directory
[claudio@demolidor svn_repos]$ pwd
/home/svn_repos
# as you can see, I did a chmod g+s -R .
[claudio@demolidor svn_repos]$ l
total 36
drwxrwsr-x 7 svn svn 4096 Mar 22 01:28 ./
drwxr-xr-x 4 root root 4096 Mar 22 01:28 ../
drwxrwsr-x 2 svn svn 4096 Mar 22 01:28 conf/
drwxrwsr-x 2 svn svn 4096 Mar 22 01:28 dav/
drwxrwsr-x 2 svn svn 4096 Mar 22 01:28 db/
-rw-rwSr-- 1 svn svn 2 Mar 22 01:28 format
drwxrwsr-x 2 svn svn 4096 Mar 22 01:28 hooks/
drwxrwsr-x 2 svn svn 4096 Mar 22 01:28 locks/
-rw-rwSr-- 1 svn svn 376 Mar 22 01:28 README.txt
[claudio@demolidor svn_repos]$ id
uid=501(claudio) gid=501(claudio) grupos=501(claudio),500
# I want to be capable to write here.
[claudio@demolidor svn_repos]$ touch a
touch: cannot touch `a': Permission denied
# the user 'claudio' belongs to 'svn' group
[claudio@demolidor svn_repos]$ cat /etc/group|grep claudio
claudio:x:501:svn,claudio
svn:x:502:claudio
If you need some information, please reply.
Any info is welcome,
thank you, for your time.
Claudio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: user and group permissions
Posted by Claudio Miranda <cl...@claudius.com.br>.
Dear Bruce, thank you very much!
I just logout and login, everything rocks. :-D
[]s
Claudio Miranda
Bruce Elrick wrote, On 24-03-2004 01:56:
> Claudio Miranda wrote:
>
>> [claudio@demolidor svn_repos]$ id
>> uid=501(claudio) gid=501(claudio) grupos=501(claudio),500
>>
>> # I want to be capable to write here.
>> [claudio@demolidor svn_repos]$ touch a
>> touch: cannot touch `a': Permission denied
>>
>> # the user 'claudio' belongs to 'svn' group
>> [claudio@demolidor svn_repos]$ cat /etc/group|grep claudio
>> claudio:x:501:svn,claudio
>> svn:x:502:claudio
>>
>
> Your grep on /etc/group and the output of id contradict each other.
> Perhaps you added user claudio to the svn group but did not
> logout/login? Group changes are only effective on next login.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: user and group permissions
Posted by Bruce Elrick <br...@elrick.ca>.
Claudio Miranda wrote:
> [claudio@demolidor svn_repos]$ id
> uid=501(claudio) gid=501(claudio) grupos=501(claudio),500
>
> # I want to be capable to write here.
> [claudio@demolidor svn_repos]$ touch a
> touch: cannot touch `a': Permission denied
>
> # the user 'claudio' belongs to 'svn' group
> [claudio@demolidor svn_repos]$ cat /etc/group|grep claudio
> claudio:x:501:svn,claudio
> svn:x:502:claudio
>
Your grep on /etc/group and the output of id contradict each other.
Perhaps you added user claudio to the svn group but did not
logout/login? Group changes are only effective on next login.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org