You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Anthony Cagle <da...@gmail.com> on 2009/03/23 19:29:30 UTC

How to change the owner of a working copy.

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?

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Ted Stern <do...@gmail.com>.
On 25 Mar 2009 15:46:42 -0700, Bert Huijben wrote:
>
>> -----Original Message-----
>> From: DW Dennis Wheeler [mailto:dwheeler@ag.com]
>> Sent: Wednesday, March 25, 2009 10:31 PM
>> To: Ryan Schmidt; Anthony Cagle
>> Cc: users@subversion.tigris.org
>> Subject: RE: How to change the owner of a working copy.
>> 
>> > -----Original Message-----
>> > From: Ryan Schmidt [mailto:subversion-2009a@ryandesign.com]
>> > Sent: Monday, March 23, 2009 4:10 PM
>> > To: Anthony Cagle
>> > Cc: users@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@subversion.tigris.org].

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

Posted by Bert Huijben <rh...@sharpsvn.net>.
> -----Original Message-----
> From: DW Dennis Wheeler [mailto:dwheeler@ag.com]
> Sent: Wednesday, March 25, 2009 10:31 PM
> To: Ryan Schmidt; Anthony Cagle
> Cc: users@subversion.tigris.org
> Subject: RE: How to change the owner of a working copy.
> 
> > -----Original Message-----
> > From: Ryan Schmidt [mailto:subversion-2009a@ryandesign.com]
> > Sent: Monday, March 23, 2009 4:10 PM
> > To: Anthony Cagle
> > Cc: users@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.

	Bert





> 
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessage
> Id=1420378
> 
> To unsubscribe from this discussion, e-mail: [users-
> unsubscribe@subversion.tigris.org].

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by DW Dennis Wheeler <dw...@ag.com>.
> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2009a@ryandesign.com] 
> Sent: Monday, March 23, 2009 4:10 PM
> To: Anthony Cagle
> Cc: users@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)

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


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

Posted by Anthony Cagle <da...@gmail.com>.
Thanks, problem was solved by changing ownership of the .svn directories mainly.

On Mon, Mar 23, 2009 at 6:09 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
>
> 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.
>
>

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


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

Posted by Ryan Schmidt <su...@ryandesign.com>.
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.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Dextrous <de...@gmail.com>.
I don't think there is an owner to working copy; user2 can start using
working copy as it is.
Having said that I would like to add sharing working copy among user is not
recommended.

On Tue, Mar 24, 2009 at 12:59 AM, Anthony Cagle <da...@gmail.com> 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?
>
> ------------------------------------------------------
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1391940
>
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe@subversion.tigris.org].
>



-- 
Cheers,
Vishwajeet
http://www.singhvishwajeet.com

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].