mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
auth/totp(1): separate docs for auth/totp, auth/userpasswd
This commit is contained in:
parent
e05e30eaca
commit
d4938f099d
2 changed files with 58 additions and 30 deletions
57
sys/man/1/totp
Normal file
57
sys/man/1/totp
Normal file
|
@ -0,0 +1,57 @@
|
|||
.TH TOTP 1
|
||||
.SH NAME
|
||||
auth/userpasswd, auth/totp \- authentication agent
|
||||
.SH SYNOPSIS
|
||||
.PP
|
||||
.B auth/userpasswd
|
||||
.I fmt
|
||||
.PP
|
||||
.B auth/totp
|
||||
[
|
||||
.B -k
|
||||
.I pattern
|
||||
] | [
|
||||
.B label
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
.I Totp
|
||||
queries and prints the
|
||||
.B RFC 6238
|
||||
TOTP code
|
||||
for the specified key tuple.
|
||||
The key tuple is selected using the provided label.
|
||||
This can be used to authenticate with services that require time based OTP.
|
||||
.PP
|
||||
.I Userpasswd
|
||||
queries and prints a cleartext user/password pair from factotum
|
||||
for the
|
||||
.B proto=pass
|
||||
key tuple specified in
|
||||
.IR fmt .
|
||||
This can be used by shell scripts to do cleartext password
|
||||
authentication.
|
||||
Using plain password authentication with factotum is discouraged,
|
||||
as it reveals the secrets in plain text.
|
||||
.SH EXAMPLES
|
||||
.PP
|
||||
Adding a TOTP key to factotum:
|
||||
.IP
|
||||
.EX
|
||||
% echo 'key label=mylabel secret=ABCDEF123456' \\
|
||||
> /mnt/factotum/ctl
|
||||
.EE
|
||||
.PP
|
||||
Generating a TOTP key from factotum:
|
||||
.IP
|
||||
.EX
|
||||
% auth/totp mylabel
|
||||
012345
|
||||
.EE
|
||||
.PP
|
||||
Retrieving a password from factotum:
|
||||
.IP
|
||||
.EX
|
||||
% auth/userpasswd 'server=setec service=ssh user=ori'
|
||||
toomanysecrets
|
||||
.EE
|
|
@ -1,6 +1,6 @@
|
|||
.TH FACTOTUM 4
|
||||
.SH NAME
|
||||
factotum, fgui, userpasswd, totp \- authentication agent
|
||||
factotum, fgui \- authentication agent
|
||||
.SH SYNOPSIS
|
||||
.B auth/factotum
|
||||
[
|
||||
|
@ -23,17 +23,6 @@ factotum, fgui, userpasswd, totp \- authentication agent
|
|||
.B ...
|
||||
.PP
|
||||
.B auth/fgui
|
||||
.PP
|
||||
.B auth/userpasswd
|
||||
.I fmt
|
||||
.PP
|
||||
.B auth/totp
|
||||
[
|
||||
.B -k
|
||||
.I pattern
|
||||
] | [
|
||||
.B label
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.I Factotum
|
||||
is a user-level file system that
|
||||
|
@ -257,24 +246,6 @@ and
|
|||
For each requests, it unhides itself and waits for
|
||||
user input.
|
||||
See the sections on key confirmation and key prompting below.
|
||||
.PP
|
||||
.I Userpasswd
|
||||
queries and prints a cleartext user/password pair from factotum
|
||||
for the
|
||||
.B proto=pass
|
||||
key tuple specified in
|
||||
.IR fmt .
|
||||
This can be used by shell scripts to do cleartext password
|
||||
authentication.
|
||||
.PP
|
||||
.I Totp
|
||||
queries and prints an
|
||||
.B RFC 6238
|
||||
TOTP code
|
||||
for the
|
||||
.B proto=totp
|
||||
key tuple specified.
|
||||
This can be used to authenticate with services that require time based OTP.
|
||||
.SS "Key Tuples
|
||||
.PP
|
||||
A
|
||||
|
|
Loading…
Reference in a new issue