0

I want to send password to rdesktop so that it doesn't show up in ps. Is there any safe alternative for passing with command-line parameter? I even can develop an application for this if it helps. Any idea will be appreciated.

Thanks

1 Answer 1

2

You can create a text file (named secretfile here) which contains your password. Then, you can connect using the following command:

$ cat secretfile | rdesktop -p - server_ip

This way the password will not show up in output of ps. Don't forget to change file permission to prevent other users from reading it!

1
  • well other processes of my user can read though. can I do it programmatically? Sep 8, 2017 at 13:26

You must log in to answer this question.

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