You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Johan Ryberg <jo...@securit.se> on 2015/08/07 22:44:52 UTC

Permission for .svn/tmp is lost after svn cleanup

Hi,

I need to have rw for group svnusers for .svn/tmp to be able to let
different users to check in and commit changes but every time cleanup
are used only the owner has write permission.

Does anyone know how to let a group to have write permission as well?

Regards Johan

Re: Permission for .svn/tmp is lost after svn cleanup

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
umask would need to be set for the individual users' working
environments. It would need to be set in their .bashrc or other,
similar credentials for svn+ssh with different SSH usernames, or via
local filesystem access.

This sort of "everyone has to play nicely" setting is exactly why
file-based access, for more than one user on a system, can get so
tricky. Most folks consider the generous umask settings you mention to
be inappropriate for a shared system and to leave your individual
files at a real risk of inapproprate access by other users.

On Wed, Aug 12, 2015 at 7:55 AM, Johan Ryberg <jo...@securit.se> wrote:
> Sorry,
>
> umask did the trick and it now works as expected
>
> Just for the record for others:
> cd <svn folder>
> find .svn -type d -exec chmod 2770 {} \; -print
> cd .svn
> umask u=rwx,g=rwx,o=rx
>
> Thanks for the help
>
> Regards Johan
>
> 2015-08-12 13:40 GMT+02:00 Johan Ryberg <jo...@securit.se>:
>> Hi,
>>
>> Thanks for the tips but it does not work.
>>
>> After svn cleanup the .svn/tmp-folder are recreated? with some kind of
>> default credentials (2755), I would like to have 2775.
>>
>> I can't find any kind of setting for this but I might have missed it?
>>
>> Best regards Johan Ryberg
>>
>> 2015-08-10 12:24 GMT+02:00 Nico Kadel-Garcia <nk...@gmail.com>:
>>> On Mon, Aug 10, 2015 at 3:27 AM, Branko Čibej <br...@wandisco.com> wrote:
>>>> On 07.08.2015 22:44, Johan Ryberg wrote:
>>>>> Hi,
>>>>>
>>>>> I need to have rw for group svnusers for .svn/tmp to be able to let
>>>>> different users to check in and commit changes but every time cleanup
>>>>> are used only the owner has write permission.
>>>>>
>>>>> Does anyone know how to let a group to have write permission as well?
>>>>
>>>> Change the umask, otherwise you'll have other problems, not just with
>>>> permissions on .svn/tmp.
>>>>
>>>> -- Brane
>>>
>>> And set all directory permissions in that working copy to 2770 or
>>> perhaps 2775 if you want to permit non group members to read the
>>> content. In the Linux or UNIX world, that would be:
>>>
>>>           find .svn -type d -exec chmod 2770 {} \; -print

Re: Permission for .svn/tmp is lost after svn cleanup

Posted by Johan Ryberg <jo...@securit.se>.
Sorry,

umask did the trick and it now works as expected

Just for the record for others:
cd <svn folder>
find .svn -type d -exec chmod 2770 {} \; -print
cd .svn
umask u=rwx,g=rwx,o=rx

Thanks for the help

Regards Johan

2015-08-12 13:40 GMT+02:00 Johan Ryberg <jo...@securit.se>:
> Hi,
>
> Thanks for the tips but it does not work.
>
> After svn cleanup the .svn/tmp-folder are recreated? with some kind of
> default credentials (2755), I would like to have 2775.
>
> I can't find any kind of setting for this but I might have missed it?
>
> Best regards Johan Ryberg
>
> 2015-08-10 12:24 GMT+02:00 Nico Kadel-Garcia <nk...@gmail.com>:
>> On Mon, Aug 10, 2015 at 3:27 AM, Branko Čibej <br...@wandisco.com> wrote:
>>> On 07.08.2015 22:44, Johan Ryberg wrote:
>>>> Hi,
>>>>
>>>> I need to have rw for group svnusers for .svn/tmp to be able to let
>>>> different users to check in and commit changes but every time cleanup
>>>> are used only the owner has write permission.
>>>>
>>>> Does anyone know how to let a group to have write permission as well?
>>>
>>> Change the umask, otherwise you'll have other problems, not just with
>>> permissions on .svn/tmp.
>>>
>>> -- Brane
>>
>> And set all directory permissions in that working copy to 2770 or
>> perhaps 2775 if you want to permit non group members to read the
>> content. In the Linux or UNIX world, that would be:
>>
>>           find .svn -type d -exec chmod 2770 {} \; -print

Re: Permission for .svn/tmp is lost after svn cleanup

Posted by Johan Ryberg <jo...@securit.se>.
Hi,

Thanks for the tips but it does not work.

After svn cleanup the .svn/tmp-folder are recreated? with some kind of
default credentials (2755), I would like to have 2775.

I can't find any kind of setting for this but I might have missed it?

Best regards Johan Ryberg

2015-08-10 12:24 GMT+02:00 Nico Kadel-Garcia <nk...@gmail.com>:
> On Mon, Aug 10, 2015 at 3:27 AM, Branko Čibej <br...@wandisco.com> wrote:
>> On 07.08.2015 22:44, Johan Ryberg wrote:
>>> Hi,
>>>
>>> I need to have rw for group svnusers for .svn/tmp to be able to let
>>> different users to check in and commit changes but every time cleanup
>>> are used only the owner has write permission.
>>>
>>> Does anyone know how to let a group to have write permission as well?
>>
>> Change the umask, otherwise you'll have other problems, not just with
>> permissions on .svn/tmp.
>>
>> -- Brane
>
> And set all directory permissions in that working copy to 2770 or
> perhaps 2775 if you want to permit non group members to read the
> content. In the Linux or UNIX world, that would be:
>
>           find .svn -type d -exec chmod 2770 {} \; -print

Re: Permission for .svn/tmp is lost after svn cleanup

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Mon, Aug 10, 2015 at 3:27 AM, Branko Čibej <br...@wandisco.com> wrote:
> On 07.08.2015 22:44, Johan Ryberg wrote:
>> Hi,
>>
>> I need to have rw for group svnusers for .svn/tmp to be able to let
>> different users to check in and commit changes but every time cleanup
>> are used only the owner has write permission.
>>
>> Does anyone know how to let a group to have write permission as well?
>
> Change the umask, otherwise you'll have other problems, not just with
> permissions on .svn/tmp.
>
> -- Brane

And set all directory permissions in that working copy to 2770 or
perhaps 2775 if you want to permit non group members to read the
content. In the Linux or UNIX world, that would be:

          find .svn -type d -exec chmod 2770 {} \; -print

Re: Permission for .svn/tmp is lost after svn cleanup

Posted by Branko Čibej <br...@wandisco.com>.
On 07.08.2015 22:44, Johan Ryberg wrote:
> Hi,
>
> I need to have rw for group svnusers for .svn/tmp to be able to let
> different users to check in and commit changes but every time cleanup
> are used only the owner has write permission.
>
> Does anyone know how to let a group to have write permission as well?

Change the umask, otherwise you'll have other problems, not just with
permissions on .svn/tmp.

-- Brane