{"id":3572,"date":"2022-10-23T03:32:10","date_gmt":"2022-10-22T18:32:10","guid":{"rendered":"https:\/\/417.run\/?p=3572"},"modified":"2022-12-02T02:12:00","modified_gmt":"2022-12-01T17:12:00","slug":"add-sudoers","status":"publish","type":"post","link":"https:\/\/417.run\/linux\/add-sudoers\/","title":{"rendered":"sudo\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\uff01\u3010~~ is not in the sudoers file.  This incident will be reported.\u3011"},"content":{"rendered":"<pre><code>~~ is not in the sudoers file.  This incident will be reported.<\/code><\/pre>\n<h2>sudoers\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u3069\u3046\u3084\u3089\u3001<code>\/etc\/sudoers<\/code>\u306b\u8ffd\u52a0\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u307f\u305f\u3044<\/p>\n<pre><code class=\"language-config\">tanaka  ALL=(ALL:ALL) ALL<\/code><\/pre>\n<h2>\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u30b0\u30eb\u30fc\u30d7\u3067\u3082\u8a31\u53ef\u3055\u308c\u3066\u305f\u306e\u3067\u3001admin\u30b0\u30eb\u30fc\u30d7\u304bsudo\u30b0\u30eb\u30fc\u30d7\u306b\u3057\u305f\u3089sudo\u304c\u4f7f\u3048\u305d\u3046<\/p>\n<pre><code class=\"language-config\"># Members of the admin group may gain root privileges\n%admin ALL=(ALL) ALL\n\n# Allow members of group sudo to execute any command\n%sudo   ALL=(ALL:ALL) ALL<\/code><\/pre>\n<p>\u7530\u4e2d\u541b\u3092admin\u306b\u52a0\u3048\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-shell\">usermod -aG admin tanaka<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>~~ is not in the sudoers file. This incident will be reported. sudoers\u306b\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5 \u3069\u3046\u3084\u3089\u3001\/etc\/sudoers\u306b\u8ffd\u52a0\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u307f\u305f\u3044  &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[83],"tags":[],"class_list":{"0":"post-3572","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-linux","7":"nothumb"},"_links":{"self":[{"href":"https:\/\/417.run\/wp-json\/wp\/v2\/posts\/3572"}],"collection":[{"href":"https:\/\/417.run\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/417.run\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/comments?post=3572"}],"version-history":[{"count":5,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/posts\/3572\/revisions"}],"predecessor-version":[{"id":3723,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/posts\/3572\/revisions\/3723"}],"wp:attachment":[{"href":"https:\/\/417.run\/wp-json\/wp\/v2\/media?parent=3572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/categories?post=3572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/tags?post=3572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}