{"id":4265,"date":"2022-12-20T17:48:49","date_gmt":"2022-12-20T20:48:49","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/newgrp-zh_cn\/"},"modified":"2022-12-20T17:48:49","modified_gmt":"2022-12-20T20:48:49","slug":"newgrp-zh_cn","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/newgrp-zh_cn\/","title":{"rendered":"NEWGRP (zh_CN)"},"content":{"rendered":"<h1 align=\"center\">NEWGRP<\/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\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\">newgrp \u2212 \u00e7\u00bb\u00e5\u00bd\u00e5\u00b0\u00e4\u00b8\u00e4\u00b8\u00aa\u00e6\u00b0\u00e7\u00bb<\/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=\"27%\">\n<p style=\"margin-top: 1em\"><b>newgrp<\/b> [\u2212] [<i>group<\/i>]<\/p>\n<\/td>\n<td width=\"62%\"> <\/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>newgrp<\/b> command is used to change the current group ID during a login session. If the optional <b>\u2212<\/b> flag is given, the user&#8217;s environment will be reinitialized as though the user had logged in, otherwise the current environment, including current working directory, remains unchanged.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>newgrp<\/b> changes the current real group ID to the named group, or to the default group listed in \/etc\/passwd if no group name is given. <b>newgrp<\/b> also tries to add the group to the user groupset. If not root, the user will be prompted for a password if she does not have a password (in \/etc\/shadow if this user has an entry in the shadowed password file, or in \/etc\/passwd otherwise) and the group does, or if the user is not listed as a member and the group has a password. The user will be denied access if the group password is empty and the user is not listed as a member.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If there is an entry for this group in \/etc\/gshadow, then the list of members and the password of this group will be taken from this file, otherwise, the entry in \/etc\/group is considered.<\/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>SYSLOG_SG_ENAB<\/b> (boolean)<\/p>\n<p style=\"margin-left:17%;\">\u00e5\u00e8\u00ae\u00b8\u201csyslog\u201d\u00e8\u00ae\u00b0\u00e5\u00bd <b>sg<\/b> \u00e7\u00e6\u00b4\u00bb\u00e5\u00a8\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\/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<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/shadow<\/p>\n<p style=\"margin-left:17%;\">\u00e5\u00ae\u00e5\u00a8\u00e7\u00a8\u00e6\u00b7\u00e8\u00b4\u00a6\u00e6\u00b7\u00e4\u00bf\u00a1\u00e6\u00af\u00e3<\/p>\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<h2>\u00e5\u00e8\u00a7 <a name=\"\u00e5\u00e8\u00a7\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>id<\/b>(1), <b>login<\/b>(1), <b>su<\/b>(1), <b>sg<\/b>(1), <b>gpasswd<\/b>(1), <b>group<\/b>(5), <b>gshadow<\/b>(5).<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>NEWGRP \u00e5\u00e7\u00a7\u00b0 \u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 \u00e6\u00e8\u00bf\u00b0 \u00e9\u00e7\u00bd\u00ae\u00e6\u00e4\u00bb\u00b6 \u00e6\u00e4\u00bb\u00b6 \u00e5\u00e8\u00a7 \u00e5\u00e7\u00a7\u00b0 newgrp \u2212 \u00e7\u00bb\u00e5\u00bd\u00e5\u00b0\u00e4\u00b8\u00e4\u00b8\u00aa\u00e6\u00b0\u00e7\u00bb \u00e5\u00a4\u00a7\u00e7\u00ba\u00b2 newgrp [\u2212] [group] \u00e6\u00e8\u00bf\u00b0 The newgrp command is used to change the current group ID during a login session. If the optional \u2212 flag is given, the user&#8217;s environment will be reinitialized as though the user had logged in, otherwise the current environment, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[962],"tags":[964,1282,1284],"class_list":["post-4265","post","type-post","status-publish","format-standard","hentry","category-1-comandos-generales","tag-964","tag-newgrp","tag-zh_cn"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4265","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=4265"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4265\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}