1ckgid(1)                         User Commands                        ckgid(1)
2
3
4

NAME

6       ckgid, errgid, helpgid, valgid - prompts for and validates a group id
7

SYNOPSIS

9       ckgid [-Q] [-W width] [-m] [-d default] [-h help]
10            [-e error] [-p prompt] [-k pid [-s signal]]
11
12
13       /usr/sadm/bin/errgid [-W width] [-e error]
14
15
16       /usr/sadm/bin/helpgid [-W width] [-m] [-h help]
17
18
19       /usr/sadm/bin/valgid input
20
21

DESCRIPTION

23       ckgid  prompts  a  user  and  validates the response. It defines, among
24       other things, a prompt message whose response  should  be  an  existing
25       group  ID, text for help and error messages, and a default value (which
26       will be returned if the user responds with a carriage return).
27
28
29       All messages are limited in length to 70 characters and  are  formatted
30       automatically.  Any  white space used in the definition (including new‐
31       line) is stripped. The -W option cancels the automatic formatting. When
32       a  tilde is placed at the beginning or end of a message definition, the
33       default text will be inserted at that point, allowing both custom  text
34       and the default text to be displayed.
35
36
37       If  the  prompt, help or error message is not defined, the default mes‐
38       sage (as defined under NOTES) will be displayed.
39
40
41       Three visual tool modules are linked to the ckgid  command.   They  are
42       errgid  (which  formats  and displays an error message), helpgid (which
43       formats and displays a help message), and  valgid  (which  validates  a
44       response).  These  modules  should  be  used  in  conjunction  with FML
45       objects. In this instance, the FML object defines the prompt.
46

OPTIONS

48       The following options are supported:
49
50       -d default    Defines the default value as default. The default is  not
51                     validated and so does not have to meet any criteria.
52
53
54       -e error      Defines the error message as  error.
55
56
57       -h help       Defines the help messages as  help.
58
59
60       -k pid        Specifies  that  process ID pid is to be sent a signal if
61                     the user chooses to abort.
62
63
64       -m            Displays a list of all groups when help is  requested  or
65                     when the user makes an error.
66
67
68       -p prompt     Defines the prompt message as prompt.
69
70
71       -Q            Specifies  that  quit  will  not  be  allowed  as a valid
72                     response.
73
74
75       -s signal     Specifies that the process ID pid  defined  with  the  -k
76                     option  is to be sent signal  signal when quit is chosen.
77                     If no signal is specified, SIGTERM is used.
78
79
80       -W width      Specifies that prompt, help and error  messages  will  be
81                     formatted to a line length of width.
82
83

OPERANDS

85       The following operand is supported:
86
87       input    Input to be verified against /etc/group.
88
89

EXIT STATUS

91       The following exit values are returned:
92
93       0    Successful execution.
94
95
96       1    EOF on input, or negative width on -W option, or usage error.
97
98
99       3    User termination (quit).
100
101

ATTRIBUTES

103       See attributes(5) for descriptions of the following attributes:
104
105
106
107
108       ┌─────────────────────────────┬─────────────────────────────┐
109       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
110       ├─────────────────────────────┼─────────────────────────────┤
111       │Availability                 │SUNWcsu                      │
112       └─────────────────────────────┴─────────────────────────────┘
113

SEE ALSO

115       attributes(5)
116

NOTES

118       The default prompt for ckgid is:
119
120         Enter the name of an existing group [?,q]:
121
122
123
124
125       The default error message is:
126
127         ERROR: Please enter one of the following group names: [List]
128
129
130
131
132       If  the -m option of ckgid is used, a list of valid groups is displayed
133       here.
134
135
136       The default help message is:
137
138         ERROR: Please enter one of the following group names: [List]
139
140
141
142
143       If the -m option of ckgid is used, a  list of valid groups is displayed
144       here.
145
146
147       When  the quit option is chosen (and allowed), q is returned along with
148       the return code 3. The valgid module will not produce  any  output.  It
149       returns 0 for success and non-zero for failure.
150
151
152
153SunOS 5.11                        14 Sep 1992                         ckgid(1)
Impressum