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

Re: How to change the owner of a working copy.

From: Ted Stern <dodecatheon_at_gmail.com>
Date: Wed, 25 Mar 2009 17:28:04 -0700

On 25 Mar 2009 15:46:42 -0700, Bert Huijben wrote:
>
>> -----Original Message-----
>> From: DW Dennis Wheeler [mailto:dwheeler_at_ag.com]
>> Sent: Wednesday, March 25, 2009 10:31 PM
>> To: Ryan Schmidt; Anthony Cagle
>> Cc: users_at_subversion.tigris.org
>> Subject: RE: How to change the owner of a working copy.
>>
>> > -----Original Message-----
>> > From: Ryan Schmidt [mailto:subversion-2009a_at_ryandesign.com]
>> > Sent: Monday, March 23, 2009 4:10 PM
>> > To: Anthony Cagle
>> > Cc: users_at_subversion.tigris.org
>> > Subject: Re: How to change the owner of a working copy.
>> >
>> > On Mar 23, 2009, at 14:29, Anthony Cagle wrote:
>> >
>> > > I have an svn repository that was checked out by user1 and I would
>> > > like to change that working copy to be owned by user2, so
>> > that user2
>> > > can perform updates and commits to and from that working
>> > copy. I do
>> > > not want to delete the working copy and check out a new one with
>> > > user2.
>> > >
>> > > Is there any way to change the owner of the working copy?
>> >
>> > It's just files and directories on your disk, so change the
>> > ownership the same way you do for any other item in your OS,
>> > e.g. chown on Unix- like OSes or I don't know what on Windows.
>> >
>>
>> but you'll probably want to use the -u flag when commiting changes
>> so that the changes are commited by the new user rather than
>> the old user (as recorded in .svn/entries)
>
> Subversion doesn't store the active user in the working copy. Subversion
> uses the user credentials cached in $HOME/.subversion for the specific
> repository. (Credentials are not bound to a working copy).
>
> And as far as I can tell the -u argument is only used by 'svn status'.
> The subversion argument to specify an explicit user is --username; but as
> you most likely don't share a home directory with the other user, this is
> not necessary.

Not only that, but if you use svn+ssh access through a single
multiplexed account (with individual keys in the .ssh/authorized_keys
file), svnserve will start up in tunnel mode using the new user's
identity, based on that user's ssh key.

In my setup, all the users use the same Host alias in their respective
.ssh/config files, so all of us have an identical

        svn+ssh://hostname

prefix on our subversion checkouts.

-- 
 Frango ut patefaciam -- I break so that I may reveal
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1422079
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-26 01:28:53 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.