9070 Remove wanboot from gate
[unleashed.git] / usr / src / man / man1 / ckuid.1
blobfc896ae7ab99eaf418f5b739df0cb89fd42218e3
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1992, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH CKUID 1 "Sep 14, 1992"
7 .SH NAME
8 ckuid, erruid, helpuid, valuid \- prompts for and validates a user ID
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBckuid\fR [\fB-Q\fR] [\fB-W\fR \fIwidth\fR] [\fB-m\fR] [\fB-d\fR \fIdefault\fR] [\fB-h\fR \fIhelp\fR]
13      [\fB-e\fR \fIerror\fR] [\fB-p\fR \fIprompt\fR] [\fB-k\fR \fIpid\fR [\fB-s\fR \fIsignal\fR]]
14 .fi
16 .LP
17 .nf
18 \fB/usr/sadm/bin/erruid\fR [\fB-W\fR \fIwidth\fR] [\fB-e\fR \fIerror\fR]
19 .fi
21 .LP
22 .nf
23 \fB/usr/sadm/bin/helpuid\fR [\fB-W\fR \fIwidth\fR] [\fB-m\fR] [\fB-h\fR \fIhelp\fR]
24 .fi
26 .LP
27 .nf
28 \fB/usr/sadm/bin/valuid\fR \fIinput\fR
29 .fi
31 .SH DESCRIPTION
32 .sp
33 .LP
34 The \fBckuid\fR utility prompts a user and validates the response. It defines,
35 among other things, a prompt message whose response should be an existing user
36 \fBID,\fR text for help and error messages, and a default value (which are
37 returned if the user responds with a RETURN).
38 .sp
39 .LP
40 All messages are limited in length to 70 characters and are formatted
41 automatically. Any white space used in the definition (including NEWLINE) is
42 stripped. The \fB-W\fR option cancels the automatic formatting. When a tilde is
43 placed at the beginning or end of a message definition, the default text is
44 inserted at that point, allowing both custom text and the default text to be
45 displayed.
46 .sp
47 .LP
48 If the prompt, help or error message is not defined, the default message (as
49 defined under \fBNOTES\fR) is displayed.
50 .sp
51 .LP
52 Three visual tool modules are linked to the \fBckuid\fR command. They are
53 \fBerruid\fR (which formats and displays an error message), \fBhelpuid\fR
54 (which formats and displays a help message), and \fBvaluid\fR (which validates
55 a response). These modules should be used in conjunction with  \fBFML\fR
56 objects. In this instance, the  \fBFML\fR object defines the prompt.
57 .SH OPTIONS
58 .sp
59 .LP
60 The following options are supported:
61 .sp
62 .ne 2
63 .na
64 \fB\fB-d\fR\fI default\fR\fR
65 .ad
66 .RS 14n
67 Defines the default value as \fIdefault\fR. The default is not validated and so
68 does not have to meet any criteria.
69 .RE
71 .sp
72 .ne 2
73 .na
74 \fB\fB-e\fR \fIerror\fR\fR
75 .ad
76 .RS 14n
77 Defines the error message as \fIerror\fR.
78 .RE
80 .sp
81 .ne 2
82 .na
83 \fB\fB-h\fR \fIhelp\fR\fR
84 .ad
85 .RS 14n
86 Defines the help messages as \fIhelp\fR.
87 .RE
89 .sp
90 .ne 2
91 .na
92 \fB\fB-k\fR\fI pid\fR\fR
93 .ad
94 .RS 14n
95 Specifies that process  \fBID\fR \fIpid\fR is to be sent a signal if the user
96 chooses to abort.
97 .RE
99 .sp
100 .ne 2
102 \fB\fB-m\fR\fR
104 .RS 14n
105 Displays a list of all logins when help is requested or when the user makes an
106 error.
110 .ne 2
112 \fB\fB-p\fR\fI prompt\fR\fR
114 .RS 14n
115 Defines the prompt message as \fIprompt\fR.
119 .ne 2
121 \fB\fB-Q\fR\fR
123 .RS 14n
124 Specifies that quit will not be allowed as a valid response.
128 .ne 2
130 \fB\fB-s\fR \fIsignal\fR\fR
132 .RS 14n
133 Specifies that the process  \fBID\fR \fIpid\fR defined with the \fB-k\fR option
134 is to be sent signal \fIsignal\fR when quit is chosen. If no signal is
135 specified, \fBSIGTERM\fR is used.
139 .ne 2
141 \fB\fB-W\fR\fI width\fR\fR
143 .RS 14n
144 Specifies that prompt, help and error messages will be formatted to a line
145 length of \fIwidth\fR.
148 .SH OPERANDS
151 The following operand is supported:
153 .ne 2
155 \fB\fIinput\fR\fR
157 .RS 9n
158 Input to be verified against \fB/etc/passwd\fR.
161 .SH EXIT STATUS
164 The following exit values are returned:
166 .ne 2
168 \fB\fB0\fR\fR
170 .RS 5n
171 Successful execution.
175 .ne 2
177 \fB\fB1\fR\fR
179 .RS 5n
180 \fBEOF\fR on input, or negative width on  \fB-W\fR option,  or usage error.
184 .ne 2
186 \fB\fB2\fR\fR
188 .RS 5n
189 Usage error.
193 .ne 2
195 \fB\fB3\fR\fR
197 .RS 5n
198 User termination (quit).
201 .SH SEE ALSO
204 \fBattributes\fR(5)
205 .SH NOTES
208 The default prompt for \fBckuid\fR is:
210 .in +2
212 Enter the login name of an existing user [?,q]:
214 .in -2
219 The default error message is:
221 .in +2
223 ERROR - Please enter the login name of an existing user.
225 .in -2
230 If the \fB-m\fR option is used, the default error message is:
232 .in +2
234 ERROR:  Please enter one of the following login names:  <List>
236 .in -2
241 The default help message is:
243 .in +2
245 Please enter the login name of an existing user.
247 .in -2
252 If the \fB-m\fR option is used, the default help message is:
254 .in +2
256 Please enter one of the following login names:  <List>
258 .in -2
263 When the quit option is chosen (and allowed), \fBq\fR is returned along with
264 the return code \fB3\fR. The \fBvaluid\fR module will not produce any output.
265 It returns  \fB0\fR for success and non-zero for failure.