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

Mustafa Chelik
  • 143
  • 1
  • 8

1 Answers1

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!

Khaled
  • 35,688
  • 8
  • 69
  • 98