[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Repository Permission Question

From: Anthony E. Glover <gloverae_at_elmco.com>
Date: 2004-01-22 00:01:18 CET

I set the umask in the /etc/profile, and if I touch a file in the db
directory it has
-rw-rw-r--
which is correct, but on occation (I haven't figured out when exactly) I
will have trouble updating a workarea, and I will look in the db
directory and it will have a log file owned by the client end user with
-rw-r--r--
Is there something special about the directory or the code that creates
the log file that would ignore the umask? If I manually set the g+rw and
recover the database, everything goes back to working for a little
while. Any ideas?

Thanks,
Tony

Marc Haisenko wrote:

>On Wednesday 21 January 2004 17:19, Anthony E. Glover wrote:
>
>
>>I have a repository that I am accessing via svn+ssh. Each of my end
>>users has their own account. The repository is owned by a single CM
>>user. I have chgrp'ed the repository to the group that is common between
>>my end users and the CM user. I have also chmod'ed the repository such
>>that the group has 'rw' on every file and directory. I have also set the
>>gid bit on every diretory in order to maintain the group on every file.
>>The last thing I am having trouble with is that when a new file is
>>created by one of the end users in the repository, e.g. one of the log
>>files in the db directory, it does not have rw access for the group. I
>>know this is the result of the umask. Is there a way to set the umask
>>for all of my end users such that it will take affect for the
>>non-interactive connections created by svn+ssh? From previous problems,
>>I know that PATH and LD_LIBRARY_PATH type things are not picked up
>>during a non-interactive shell; so, I'm assuming (maybe wrongly) that
>>the umask would not be picked up either. Any suggestions? Is the
>>approach I am taking in setting the permissions correct?
>>
>>Thanks,
>>Tony
>>
>>
>
>Add the following line to the /etc/profile:
>
>umask 002
>
>or edit the /etc/login.defs file and set
>
>UMASK 002
>
>This sets -rw-rw-r-- permissions on newly created files.
>
>
>You could also do something like this in /etc/profile:
>
>TMP=`groups | grep mysvngroup`
>if [ ! -z "$TMP" ] ; then
> umask 002
>fi
>
>This would only set the umask for users in group "mysvngroup" ;-)
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 22 00:02:08 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.