Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.