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