Print this page
2989 Eliminate use of LOGNAME_MAX in ON
1166 useradd have warning with name more 8 chars
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/oamuser/user/messages.c
+++ new/usr/src/cmd/oamuser/user/messages.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
22 22 /* All Rights Reserved */
23 23
24 24
25 25 /*
26 + * Copyright (c) 2013 Gary Mills
27 + *
26 28 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
27 29 * Use is subject to license terms.
28 30 */
29 31
30 -#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.6 */
31 -
32 32 char *errmsgs[] = {
33 33 "WARNING: uid %ld is reserved.\n",
34 34 "WARNING: more than NGROUPS_MAX(%d) groups specified.\n",
35 35 "ERROR: invalid syntax.\n"
36 36 "usage: useradd [-u uid [-o] | -g group | -G group[[,group]...] |"
37 37 "-d dir | -b base_dir |\n"
38 38 "\t\t-s shell | -c comment | -m [-k skel_dir] | -f inactive |\n"
39 39 "\t\t-e expire | -A authorization [, authorization ...] |\n"
40 40 "\t\t-P profile [, profile ...] | -R role [, role ...] |\n"
41 41 "\t\t-K key=value | -p project [, project ...]] login\n"
42 42 "\tuseradd -D [-g group | -b base_dir | -f inactive | -e expire\n"
43 43 "\t\t-A authorization [, authorization ...] |\n"
44 44 "\t\t-P profile [, profile ...] | -R role [, role ...] |\n"
45 45 "\t\t-K key=value ... -p project] | [-s shell] | [-k skel_dir]\n",
46 46 "ERROR: Invalid syntax.\nusage: userdel [-r] login\n",
47 47 "ERROR: Invalid syntax.\n"
48 48 "usage: usermod -u uid [-o] | -g group | -G group[[,group]...] |\n"
49 49 "\t\t-d dir [-m] | -s shell | -c comment |\n"
50 50 "\t\t-l new_logname | -f inactive | -e expire |\n"
51 51 "\t\t-A authorization [, authorization ...] | -K key=value ... |\n"
52 52 "\t\t-P profile [, profile ...] | -R role [, role ...] login\n",
53 53 "ERROR: Unexpected failure. Defaults unchanged.\n",
54 54 "ERROR: Unable to remove files from home directory.\n",
55 55 "ERROR: Unable to remove home directory.\n",
56 56 "ERROR: Cannot update system files - login cannot be %s.\n",
57 57 "ERROR: uid %ld is already in use. Choose another.\n",
58 58 "ERROR: %s is already in use. Choose another.\n",
59 59 "ERROR: %s does not exist.\n",
60 60 "ERROR: %s is not a valid %s. Choose another.\n",
61 61 "ERROR: %s is in use. Cannot %s it.\n",
62 62 "WARNING: %s has no permissions to use %s.\n",
63 63 "ERROR: There is not sufficient space to move %s home directory to %s"
64 64 "\n",
65 65 "ERROR: %s %ld is too big. Choose another.\n",
66 66 "ERROR: group %s does not exist. Choose another.\n",
67 67 "ERROR: Unable to %s: %s.\n",
68 68 "ERROR: %s is not a full path name. Choose another.\n",
69 69 "ERROR: %s is the primary group name. Choose another.\n",
70 70 "ERROR: Inconsistent password files. See pwconv(1M).\n",
71 71 "ERROR: %s is not a local user.\n",
72 72 "ERROR: Permission denied.\n",
73 73 "WARNING: Group entry exceeds 2048 char: /etc/group entry truncated.\n",
74 74 "ERROR: invalid syntax.\n"
75 75 "usage: roleadd [-u uid [-o] | -g group | -G group[[,group]...] |"
76 76 "-d dir |\n"
77 77 "\t\t-s shell | -c comment | -m [-k skel_dir] | -f inactive |\n"
78 78 "\t\t-e expire | -A authorization [, authorization ...] |\n"
79 79 "\t\t-P profile [, profile ...] | -K key=value ] login\n"
80 80 "\troleadd -D [-g group | -b base_dir | -f inactive | -e expire\n"
81 81 "\t\t-A authorization [, authorization ...] |\n"
82 82 "\t\t-P profile [, profile ...]]\n",
83 83 "ERROR: Invalid syntax.\nusage: roledel [-r] login\n",
84 84 "ERROR: Invalid syntax.\n"
85 85 "usage: rolemod -u uid [-o] | -g group | -G group[[,group]...] |\n"
86 86 "\t\t-d dir [-m] | -s shell | -c comment |\n"
87 87 "\t\t-l new_logname | -f inactive | -e expire |\n"
88 88 "\t\t-A authorization [, authorization ...] | -K key=value |\n"
89 89 "\t\t-P profile [, profile ...] login\n",
90 90 "ERROR: project %s does not exist. Choose another.\n",
91 91 "WARNING: more than NPROJECTS_MAX(%d) projects specified.\n",
↓ open down ↓ |
50 lines elided |
↑ open up ↑ |
92 92 "WARNING: Project entry exceeds %d char: /etc/project entry truncated."
93 93 "\n",
94 94 "ERROR: Invalid key.\n",
95 95 "ERROR: Missing value specification.\n",
96 96 "ERROR: Multiple definitions of key ``%s''.\n",
97 97 "ERROR: Roles must be modified with ``rolemod''.\n",
98 98 "ERROR: Users must be modified with ``usermod''.\n",
99 99 "WARNING: gid %ld is reserved.\n",
100 100 "ERROR: Failed to read /etc/group file due to invalid entry or"
101 101 " read error.\n",
102 + "ERROR: %s is too long. Choose another.\n",
102 103 };
103 104
104 105 int lasterrmsg = sizeof (errmsgs) / sizeof (char *);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX