piping pass through 'head' is safe, but using that output as a command
line parameter makes it visible in 'ps ax' for all users for the whole
time 'dummyProgram' is running.

'sshpass' manpage[1] explores other options; my favourite being using an
environment variable to get the password to 'dummyProgram' like this:

DUMMYPROGRAM_PASSWD=$(pass Group/Title/User|head -n1) dummyProgram 
--envvar-password

[1]: https://linux.die.net/man/1/sshpass
_______________________________________________
Password-Store mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to