Home > command line > How to escape special characters in password?

How to escape special characters in password?

April 3Hits:0
Advertisement

This question already has an answer here:

  • Apt-get update with an @ in password error 3 answers

I am trying to install SVN in Ubuntu. My network proxy has a password. In apt.conf when i do:

Acquire::http::Proxy "http://username:pass@word@proxy_server:proxy_port"; 

It's not working . My question is how can I escape @ in pass@word? I tried many combinations but it doesn't work.

Answers

You need escape the first @ With \ or use use its Hex ASCII value %40

Try:

Acquire::http::Proxy "http://username:pass\@word@proxy_server:proxy_port";

or

Acquire::http::Proxy "http://username:pass%40word@proxy_server:proxy_port";

Related Articles

  • Bash script and escaping special characters in passwordJuly 3

    I have been reading a lot of questions already asked here, however, somehow nothing is working for me. I have a bash script where I have to send password which dump database on remote machine, so its like : !/bin/sh /usr/bin/ssh -p 91899 user@remoteH

  • Escape special characters in password on remote machineNovember 8

    I'm trying to run sudo -i on the remote machine and send password in the same line. Faced with the problem of when the password contains special characters; escaping does not help. I would be glad of any help. Example: [admin@host ~]$ echo "b4p6g\$t9

  • How to escape special characters in password? April 3

    This question already has an answer here: Apt-get update with an @ in password error 3 answers I am trying to install SVN in Ubuntu. My network proxy has a password. In apt.conf when i do: Acquire::http::Proxy "http://username:pass@word@proxy_server:

  • How can I escape special characters in cell formatting in Excel

    How can I escape special characters in cell formatting in ExcelJune 26

    I'm trying to create a custom cell format that looks like a ratio. I.E. 24 : 1 In the custom formatting option on the cell when I try to put the following in I get an error saying it's not a valid format # : 1 I believe this is because of how I want

  • Escape special characters in text field of pdf form

    Escape special characters in text field of pdf formJune 26

    I am using hyperref to render a form. I would like to initially fill the text fields with some dynamic content. Therefore, I have to escape special characters in the content. I managed to discover how I can escape &, %, $, #, _, and ^ by trial and er

  • Print full node url escaping special characters?October 22

    How can I print the full node url in a tpl file escaping special characters? So im using this: <?php print $base_url . $node_url ?> Which gives me a url like http://time.com/3525666/ebola-psychology-fear-symptoms/ However I need the url to be like h

  • Passing escaped special characters for use as a URL through macros

    Passing escaped special characters for use as a URL through macrosApril 22

    From an earlier question on Escaping special characters for use as a URL, using \string to escape the special URL characters in the second example works great: \DefineMyFormatLinkParameters{% *[Main Search Site]{Google}{http://www.google.com}, {peopl

  • How to automatically escape special characters in your own environment?

    How to automatically escape special characters in your own environment?August 3

    I need to create my environment for examples of source codes. I want it to look like this: Code example: ------------------------------------------------ # This is the code example echo 'Hello' ------------------------------------------------ The pro

  • Parsing a QDomeNode when source xml node text contains escaped special charactersFebruary 10

    While using the Qt DOM xml parser I've run into an issue with node elements that contain &amplt; in it's text. The original xml might look like this: <?xml version="1.0" encoding="UTF-8"?> ... <Material> <Name><

  • Escape special characters in a text when text is either enclosed in double quotes or notFebruary 15

    I am writing a regex to escape a few special characters including double quote from the input. input can be enclosed in double quotes and those should be not escaped. Ex of input : "te(st", te(st, te"st expected outputs : "te\(st"

  • Authentication web service and special characters in passwordFebruary 2

    My client application is authenticating with a SharePoint website using the Authentication web service in Windows Sharepoint Services 3.0. The client is not written in C# and I craft the SOAP request "manually". The authentication fails with the

  • ftp: special characters in passwordOctober 10

    I need to execute this command wget -r ftp://$USER:$PASSWORD@$SITE/ But first since there were some special characters (such as '!?') within the PASSWORD I had some problems that I solved by escaping them with '\'.. Now I am facing the problem that s

  • ConEmu new tab 'Run as user' using special characters for passwordFebruary 18

    I'm a long time ConEmu user and I have several tasks to open new tab that Run As User. recently one of the users got password changed and it's using special characters like '^', '%', e.g: 5tgb%T^YHN. the new password doesn't catch. ConEmu prompt me t

  • Command line autocomplete no longer escapes special characters on certain operationsAugust 31

    When I'm specifying arguments to the mv or cp commands at the command line and I hit tab to autocomplete the argument, it lists the argument without special characters escaped. For instance, it lists ajax-loader(1).gif literally when it should list i

  • Special characters in passwordFebruary 2

    I am looking for a list of the valid characters which can be used in a user account password on Ubuntu. man passwd just tells me: As a general guideline, passwords should consist of 6 to 8 characters including one or more characters from each of the

  • Apache ProxyPassReverse escaping special charactersSeptember 1

    I have this very simple reverse proxy rule in Apache 2.2.19: ProxyPass /test http://other.local.machine/test ProxyPassReverse /test http://other.local.machine/test The problem is that it seems mod_proxy escapes the special characters in the Location

  • Installation of Ubuntu 12.04 using special characters in password September 20

    Possible Duplicate: How do I reset a lost administrative password? I just installed Ubuntu 12.04 from USB (new install, new partition) and used special characters in my password, as suggested in another post on askubuntu: Lowercase Alphabetical (a, b

  • Password entropy match for alphanumeric but there are special characters in password

    Password entropy match for alphanumeric but there are special characters in passwordOctober 26

    I have a problem cracking some of the fundamentals on passwords' entropies. Namely: I have read this article about a guy cracking DKIM of Google (maybe more noticing that the keys are only 512 bits) Then I have tried checking it whether it is really

  • Sensible usecase for restricting special characters in passwords? March 20

    Please See Why Not Allow Special Characters In a Password on Security. Several websites I've come across limit the allowed special characters for a password. My thought was, it should all be hashed anyway so why does it matter? Is there an actual sec

  • Escape special characters in image link

    Escape special characters in image linkMarch 19

    I am importing the images from XML using a plugin, it truncates the image link while importing. Some symbols are causing the images not to show in the posts. . What it shows is mydomain.com/wp-content/uploads/2014/03/watermark.jpeg I need a php funct

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 4.164 s.