{"id":4249,"date":"2022-12-20T17:39:54","date_gmt":"2022-12-20T20:39:54","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/groupmod-zh_cn\/"},"modified":"2022-12-20T17:39:54","modified_gmt":"2022-12-20T20:39:54","slug":"groupmod-zh_cn","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/groupmod-zh_cn\/","title":{"rendered":"GROUPMOD (zh_CN)"},"content":{"rendered":"<h1 align=\"center\">GROUPMOD<\/h1>\n<p> <a href=\"#\u00e5\u00e7\u00a7\u00b0\">\u00e5\u00e7\u00a7\u00b0<\/a><br \/> <a href=\"#\u00e5\u00a4\u00a7\u00e7\u00ba\u00b2\">\u00e5\u00a4\u00a7\u00e7\u00ba\u00b2<\/a><br \/> <a href=\"#\u00e6\u00e8\u00bf\u00b0\">\u00e6\u00e8\u00bf\u00b0<\/a><br \/> <a href=\"#\u00e9\u00e9\u00a1\u00b9\">\u00e9\u00e9\u00a1\u00b9<\/a><br \/> <a href=\"#\u00e9\u00e7\u00bd\u00ae\u00e6\u00e4\u00bb\u00b6\">\u00e9\u00e7\u00bd\u00ae\u00e6\u00e4\u00bb\u00b6<\/a><br \/> <a href=\"#\u00e6\u00e4\u00bb\u00b6\">\u00e6\u00e4\u00bb\u00b6<\/a><br \/> <a href=\"#\u00e9\u00e5\u00ba\u00e5\u00bc\">\u00e9\u00e5\u00ba\u00e5\u00bc<\/a><br \/> <a href=\"#\u00e5\u00e8\u00a7\">\u00e5\u00e8\u00a7<\/a> <\/p>\n<hr>\n<h2>\u00e5\u00e7\u00a7\u00b0 <a name=\"\u00e5\u00e7\u00a7\u00b0\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">groupmod \u2212 modify a group definition on the system<\/p>\n<h2>\u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 <a name=\"\u00e5\u00a4\u00a7\u00e7\u00ba\u00b2\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"32%\">\n<p style=\"margin-top: 1em\"><b>groupmod<\/b> [<i>\u00e9\u00e9\u00a1\u00b9<\/i>] <i>GROUP<\/i><\/p>\n<\/td>\n<td width=\"57%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>\u00e6\u00e8\u00bf\u00b0 <a name=\"\u00e6\u00e8\u00bf\u00b0\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>groupmod<\/b> command modifies the definition of the specified <i>GROUP<\/i> by modifying the appropriate entry in the group database.<\/p>\n<h2>\u00e9\u00e9\u00a1\u00b9 <a name=\"\u00e9\u00e9\u00a1\u00b9\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>groupmod<\/b> \u00e5\u00bd\u00e4\u00bb\u00a4\u00e5\u00af\u00e4\u00bb\u00a5\u00e6\u00a5\u00e5\u00e7\u00e9\u00e9\u00a1\u00b9\u00e6\u00ef\u00bc<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212g<\/b>, <b>\u2212\u2212gid\u00a0<\/b><i>GID<\/i><\/p>\n<p style=\"margin-left:17%;\">The group ID of the given <i>GROUP<\/i> will be changed to <i>GID<\/i>.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">The value of <i>GID<\/i> must be a non\u2212negative decimal integer. This value must be unique, unless the <b>\u2212o<\/b> option is used.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Users who use the group as primary group will be updated to keep the group as their primary group.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Any files that have the old group ID and must continue to belong to <i>GROUP<\/i>, must have their group ID changed manually.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">No checks will be performed with regard to the <b>GID_MIN<\/b>, <b>GID_MAX<\/b>, <b>SYS_GID_MIN<\/b>, or <b>SYS_GID_MAX<\/b> from \/etc\/login.defs.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:17%;\">\u00e7\u00b0\u00e5\u00ae\u00e5\u00b8\u00ae\u00e5\u00a9\u00e4\u00bf\u00a1\u00e6\u00af\u00e5\u00b9\u00b6\u00e9\u00e5\u00ba\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212n<\/b>, <b>\u2212\u2212new\u2212name\u00a0<\/b><i>NEW_GROUP<\/i><\/p>\n<p style=\"margin-left:17%;\">The name of the group will be changed from <i>GROUP<\/i> to <i>NEW_GROUP<\/i> name.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212o<\/b>, <b>\u2212\u2212non\u2212unique<\/b><\/p>\n<p style=\"margin-left:17%;\">When used with the <b>\u2212g<\/b> option, allow to change the group <i>GID<\/i> to a non\u2212unique value.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212p<\/b>, <b>\u2212\u2212password\u00a0<\/b><i>PASSWORD<\/i><\/p>\n<p style=\"margin-left:17%;\">\u00e5\u00b7\u00b2\u00e7\u00bb\u00e5\u00a0\u00e5\u00af\u00e8\u00bf\u00e7\u00e5\u00af\u00e7\u00a0\u00ef\u00bc\u00e5\u00b0\u00b1\u00e5 <b>crypt<\/b>(3) \u00e8\u00bf\u00e5\u00e7\u00e9\u00a3\u00e6\u00a0\u00b7\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>\u00e6\u00b3\u00a8\u00e6\u00ef\u00bc<\/b>\u00e4\u00b8\u00e6\u00a8\u00e8\u00e4\u00bd\u00bf\u00e7\u00a8\u00e8\u00bf\u00e4\u00b8\u00aa\u00e9\u00e9\u00a1\u00b9\u00ef\u00bc\u00e5\u00a0\u00e4\u00b8\u00ba\u00e5\u00af\u00e7\u00a0(\u00e6\u00e5\u00a0\u00e5\u00af\u00e8\u00bf\u00e7\u00e5\u00af\u00e7\u00a0)\u00e4\u00bc\u00e8\u00a2\u00ab\u00e7\u00a8\u00e6\u00b7\u00e9\u00e8\u00bf\u00e5\u00e5\u00ba\u00e8\u00bf\u00e4\u00b8\u00aa\u00e8\u00bf\u00e7\u00a8\u00e8\u00e7\u00e5\u00b0\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u00e6\u00a8\u00e5\u00ba\u00e8\u00af\u00a5\u00e7\u00a1\u00ae\u00e4\u00bf\u00e5\u00af\u00e7\u00a0\u00e7\u00ac\u00a6\u00e5\u00e7\u00b3\u00bb\u00e7\u00bb\u00e7\u00e5\u00af\u00e7\u00a0\u00e6\u00bf\u00e7\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212R<\/b>, <b>\u2212\u2212root\u00a0<\/b><i>CHROOT_DIR<\/i><\/p>\n<p style=\"margin-left:17%;\">Apply changes in the <i>CHROOT_DIR<\/i> directory and use the configuration files from the <i>CHROOT_DIR<\/i> directory.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212P<\/b>, <b>\u2212\u2212prefix\u00a0<\/b><i>PREFIX_DIR<\/i><\/p>\n<p style=\"margin-left:17%;\">Apply changes in the <i>PREFIX_DIR<\/i> directory and use the configuration files from the <i>PREFIX_DIR<\/i> directory. This option does not chroot and is intended for preparing a cross\u2212compilation target. Some limitations: NIS and LDAP users\/groups are not verified. PAM authentication is using the host files. No SELINUX support.<\/p>\n<h2>\u00e9\u00e7\u00bd\u00ae\u00e6\u00e4\u00bb\u00b6 <a name=\"\u00e9\u00e7\u00bd\u00ae\u00e6\u00e4\u00bb\u00b6\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\u00e5\u00a8 \/etc\/login.defs \u00e4\u00b8\u00e6\u00e5\u00a6\u00e4\u00b8\u00e9\u00e7\u00bd\u00ae\u00e5\u00e9\u00ef\u00bc\u00e5\u00af\u00e4\u00bb\u00a5\u00e7\u00a8\u00e6\u00a5\u00e6\u00b4\u00e6\u00b9\u00e6\u00a4\u00e5\u00b7\u00a5\u00e5\u00b7\u00e7\u00e8\u00a1\u00e4\u00b8\u00ba\u00ef\u00bc<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>MAX_MEMBERS_PER_GROUP<\/b> (number)<\/p>\n<p style=\"margin-left:17%;\">\u00e6\u00af\u00e4\u00b8\u00aa\u00e7\u00bb\u00e6\u00a1\u00e7\u00ae\u00e7\u00e6\u00e5\u00a4\u00a7\u00e6\u00e5\u00e6\u00b0\u00e3\u00e8\u00be\u00be\u00e5\u00b0\u00e6\u00e5\u00a4\u00a7\u00e5\u00bc\u00e6\u00b6\u00ef\u00bc\u00e5\u00a8 \/etc\/group \u00e5\u00bc\u00e5\u00a7\u00e4\u00b8\u00e4\u00b8\u00aa\u00e6\u00b0\u00e6\u00a1\u00e7\u00ae(\u00e8\u00a1)(\u00e4\u00bd\u00bf\u00e7\u00a8\u00e5\u00e6\u00a0\u00b7\u00e7\u00e5\u00e7\u00a7\u00b0\u00ef\u00bc\u00e5\u00e6\u00a0\u00b7\u00e7\u00e5\u00af\u00e7\u00a0\u00ef\u00bc\u00e5\u00e6\u00a0\u00b7\u00e7 GID)\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u00e9\u00bb\u00e8\u00ae\u00a4\u00e5\u00bc\u00e6\u00af 0\u00ef\u00bc\u00e6\u00e5\u00b3\u00e7\u00e7\u00bb\u00e4\u00b8\u00e7\u00e6\u00e5\u00e6\u00b0\u00e6\u00b2\u00a1\u00e6\u00e9\u00e5\u00b6\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u00e6\u00a4\u00e5\u00e8\u00bd(\u00e5\u00e5\u00b2\u00e7\u00bb)\u00e5\u00e8\u00ae\u00b8\u00e9\u00e5\u00b6\u00e7\u00bb\u00e6\u00e4\u00bb\u00b6\u00e4\u00b8\u00e7\u00e8\u00a1\u00e9\u00bf\u00e5\u00ba\u00a6\u00e3\u00e8\u00bf\u00e5\u00af\u00b9\u00e4\u00ba\u00e7\u00a1\u00ae\u00e4\u00bf NIS \u00e7\u00bb\u00e7\u00e8\u00a1\u00e6\u00af\u00e9\u00bf\u00e4\u00ba 1024 \u00e5\u00e7\u00ac\u00a6\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u00e5\u00a6\u00e6\u00e8\u00a6\u00e5\u00bc\u00ba\u00e5\u00b6\u00e8\u00bf\u00e4\u00b8\u00aa\u00e9\u00e5\u00b6\u00ef\u00bc\u00e5\u00af\u00e4\u00bb\u00a5\u00e4\u00bd\u00bf\u00e7\u00a8 25\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u00e6\u00b3\u00a8\u00e6\u00ef\u00bc\u00e5\u00e5\u00b2\u00e7\u00bb\u00e5\u00af\u00e8\u00bd\u00e4\u00b8\u00e5\u00e6\u00e6\u00e5\u00b7\u00a5\u00e5\u00b7\u00e7\u00e6\u00af\u00e6(\u00e7\u00e8\u00b3\u00e5\u00a8 Shadow \u00e5\u00b7\u00a5\u00e5\u00b7\u00e9\u00e4\u00b8- )\u00e3\u00e6\u00a8\u00e4\u00b8\u00e5\u00ba\u00e8\u00af\u00a5\u00e4\u00bd\u00bf\u00e7\u00a8\u00e8\u00bf\u00e4\u00b8\u00aa\u00e5\u00e9\u00ef\u00bc\u00e9\u00a4\u00e9\u00e7\u00e7\u00e9\u00e8\u00a6\u00e3<\/p>\n<h2>\u00e6\u00e4\u00bb\u00b6 <a name=\"\u00e6\u00e4\u00bb\u00b6\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/group<\/p>\n<p style=\"margin-left:17%;\">\u00e7\u00bb\u00e8\u00b4\u00a6\u00e6\u00b7\u00e4\u00bf\u00a1\u00e6\u00af\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/gshadow<\/p>\n<p style=\"margin-left:17%;\">\u00e5\u00ae\u00e5\u00a8\u00e7\u00bb\u00e8\u00b4\u00a6\u00e6\u00b7\u00e4\u00bf\u00a1\u00e6\u00af\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/login.defs<\/p>\n<p style=\"margin-left:17%;\">Shadow \u00e5\u00af\u00e7\u00a0\u00e5\u00a5\u00e4\u00bb\u00b6\u00e9\u00e7\u00bd\u00ae\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/passwd<\/p>\n<p style=\"margin-left:17%;\">\u00e7\u00a8\u00e6\u00b7\u00e8\u00b4\u00a6\u00e6\u00b7\u00e4\u00bf\u00a1\u00e6\u00af\u00e3<\/p>\n<h2>\u00e9\u00e5\u00ba\u00e5\u00bc <a name=\"\u00e9\u00e5\u00ba\u00e5\u00bc\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>groupmod<\/b> \u00e5\u00bd\u00e4\u00bb\u00a4\u00e5\u00af\u00e4\u00bb\u00a5\u00e8\u00bf\u00e5\u00e5\u00a6\u00e4\u00b8\u00e5\u00bc\u00ef\u00bc<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>0<\/i><\/p>\n<p style=\"margin-left:17%;\">E_SUCCESS: success<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>2<\/i><\/p>\n<p style=\"margin-left:17%;\">E_USAGE: invalid command syntax<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>3<\/i><\/p>\n<p style=\"margin-left:17%;\">E_BAD_ARG: invalid argument to option<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>4<\/i><\/p>\n<p style=\"margin-left:17%;\">E_GID_IN_USE: specified group doesn&#8217;t exist<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>6<\/i><\/p>\n<p style=\"margin-left:17%;\">E_NOTFOUND: specified group doesn&#8217;t exist<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>9<\/i><\/p>\n<p style=\"margin-left:17%;\">E_NAME_IN_USE: group name already in use<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>10<\/i><\/p>\n<p style=\"margin-left:17%;\">E_GRP_UPDATE: can&#8217;t update group file<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>11<\/i><\/p>\n<p style=\"margin-left:17%;\">E_CLEANUP_SERVICE: can&#8217;t setup cleanup service<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>12<\/i><\/p>\n<p style=\"margin-left:17%;\">E_PAM_USERNAME: can&#8217;t determine your username for use with pam<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>13<\/i><\/p>\n<p style=\"margin-left:17%;\">E_PAM_ERROR: pam returned an error, see syslog facility id groupmod for the PAM error message<\/p>\n<h2>\u00e5\u00e8\u00a7 <a name=\"\u00e5\u00e8\u00a7\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>chfn<\/b>(1), <b>chsh<\/b>(1), <b>passwd<\/b>(1), <b>gpasswd<\/b>(8), <b>groupadd<\/b>(8), <b>groupdel<\/b>(8), <b>login.defs<\/b>(5), <b>useradd<\/b>(8), <b>userdel<\/b>(8), <b>usermod<\/b>(8).<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>GROUPMOD \u00e5\u00e7\u00a7\u00b0 \u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 \u00e6\u00e8\u00bf\u00b0 \u00e9\u00e9\u00a1\u00b9 \u00e9\u00e7\u00bd\u00ae\u00e6\u00e4\u00bb\u00b6 \u00e6\u00e4\u00bb\u00b6 \u00e9\u00e5\u00ba\u00e5\u00bc \u00e5\u00e8\u00a7 \u00e5\u00e7\u00a7\u00b0 groupmod \u2212 modify a group definition on the system \u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 groupmod [\u00e9\u00e9\u00a1\u00b9] GROUP \u00e6\u00e8\u00bf\u00b0 The groupmod command modifies the definition of the specified GROUP by modifying the appropriate entry in the group database. \u00e9\u00e9\u00a1\u00b9 groupmod \u00e5\u00bd\u00e4\u00bb\u00a4\u00e5\u00af\u00e4\u00bb\u00a5\u00e6\u00a5\u00e5\u00e7\u00e9\u00e9\u00a1\u00b9\u00e6\u00ef\u00bc \u2212g, \u2212\u2212gid\u00a0GID The group ID of the given GROUP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,613,1284],"class_list":["post-4249","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-groupmod","tag-zh_cn"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4249"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4249\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}