How to securely remember a password for a certain time ?
Use case: I need to make an lftp connection and enter my password. It's likely that I'll restart the command several times during my work session.
Extract from a Makefile
put: @lftp -e "put -O something ; bye"\ -u somelogin,$(shell ./remember.sh somelogin) sftp://ftp.example.orgSee example of Makefile
v -1 Attempt to save passwords in an environment variable. Bad idea. Environment variables envars are accessible to all processes.
v 0.1 Use of Ante's proof of concept (POC) that uses the Linux keyring via the
keyctlcommand. See <poc-remember-ante.sh>… it works.
Pierre Bettens (pit) [email protected]
Ante
