summaryrefslogtreecommitdiff
path: root/static/unix-v10/man8/pwserv.8
blob: bb7fb90efeafa30eb7c84ce3ba74158621833430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.TH PWSERV 8
.CT 1 sa_auto
.SH NAME
pwserv \- password verification service 
.SH SYNOPSIS
.B /etc/pwserv
.SH DESCRIPTION
.I Pwserv,
normally started from
.IR rc (8),
handles password verification requests initiated by (say)
.IR pwquery (3)
through the conventional 
process mount point
.FR /cs/pw .
When a request is made a file descriptor (called the `line' below)
is passed to 
.I pwserv
together with a user name and an optional parameter string.
Normally,
.I pwserv
writes a prompt on the line, reads a reply, and returns
an indication of success to the invoking client.
Valid passwords are taken from the file
.FR /etc/pwfile ,
which lists for each user an ordinary (encrypted,
.IR crypt (3)-style)
password and an
SNK (Secure Net Key) challenge-response key.
Before prompting, an
.B FIOPX
IO control is attempted to render the line to the end user private;
see
.IR pex (4).
If this succeeds 
either a classical or an Atalla password is accepted.
If the pex bid fails, the prompt warns that the line
is not private, and only an SNK response is accepted.
.PP
In the pexed case the prompt looks like
.B Password(pjw:31416):
and in the unpexed case like
.B "Password(TAPPED LINE:01492):
The five digit string after the colon is the Atalla challenge string.
Only the first five digits of the Atalla response string are significant.
Hex digits in the response must be typed in lower case.
.PP
Possible values of the optional parameter string are
.TP
.B pex
(specified by opening  the server with
.B ipcopen("/cs/pw!pex") )
Accept passwords only if the
.B FIOPX
succeeds.
.PP
When the line's stream identifier asserts previous confirmation
of the same password,
.I pwserv
answers affirmatively without demanding a password; see
.IR session (1)
and
.IR src (5).
.SH FILES
.nf
.F /etc/pwserv
.F /etc/pwfile
.fi
.SH "SEE ALSO"
.IR pwquery (3),
.IR ipc (3),
.IR pex (4),
.IR stream (4),
.IR pwfile (5),
.IR passwd (1)
.SH BUGS
Jammable.