You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Faine, Mark" <Ma...@msfc.nasa.gov> on 2004/09/28 13:36:23 UTC

permissions problems are a catch 22 (newbie)

I have two repositories, one is laid out with libraries, the other
applications.

Libraries
	library1
	library2

Applications
	app1
	app2


I have apache running as user svn, group svn and both of my repositorys are
owned by svn:svn.  The developers that access the repository are in group
svn.

In order for someone in that group (like myself) to import a project into
either of the two repositories the permissions on the repositories must be
changed to allow group write: chmod -R g+w libraries.  When I do this I can
now import just fine but then subversion then reports that there has been
some sort of database corruption and I must run recover. I run recover with
no problems but this causes me to have to reset the repository permissions
back to svn:svn and then I also have to give the group write permissions
again.  After I do this I eventually get the same error database corruption
error again and have to repeat the process.

Any help on how to correct this issue would be greatly appreciated.

-Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: permissions problems are a catch 22 (newbie)

Posted by Keven Ring <ke...@mitre.org>.
Eric Wilhelm wrote:

># The following was supposedly scribed by
># Keven Ring
># on Tuesday 28 September 2004 10:24 am:
>
>  
>
>>To nitpick, the "s" bit is not the "sticky" bit.  The "s" bit is the
>>set user/group id on execution bit.  The "t" bit is the "sticky"
>>bit, and has a completely different meaning, and is not at all what
>>you want.
>>
>>The command that you provided is correct, the terminology is not.
>>    
>>
>
>Yes.  Thanks.  I was a little unsure of the terminology.
>
>Can I dub this "set user/group id on execution bit" the "spiffy bit"? 
>Whatever we call it, it sure simplifies sharing directories between 
>users.
>  
>
I call it the "setuid" bit (only 2 more "syllables" than "spiffy" :) 
)...  Of course, since the setuid bit can also be used for groups, it's 
really the "set[ug]id", but that's really hard to pronounce... :)


>--Eric
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
>
>  
>


-- 
Keven Ring               | "Oh no,  Not Again..."
The MITRE Corporation    |   Bowl of Petunias -
7515 Colshire Drive      |   The Hitchhikers Guide to the Galaxy
McLean VA 22102-7508     |
PH: (703)883-7026        |




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: permissions problems are a catch 22 (newbie)

Posted by Eric Wilhelm <ew...@sbcglobal.net>.
# The following was supposedly scribed by
# Keven Ring
# on Tuesday 28 September 2004 10:24 am:

>To nitpick, the "s" bit is not the "sticky" bit.  The "s" bit is the
> set user/group id on execution bit.  The "t" bit is the "sticky"
> bit, and has a completely different meaning, and is not at all what
> you want.
>
>The command that you provided is correct, the terminology is not.

Yes.  Thanks.  I was a little unsure of the terminology.

Can I dub this "set user/group id on execution bit" the "spiffy bit"? 
Whatever we call it, it sure simplifies sharing directories between 
users.

--Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: permissions problems are a catch 22 (newbie)

Posted by Keven Ring <ke...@mitre.org>.
Eric Wilhelm wrote:

># The following was supposedly scribed by
># Faine, Mark
># on Tuesday 28 September 2004 08:36 am:
>
>  
>
>>In order for someone in that group (like myself) to import a project
>>into either of the two repositories the permissions on the
>>repositories must be changed to allow group write: chmod -R g+w
>>libraries.
>>    
>>
>
>Assuming this is a Linux system...
>
>If you set the "sticky bit" on a directory, everything created in that 
>directory should belong to the group.
>
>  chmod g+s dir/
>  
>
To nitpick, the "s" bit is not the "sticky" bit.  The "s" bit is the set 
user/group id on execution bit.  The "t" bit is the "sticky" bit, and 
has a completely different meaning, and is not at all what you want.

The command that you provided is correct, the terminology is not.

>Of course, each user's umask is going to come into play too.  (See: 
>"use svnserve or apache".)
>
>--Eric
>  
>


-- 
Keven Ring               | "Oh no,  Not Again..."
The MITRE Corporation    |   Bowl of Petunias -
7515 Colshire Drive      |   The Hitchhikers Guide to the Galaxy
McLean VA 22102-7508     |
PH: (703)883-7026        |




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: permissions problems are a catch 22 (newbie)

Posted by Eric Wilhelm <ew...@sbcglobal.net>.
# The following was supposedly scribed by
# Faine, Mark
# on Tuesday 28 September 2004 08:36 am:

>In order for someone in that group (like myself) to import a project
> into either of the two repositories the permissions on the
> repositories must be changed to allow group write: chmod -R g+w
> libraries.

Assuming this is a Linux system...

If you set the "sticky bit" on a directory, everything created in that 
directory should belong to the group.

  chmod g+s dir/

Of course, each user's umask is going to come into play too.  (See: 
"use svnserve or apache".)

--Eric
-- 
"Everything goes wrong all at once."
                          --Quantized Revision of Murphy's Law

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org