shithub: riscv

Download patch

ref: 92602d08d6cd5c9b4f04fbbcb9968161534d24e1
parent: 8b57e59ea93b7fc4f80c33bc1560b685f392ccc4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Feb 12 13:18:34 EST 2015

build and document auth/userpasswd

--- a/sys/man/4/factotum
+++ b/sys/man/4/factotum
@@ -1,6 +1,6 @@
 .TH FACTOTUM 4
 .SH NAME
-factotum, fgui \- authentication agent
+factotum, fgui, userpasswd \- authentication agent
 .SH SYNOPSIS
 .B auth/factotum
 [
@@ -23,6 +23,9 @@
 .B ...
 .PP
 .B auth/fgui
+.PP
+.B auth/userpasswd
+.I fmt
 .SH DESCRIPTION
 .I Factotum
 is a user-level file system that
@@ -240,6 +243,15 @@
 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.
 .SS "Key Tuples
 .PP
 A
--- a/sys/src/cmd/auth/mkfile
+++ b/sys/src/cmd/auth/mkfile
@@ -33,6 +33,7 @@
 	rsafill\
 	rsagen\
 	uniq\
+	userpasswd\
 	warning\
 	wrkey\