pwsafe [ -c config_file ] user@system
This is to locate the password safe file within the related recovery tree.
Be careful on how to handle the master password:
When writing a script accessing the pwsafe never supply the master password thru a command line option due to the fact that any user on the system would be able to see the password using the ps -ef command.
Therefore only use environment variables to pass the password around.
In addition the password shall not be saved in clear text.
A simple script sniplet to show how to use the pwsafe usage:
#!/bin/ksh : : PWSAFE_MASTERPASSWORD=enigma export PWSAFE_MASTERPASSWORD appadm_password=`~edrc/lib/pwsafe appadmin@WEBAPP` appsys_password=`~edrc/lib/pwsafe system@acme007` : :
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.