kbsecret-login
- access kbsecret(1) login records
kbsecret login
[options] <record [record ...]>
kbsecret login
accesses the specified (or all) login records in a particular
session.
By default, kbsecret login
prints out the usernames and passwords of the specified
records in a human-friendly format. However, like kbsecret-dump-fields(1), it supports
options for making the output more suitable for scripting.
kbsecret login
has a sister utility, kbsecret-pass(1), which makes password
retrieval even easier.
-s
, --session
<session>The session that the record(s) are under.
-a
, --all
Retrieve all login records, instead of specifying them on the command-line.
-u
, --username-only
Print only usernames, not passwords.
-x
, --terse
Output each login record on a single line, in label:username:password
format.
The field separator can be modified via the -i
, --ifs
option.
-i
, --ifs
<separator>The string used to separate fields when -x
, --terse
is also used.
The default field separator is read from $IFS, falling back to ":" if $IFS is not set.
The $IFS environment variable provides a default for -i
, --ifs
.
$ kbsecret login gmail
Label: gmail
Username: bob@gmail.com
Password: pleasedonthackme
$ kbsecret login -xa
gmail:bob@gmail.com:pleasedonthackme
netflix:bob:hunter2
$ kbsecret login -xu gmail
gmail:bob@gmail.com
kbsecret(1), kbsecret-pass(1), kbsecret-dump-fields(1), kbsecret-env(1), kbsecret-todo(1)