Like this question, I am looking for a password repository and that I can use to feed my programs and scripts with those passwords.
I found seahorse
which seems to have what I need under the "Login" folder but I am not quite sure where the passwords are stored (for backup) and I don't know how to get the passwords in shell so I can pipe them into my scripts. I was under the impression that I can use gpg
to access those passwords, but I don't quite know how.
Is it possible to access (and create) those passwords in terminal?
Best Answer
Seahorse is a GUI frontend to the Gnome keyring. The libsecret library comes with a command line utility called
secret-tool
which lets you access the Gnome keyring from the command line or a script.Examples of
secret-tool
usage: for mutt, for mutt, in a shell script, in a CentOS Docker container, in a systemd unit file.For backup purposes, the keyring file is in
~/.local/share/keyrings
.