{"id":4240,"date":"2022-12-20T17:39:51","date_gmt":"2022-12-20T20:39:51","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/groupmems-zh_cn\/"},"modified":"2022-12-20T17:39:51","modified_gmt":"2022-12-20T20:39:51","slug":"groupmems-zh_cn","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/groupmems-zh_cn\/","title":{"rendered":"GROUPMEMS (zh_CN)"},"content":{"rendered":"<h1 align=\"center\">GROUPMEMS<\/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=\"#SETUP\">SETUP<\/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=\"#\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\">groupmems \u2212 \u00e7\u00a8\u00e6\u00b7\u00e4\u00b8\u00bb\u00e7\u00bb\u00e7\u00e7\u00ae\u00a1\u00e7\u00e5\u00e6\u00e5<\/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=\"89%\">\n<p style=\"margin-top: 1em\"><b>groupmems<\/b> \u2212a\u00a0<i>user_name<\/i> | \u2212d\u00a0<i>user_name<\/i> | [\u2212g\u00a0<i>group_name<\/i>] | \u2212l | \u2212p<\/p>\n<\/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>groupmems<\/b> command allows a user to administer their own group membership list without the requirement of superuser privileges. The <b>groupmems<\/b> utility is for systems that configure its users to be in their own name sake primary group (i.e., guest \/ guest).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Only the superuser, as administrator, can use <b>groupmems<\/b> to alter the memberships of other groups.<\/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>groupmems<\/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>\u2212a<\/b>, <b>\u2212\u2212add\u00a0<\/b><i>user_name<\/i><\/p>\n<p style=\"margin-left:17%;\">Add a user to the group membership list.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If the \/etc\/gshadow file exist, and the group has no entry in the \/etc\/gshadow file, a new entry will be created.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212d<\/b>, <b>\u2212\u2212delete\u00a0<\/b><i>user_name<\/i><\/p>\n<p style=\"margin-left:17%;\">\u00e4\u00bb\u00e7\u00bb\u00e6\u00e5\u00e5\u00e8\u00a1\u00a8\u00e4\u00b8\u00e5\u00a0\u00e9\u00a4\u00e7\u00a8\u00e6\u00b7\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u00e5\u00a6\u00e6 \/etc\/gshadow \u00e6\u00e4\u00bb\u00b6\u00e5\u00e5\u00a8\u00ef\u00bc\u00e7\u00a8\u00e6\u00b7\u00e5\u00b0\u00e4\u00bc\u00e8\u00a2\u00ab\u00e4\u00bb\u00e7\u00bb\u00e6\u00e5\u00e5\u00e7\u00ae\u00a1\u00e7\u00e5\u00e4\u00b8\u00e7\u00a7\u00bb\u00e9\u00a4\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If the \/etc\/gshadow file exist, and the group has no entry in the \/etc\/gshadow file, a new entry will be created.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212g<\/b>, <b>\u2212\u2212group\u00a0<\/b><i>group_name<\/i><\/p>\n<p style=\"margin-left:17%;\">\u00e8\u00b6\u00e7\u00ba\u00a7\u00e7\u00a8\u00e6\u00b7\u00e5\u00af\u00e4\u00bb\u00a5\u00e6\u00e5\u00ae\u00e4\u00bf\u00ae\u00e6\u00b9\u00e5\u00aa\u00e4\u00b8\u00aa\u00e7\u00bb\u00e7\u00e7\u00bb\u00e6\u00e5\u00e5\u00e8\u00a1\u00a8\u00e3<\/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>\u2212l<\/b>, <b>\u2212\u2212list<\/b><\/p>\n<p style=\"margin-left:17%;\">\u00e5\u00e5\u00ba\u00e7\u00bb\u00e6\u00e5\u00e3<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212p<\/b>, <b>\u2212\u2212purge<\/b><\/p>\n<p style=\"margin-left:17%;\">\u00e4\u00bb\u00e7\u00bb\u00e6\u00e5\u00e5\u00e8\u00a1\u00a8\u00e4\u00b8\u00e5\u00a0\u00e9\u00a4\u00e6\u00e6\u00e7\u00a8\u00e6\u00b7\u00e3<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If the \/etc\/gshadow file exist, and the group has no entry in the \/etc\/gshadow file, a new entry will be created.<\/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<h2>SETUP <a name=\"SETUP\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>groupmems<\/b> executable should be in mode 2770 as user <i>root<\/i> and in group <i>groups<\/i>. The system administrator can add users to group <i>groups<\/i> to allow or disallow them using the <b>groupmems<\/b> utility to manage their own group membership list.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>$ groupadd \u2212r groups<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>$ chmod 2770 groupmems<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>$ chown root.groups groupmems<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>$ groupmems \u2212g groups \u2212a gk4<\/p>\n<\/td>\n<\/tr>\n<\/table>\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<\/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>groupadd<\/b>(8), <b>groupdel<\/b>(8), <b>useradd<\/b>(8), <b>userdel<\/b>(8), <b>usermod<\/b>(8).<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>GROUPMEMS \u00e5\u00e7\u00a7\u00b0 \u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 \u00e6\u00e8\u00bf\u00b0 \u00e9\u00e9\u00a1\u00b9 SETUP \u00e9\u00e7\u00bd\u00ae\u00e6\u00e4\u00bb\u00b6 \u00e6\u00e4\u00bb\u00b6 \u00e5\u00e8\u00a7 \u00e5\u00e7\u00a7\u00b0 groupmems \u2212 \u00e7\u00a8\u00e6\u00b7\u00e4\u00b8\u00bb\u00e7\u00bb\u00e7\u00e7\u00ae\u00a1\u00e7\u00e5\u00e6\u00e5 \u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 groupmems \u2212a\u00a0user_name | \u2212d\u00a0user_name | [\u2212g\u00a0group_name] | \u2212l | \u2212p \u00e6\u00e8\u00bf\u00b0 The groupmems command allows a user to administer their own group membership list without the requirement of superuser privileges. The groupmems utility is for systems that configure its users to [&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,329,1284],"class_list":["post-4240","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-groupmems","tag-zh_cn"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4240","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=4240"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4240\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}