remove left over references to expert subcommand in man pages.
[monkeysphere.git] / man / man8 / monkeysphere-authentication.8
1 .TH MONKEYSPHERE-SERVER "8" "June 2008" "monkeysphere" "User Commands"
2
3 .SH NAME
4
5 monkeysphere-authentication \- Monkeysphere authentication admin tool.
6
7 .SH SYNOPSIS
8
9 .B monkeysphere-authentication \fIsubcommand\fP [\fIargs\fP]
10
11 .SH DESCRIPTION
12
13 \fBMonkeysphere\fP is a framework to leverage the OpenPGP web of trust for
14 OpenSSH authentication.  OpenPGP keys are tracked via GnuPG, and added to the
15 authorized_keys and known_hosts files used by OpenSSH for connection
16 authentication.
17
18 \fBmonkeysphere-authentication\fP is a Monkeysphere server admin utility.
19
20 .SH SUBCOMMANDS
21
22 \fBmonkeysphere-authentication\fP takes various subcommands:
23 .TP
24 .B update-users [ACCOUNT]...
25 Rebuild the monkeysphere-controlled authorized_keys files.  For each
26 specified account, the user ID's listed in the account's
27 authorized_user_ids file are processed.  For each user ID, gpg will be
28 queried for keys associated with that user ID, optionally querying a
29 keyserver.  If an acceptable key is found (see KEY ACCEPTABILITY in
30 monkeysphere(7)), the key is added to the account's
31 monkeysphere-controlled authorized_keys file.  If the
32 RAW_AUTHORIZED_KEYS variable is set, then a separate authorized_keys
33 file (usually ~USER/.ssh/authorized_keys) is appended to the
34 monkeysphere-controlled authorized_keys file.  If no accounts are
35 specified, then all accounts on the system are processed.  `u' may be
36 used in place of `update-users'.
37 .TP
38 .B add-id-certifier KEYID|FILE
39 Instruct system to trust user identity certifications made by KEYID.
40 The key ID will be loaded from the keyserver.  A file may be loaded
41 instead of pulling the key from the keyserver by specifying the path
42 to the file as the argument, or by specifying `-` to load from stdin.
43 Using the `-n' or `--domain' option allows you to indicate that you
44 only trust the given KEYID to make identifications within a specific
45 domain (e.g. "trust KEYID to certify user identities within the
46 @example.org domain").  A certifier trust level can be specified with
47 the `-t' or `--trust' option (possible values are `marginal' and
48 `full' (default is `full')).  A certifier trust depth can be specified
49 with the `-d' or `--depth' option (default is 1).  `c+' may be used in
50 place of `add-id-certifier'.
51 .TP
52 .B remove-id-certifier KEYID
53 Instruct system to ignore user identity certifications made by KEYID.
54 `c-' may be used in place of `remove-id-certifier'.
55 .TP
56 .B list-id-certifiers
57 List key IDs trusted by the system to certify user identities.  `c'
58 may be used in place of `list-id-certifiers'.
59 .TP
60 .B help
61 Output a brief usage summary.  `h' or `?' may be used in place of
62 `help'.
63 .TP
64 .B version
65 show version number
66
67 Other commands:
68 .TP
69 .B setup
70 Setup the server for Monkeysphere user authentication.  This command
71 is idempotent and run automatically by the other commands, and should
72 therefore not usually need to be run manually.  `s' may be used in
73 place of `setup'.
74 .TP
75 .B diagnostics
76 Review the state of the server with respect to authentication.  `d'
77 may be used in place of `diagnostics'.
78 .TP
79 .B gpg-cmd
80 Execute a gpg command, as the monkeysphere user, on the monkeysphere
81 authentication "sphere" keyring.  This takes a single argument
82 (multiple gpg arguments need to be quoted).  Use this command with
83 caution, as modifying the authentication sphere keyring can affect ssh
84 user authentication.
85
86 .SH SETUP USER AUTHENTICATION
87
88 If the server will handle user authentication through
89 monkeysphere-generated authorized_keys files, the server must be told
90 which keys will act as identity certifiers.  This is done with the
91 \fBadd-id-certifier\fP command:
92
93 $ monkeysphere-authentication add-id-certifier KEYID
94
95 where KEYID is the key ID of the server admin, or whoever's
96 certifications should be acceptable to the system for the purposes of
97 authenticating remote users.  You can run this command multiple times
98 to indicate that multiple certifiers are trusted.  You may also
99 specify a filename instead of a key ID, as long as the file contains a
100 single OpenPGP public key.  Certifiers can be removed with the
101 \fBremove-id-certifier\fP command, and listed with the
102 \fBlist-id-certifiers\fP command.
103
104 Remote users will then be granted access to a local account based on
105 the appropriately-signed and valid keys associated with user IDs
106 listed in that account's authorized_user_ids file.  By default, the
107 authorized_user_ids file for an account is
108 ~/.monkeysphere/authorized_user_ids.  This can be changed in the
109 monkeysphere-authentication.conf file.
110
111 The \fBupdate-users\fP command can then be used to generate
112 authorized_keys file for local accounts based on the authorized user
113 IDs listed in the account's authorized_user_ids file:
114
115 $ monkeysphere-authentication update-users USER
116
117 Not specifying USER will cause all accounts on the system to updated.
118 sshd can then use these monkeysphere generated authorized_keys files
119 to grant access to user accounts for remote users.  You must also tell
120 sshd to look at the monkeysphere-generated authorized_keys file for
121 user authentication by setting the following in the sshd_config:
122
123 AuthorizedKeysFile /var/lib/monkeysphere/authentication/authorized_keys/%u
124
125 It is recommended to add "monkeysphere-authentication update-users" to a
126 system crontab, so that user keys are kept up-to-date, and key
127 revocations and expirations can be processed in a timely manner.
128
129 .SH ENVIRONMENT
130
131 The following environment variables will override those specified in
132 the config file (defaults in parentheses):
133 .TP
134 MONKEYSPHERE_MONKEYSPHERE_USER
135 User to control authentication keychain. (monkeysphere)
136 .TP
137 MONKEYSPHERE_LOG_LEVEL
138 Set the log level.  Can be SILENT, ERROR, INFO, VERBOSE, DEBUG, in
139 increasing order of verbosity. (INFO)
140 .TP
141 MONKEYSPHERE_KEYSERVER
142 OpenPGP keyserver to use. (pool.sks-keyservers.net)
143 .TP
144 MONKEYSPHERE_AUTHORIZED_USER_IDS
145 Path to user's authorized_user_ids file. %h gets replaced with the
146 user's homedir, %u with the username.
147 (%h/.monkeysphere/authorized_user_ids)
148 .TP
149 MONKEYSPHERE_RAW_AUTHORIZED_KEYS
150 Path to regular ssh-style authorized_keys file to append to
151 monkeysphere-generated authorized_keys.  `none' means not to add any
152 raw authorized_keys file.  %h gets replaced with the user's homedir,
153 %u with the username. (%h/.ssh/authorized_keys)
154 .TP
155 MONKEYSPHERE_PROMPT
156 If set to `false', never prompt the user for confirmation. (true)
157
158
159 .SH FILES
160
161 .TP
162 /etc/monkeysphere/monkeysphere-authentication.conf
163 System monkeysphere-authentication config file.
164 .TP
165 /var/lib/monkeysphere/authorized_keys/USER
166 Monkeysphere-generated user authorized_keys files.
167
168 .SH AUTHOR
169
170 Written by:
171 Jameson Rollins <jrollins@fifthhorseman.net>,
172 Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
173 Matthew Goins <mjgoins@openflows.com>
174
175 .SH SEE ALSO
176
177 .BR monkeysphere (1),
178 .BR monkeysphere-host (8),
179 .BR monkeysphere (7),
180 .BR gpg (1),
181 .BR ssh (1)