Svn ignoring --password and --username options

0 votes

Upon attempting an svn command to supply --username and --password, I keep getting prompted for the current user's password rather than the user that I specify in my command as --username. Instead, it still tries to use the current user for login and asks for its password, completely ignoring both the new user and password that I supply to it. And, even --no-auth-cache and --non-interactive have no effect on it. Plus, I'm trying to call these svn commands from a script, so I can't really afford showing such a prompt.

logged in as user1, attempting user2 login:

# $ svn update --username 'user2' --password 'password'
# user1@domain.com's password: 

All other options work fine:

# $ svn --version --quiet
# 1.3.2

Why do I keep getting this prompt and why does it keep asking for user1's password instead of user2's? 

All my permissions seem to be set correctly as well. I'm running svn 1.3.2 (r19776) on Fedora Core 5 (Bordeaux) and following is a list of my environment variables(None of them seem to apply to SVN though):

# HOSTNAME=XXXXXX
# TERM=xterm
# SHELL=/bin/sh
# HISTSIZE=1000
# KDE_NO_IPV6=1
# SSH_CLIENT=XXX.XXX.XXX.XXX XXXXX XX
# QTDIR=/usr/lib/qt-3.3
# QTINC=/usr/lib/qt-3.3/include
# SSH_TTY=/dev/pts/2
# USER=XXXXXX
# LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
# KDEDIR=/usr
# MAIL=/var/spool/mail/XXXXXX
# PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
# INPUTRC=/etc/inputrc
# PWD=/home/users/XXXXXX/my_repository
# KDE_IS_PRELINKED=1
# LANG=en_US.UTF-8
# SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
# SHLVL=1
# HOME=/home/users/XXXXXX
# LOGNAME=XXXXXX
# QTLIB=/usr/lib/qt-3.3/lib
# CVS_RSH=ssh
# SSH_CONNECTION=69.202.73.122 60998 216.7.19.47 22
# LESSOPEN=|/usr/bin/lesspipe.sh %s
# G_BROKEN_FILENAMES=1
# _=/bin/env
# OLDPWD=/home/users/XXXXXX
Oct 31, 2018 in DevOps & Agile by Bharani
• 4,660 points
2,100 views

1 answer to this question.

0 votes
That prompt doesn't really look like Subversion asking you for a password, rather it seems like a ssh might be asking for a password.

So, I'm guessing you've used an svn+ssh to check out:// checkout, not an svn:// or http:// or https:// checkout. But, as per IIRC, all the options that you're trying will only work for the svn/http/https checkouts, thus, you should run svn info to confirm the kind of repository you are using.

And, If its a ssh, set up a key-based authentication so that your scripts can work without prompting for any password at all.
answered Oct 31, 2018 by DataKing99
• 8,250 points

Related Questions In DevOps & Agile

+5 votes
1 answer

How to program and get the Digital Ocean ID of the current Droplet from within the Droplet?

You can run curl http://169.254.169.254/metadata/v1/id within the ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by Atul
• 10,240 points
3,477 views
0 votes
1 answer

How do I use Devops with Xamarin and hockeyapp

It would be better if you use ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by Atul
• 10,240 points
734 views
+5 votes
2 answers

Xamarin and hockeyapp for DevOps

You can use Jenkins instead, It has ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DareDev
• 6,890 points

edited Oct 12, 2018 by Kalgi 1,168 views
+1 vote
2 answers
0 votes
1 answer

Is there any difference between jenkins ssh publishers and ansible?

In a Layman’s language they're the same ...READ MORE

answered Apr 9, 2018 in DevOps & Agile by shubham
• 7,340 points
1,254 views
0 votes
1 answer

Is it possible to to create IIS Site and application Pool using Web Deploy

You can try and use the ServerManager ...READ MORE

answered Apr 20, 2018 in DevOps & Agile by ajs3033
• 7,300 points
2,047 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,041 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP