My Favorites


Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

rug can not add a repo when the password contains special characters

This document (7008612) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Desktop 10 Service Pack 3
SUSE Linux Enterprise Server 10 Service Pack 4


Note: This applies only to http repositories and NOT to the Novell Customer Center.


A site internal repository requires basic http authentication

User: foobar
password: s$cret?

This would end in:

rug sa -t YUM "http://foobar:s$cret?" wawa_foobar

Adding YUM service http://foobar:s$cret?         0% 

ERROR: Could not add 'http://foobar:s$cret?': Download
failed: (http://foobar:s$cret/?
Error: NameResolutionFailure

The hostname is resolvable, though, the errormessage is a bit misleading.


Some of the special characters in this password are reserved and and must not be used in a URI, here it's "$" and "?".

RFC2369 describes allowed and reserverd characters.

3.2.2. Server-based Naming Authority

for further information. In order to use strong passwords, these characters have to be escaped to pass through to the server.
The example's password: s$cret? would translate to:


and using the escaped characters in the url finally works:

rug sa -t YUM "" wawa_foobar

Additional Information

Note: rug uses HTTP authentication mechanisms to send user and password to the remote server.
Using "Basic-Auth", these are transmitted as plaintext and can be read by any packet sniffer.
Make sure to use authentication methods that are not liable to be broken that easy.


This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7008612
  • Creation Date:19-MAY-11
  • Modified Date:27-APR-12
    • SUSESUSE Linux Enterprise Server

Did this document solve your problem? Provide Feedback

< Back to Support Search

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center