2

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?

1 Answer 1

3

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."

1
  • 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, 2013 at 6:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .