{"id":652,"date":"2026-08-06T10:53:03","date_gmt":"2026-08-06T01:53:03","guid":{"rendered":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/652"},"modified":"2026-08-06T10:53:03","modified_gmt":"2026-08-06T01:53:03","slug":"newgp%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae%e6%a6%82%e8%a6%81%e3%81%a8%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/652","title":{"rendered":"newgp\u30b3\u30de\u30f3\u30c9\u306e\u6982\u8981\u3068\u4f7f\u3044\u65b9"},"content":{"rendered":"<h2>newgp\u30b3\u30de\u30f3\u30c9\u3068\u306f<\/h2>\n<p><strong>newgp<\/strong>\u306f\u3001Linux\/Unix \u7cfb\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067\u65b0\u3057\u3044\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u5f93\u6765\u306e <code>groupadd<\/code> \u30b3\u30de\u30f3\u30c9\u3068\u540c\u7b49\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u304c\u3001\u7279\u5b9a\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3084\u30ab\u30b9\u30bf\u30e0\u30b9\u30af\u30ea\u30d7\u30c8\u74b0\u5883\u3067\u7c21\u6613\u5316\u3055\u308c\u305f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u3057\u3066\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h2>\n<p>\u591a\u304f\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u901a\u3058\u3066 <strong>newgp<\/strong> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>Debian\/Ubuntu \u7cfb:\n<pre><code>sudo apt-get update && sudo apt-get install newgp<\/code><\/pre>\n<\/li>\n<li>RHEL\/CentOS \u7cfb:\n<pre><code>sudo yum install newgp<\/code><\/pre>\n<\/li>\n<li>Arch Linux \u7cfb:\n<pre><code>sudo pacman -S newgp<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n<p>\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u5f62\u306f\u3001\u4f5c\u6210\u3057\u305f\u3044\u30b0\u30eb\u30fc\u30d7\u540d\u3092\u5f15\u6570\u306b\u6e21\u3059\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre><code>newgp developers<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u306b <code>developers<\/code> \u3068\u3044\u3046\u540d\u524d\u306e\u65b0\u3057\u3044\u30b0\u30eb\u30fc\u30d7\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u4e3b\u306a\u30aa\u30d7\u30b7\u30e7\u30f3<\/h2>\n<ul>\n<li><strong>-g, &#8211;gid &lt;gid&gt;<\/strong>\uff1a \u30b0\u30eb\u30fc\u30d7 ID \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3057\u305f\u5834\u5408\u306f\u81ea\u52d5\u5272\u308a\u5f53\u3066\u3002<\/li>\n<li><strong>-r, &#8211;system<\/strong>\uff1a \u30b7\u30b9\u30c6\u30e0\u30b0\u30eb\u30fc\u30d7\u3068\u3057\u3066\u4f5c\u6210\u3057\u307e\u3059\u3002ID \u304c 100\u4ee5\u4e0b \u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<\/li>\n<li><strong>-f, &#8211;force<\/strong>\uff1a \u540c\u540d\u306e\u30b0\u30eb\u30fc\u30d7\u304c\u65e2\u306b\u5b58\u5728\u3057\u3066\u3082\u30a8\u30e9\u30fc\u3092\u7121\u8996\u3057\u3066\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<\/li>\n<li><strong>-h, &#8211;help<\/strong>\uff1a \u30d8\u30eb\u30d7\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>\u4f7f\u7528\u4f8b<\/h2>\n<h3>\u4f8b1\uff1a\u6307\u5b9a\u3057\u305f GID \u3067\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210<\/h3>\n<pre><code>newgp -g 1500 analytics<\/code><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001GID 1500 \u306e <code>analytics<\/code> \u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h3>\u4f8b2\uff1a\u30b7\u30b9\u30c6\u30e0\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210<\/h3>\n<pre><code>sudo newgp -r dbadmin<\/code><\/pre>\n<p>\u30b7\u30b9\u30c6\u30e0\u6a29\u9650\u3067 <code>dbadmin<\/code> \u30b0\u30eb\u30fc\u30d7\u304c\u4f5c\u6210\u3055\u308c\u3001ID \u306f\u81ea\u52d5\u7684\u306b 100 \u4ee5\u4e0b\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u4f8b3\uff1a\u65e2\u5b58\u30b0\u30eb\u30fc\u30d7\u3092\u5f37\u5236\u7684\u306b\u4e0a\u66f8\u304d<\/h3>\n<pre><code>sudo newgp -f developers<\/code><\/pre>\n<p>\u540c\u540d\u306e\u30b0\u30eb\u30fc\u30d7\u304c\u5b58\u5728\u3057\u3066\u3082\u3001\u5c5e\u6027\uff08\u4f8b: GID\uff09\u3092\u518d\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h2>\u6ce8\u610f\u70b9<\/h2>\n<ul>\n<li>\u7ba1\u7406\u8005\u6a29\u9650\uff08<code>root<\/code> \u307e\u305f\u306f <code>sudo<\/code>\uff09\u304c\u5fc5\u8981\u3067\u3059\u3002\u6a29\u9650\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u65e2\u5b58\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u4e0a\u66f8\u304d\u3059\u308b <code>-f<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u3084\u30b5\u30fc\u30d3\u30b9\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u4f7f\u7528\u306f\u614e\u91cd\u306b\u3002<\/li>\n<li>\u30b7\u30b9\u30c6\u30e0\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b\u969b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u671f\u5f85\u3059\u308b GID \u7bc4\u56f2\uff08\u901a\u5e38\u306f 0\u301c99\uff09\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<h2>\u307e\u3068\u3081<\/h2>\n<p><strong>newgp<\/strong> \u306f\u3001\u30b7\u30f3\u30d7\u30eb\u304b\u3064\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u306a\u30b0\u30eb\u30fc\u30d7\u4f5c\u6210\u30c4\u30fc\u30eb\u3067\u3059\u3002\u57fa\u672c\u7684\u306a\u7528\u6cd5\u306f <code>newgp &lt;groupname&gt;<\/code> \u3067\u3059\u304c\u3001<code>-g<\/code>\u3001<code>-r<\/code>\u3001<code>-f<\/code> \u3068\u3044\u3063\u305f\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u67d4\u8edf\u306b\u30b0\u30eb\u30fc\u30d7\u7ba1\u7406\u304c\u53ef\u80fd\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306f\u3001\u9069\u5207\u306a\u6a29\u9650\u3068\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u3001\u5b89\u5168\u306b\u5229\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>newgp\u30b3\u30de\u30f3\u30c9\u3068\u306f newgp\u306f\u3001Linux\/Unix \u7cfb\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067\u65b0\u3057\u3044\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u5f93\u6765\u306e groupadd \u30b3\u30de\u30f3\u30c9\u3068\u540c\u7b49\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u304c\u3001\u7279\u5b9a\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3084\u30ab\u30b9\u30bf\u30e0\u30b9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-652","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/comments?post=652"}],"version-history":[{"count":0,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/652\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/media?parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/categories?post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/tags?post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}