Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old April 7th, 2008   #1
HautingLu
5 Cups of Ubuntu
 
HautingLu's Avatar
 
Join Date: Jul 2007
Beans: 40
Exclamation [SOLVED] Subversion via SSH: How to commit as different user? Issue with SVN config f

I posted General Help, which may have been the wrong forum. I hoping someone here may point me in the right direction.....

User1 checks out some files from a remote server via ssh and creates a workspace. User1 has the same login on the remote server.

User2, who has access to User1's workspace, edits some files and wants to commit back to the server. User2 has the same login on the remote server.

Is it possible to User2 to commit as User2 so that the log history correctly shows that User2 made the commit?

I edited User2's subversion config file to read:

ssh = $SVN_SSH ssh -l User2

But when I go commit, it still asks for User1's password. From reading online, this should be possible, but for some reason the config file is not behaving as expected. I have some global ignores in the svn file, which are being ignored so svn seems to be functioning correctly.


Thanks.
__________________
Number of people converted to Ubuntu: 5
HautingLu is offline   Reply With Quote
Old April 7th, 2008   #2
HautingLu
5 Cups of Ubuntu
 
HautingLu's Avatar
 
Join Date: Jul 2007
Beans: 40
Re: Subversion via SSH: How to commit as different user? Issue with SVN config file.

I hope this helps someone in the future. Unresolved this would have caused me a major headache. For some reason, it was assumed that workspaces could be easily shared:

1. User2 needs sufficient permission to edit User1's workspace (rwx access I believe).

2. Edit ../User2/.subversion/config. Change the line that reads
#ssh = $SVN_SSH ssh to:
Quote:
ssh = $SVN_SSH ssh -l <username>
<username> can be any user on the remote machine, but in my case it was User2.

3. This is what caused me the problems: checkout's. Checkouts were performed using: svn+ssh://User1@server/path/to/files when in fact it should have been
Quote:
svn+ssh://server/path/to/files
Not specifying the user in the checkout command allows svn to use the -l <username> arg in the config file during commits of other's workspaces, which was my goal.


edit: on second thought, only Step 1 and Step 3 are really necessary. Step 2 is handy when ssh command needs to be modified (e.g. ssh -l <UserX> -p 555)
__________________
Number of people converted to Ubuntu: 5

Last edited by HautingLu; April 7th, 2008 at 02:12 PM..
HautingLu is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:50 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry