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

Re: Newbie: txn-current-lock': Permission denied Problem

From: Mikhail Berlioz Alexandrovich <MikhailBerlioz55_at_gmail.com>
Date: Sat, 31 Jan 2009 21:01:33 -0500

On Sat, Jan 31, 2009 at 7:53 PM, Hari Kodungallur <hkodungallur_at_gmail.com>wrote:

>
> On Sat, Jan 31, 2009 at 2:54 PM, Mikhail Berlioz Alexandrovich <
> MikhailBerlioz55_at_gmail.com> wrote:
>
>> Dear all,
>>
>> I'm trying to use svn for collaboration in school. The repository is on
>> my personal workstation, is connected to the Internet via DSL, and
>> accessible by my classmates via a domain name.
>>
>> I managed to get something right last semester. I successfully made a
>> repository in /svn/mfe (I'm using Linux). The contents and permissions of
>> /svn/mfe is:
>>
>>
>> drwxr-xr-x 2 root root 4.0K 2009-01-31 16:30 conf/
>> drwxr-sr-x 6 root root 4.0K 2009-01-31 16:31 db/
>> -r--r--r-- 1 root root 2 2008-09-09 13:40 format
>> drwxr-xr-x 2 root root 4.0K 2008-09-09 13:40 hooks/
>> drwxr-xr-x 2 root root 4.0K 2008-09-09 13:40 locks/
>> -rw-r--r-- 1 root root 229 2008-09-09 13:40 README.txt
>>
>
>
> Note that with this permission, only root has write access to these
> directories.
> Ideally you should not be setting root ownership to these directories.
> Create an owner/group called svn/svn. Then add you and your freinds to the
> svn group. Give write access to both owner and group. This should pretty
> solve your problem.
>
>
>
>
>>
>>
>> The name of the directory that me and my classmates used is "200809" (I
>> was surprised there's no "/svn/mfe/200809" directory). We were able to use
>> this repository with no problems - it was really useful. I created
>> passwords for everybody in /svn/mfe/conf/passwd, and I think they used
>> TortoiseSVN to access the repository.
>>
>> Now it's the new semester, and I want to make a new directory called
>> "200901", and I'm having a lot of trouble. Here's what I'm doing from my
>> home directory:
>>
>> $ mkdir 200901
>> $ cd 200901
>> $ svn import -m "Initial Import" . file:///svn/mfe/200901
>>
>> which results in:
>>
>> svn: Can't open file '/svn/mfe/db/txn-current-lock': Permission
>> denied
>>
>> Then I tried:
>>
>> $ cd ..
>> $ svn import -m "Initial Import" 200901 file:///svn/mfe/200901
>>
>> which results in the exact same error message. Trying to skin a cat in
>> another manner, I went to my Windows machine, right-clicked and chose
>> "TortoiseSVN | RepoBrowser". For the URL I chose "svn://
>> 192.168.55.2/mfe" (the IP address of my Linux box on my local home
>> network) and pressed OK. In the right hand pane I saw exactly what I
>> expected to see:
>>
>> * svn://192.168.55.2/mfe
>> * 200809
>
>
>
> This succeeded only because you likely used root as the user when
> connecting from your tortoisesvn to the repository, while you likely used
> your own user/passwd from linux.
>

Hari, you were correct on all accounts. I created an svn group, made myself
a member, made all the files in /svn/mfe group writable, and blammo, it
worked!

Thanks for your help!

It's so strange that Debian didn't create an svn group...

Thanks!
Mikhail

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1082979

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-01 15:06:15 CET

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.