I currently have the following script which works fine:
#!/bin/sh
user="$(zenity --entry --title="Username" --text="Username")"
pass="$(zenity --password --title="Password" --text="Password")"
xfreerdp /cert-ignore /f /v:farm.company.com /d:company.com /g:rds.company.com /u:${user} /gd:company.com /gu:${user} /gp:${pass} /p:${pass}
This is apparently not very secure as the username and password can easily be seen by using ps axu Is there a more secure way of creating this script?