Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

One of my custom shortcut has auto login parameter along with my login credential in clear text on the exec line. Is there trick how to write the login details portion in encrypted form and make Ubuntu prompts for password or something to decrypt it when I launch the shortcut?

share|improve this question
up vote 3 down vote accepted

Unfortunately, this is not generally possible.

"In general, command line arguments are visible to all."

Unless the program in question is willing to accept encrypted passwords as command-line arguments, then you must either supply the password in plaintext or omit it entirely.

Some common applications provide an option for prompting the user for their password immediately. For example, the mysql command offers the -p option:

"If you omit the password value following the --password or -p option on the command line, mysql prompts for one."

share|improve this answer
ah you're right about that! it didn't occur me to me that the command arg will globally appear in process list when you pass the password in plain text – Flint Apr 9 '13 at 6:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.