{"id":703,"date":"2016-08-04T18:00:20","date_gmt":"2016-08-04T09:00:20","guid":{"rendered":"https:\/\/www.agent-grow.com\/self20percent\/?p=703"},"modified":"2016-11-29T14:20:41","modified_gmt":"2016-11-29T05:20:41","slug":"make-a-practical-environment-on-raspberry-pi-3","status":"publish","type":"post","link":"https:\/\/www.agent-grow.com\/self20percent\/2016\/08\/04\/make-a-practical-environment-on-raspberry-pi-3\/","title":{"rendered":"Raspberry Pi 3 Model B\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fCentOS7\u3092\u5b9f\u7528\u7684\u306a\u69cb\u6210\u306b\u4ed5\u7acb\u3066\u4e0a\u3052\u305f"},"content":{"rendered":"<h1>\u3082\u5c11\u3057\u3042\u3068\u3061\u3087\u3063\u3068\uff01<\/h1>\n<p>\u524d\u56de\u306fOS\u7b49\u3005\u306e\u6700\u4f4e\u9650\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u304a\u3053\u306a\u3063\u305f\u308f\u3051\u3067\u3059\u304c\u2026\u2026\u3002<\/p>\n<div class=\"kwout\" style=\"text-align: center;\"><a href=\"https:\/\/www.agent-grow.com\/self20percent\/2016\/08\/03\/initial-setup-centos7-for-raspberry-pi-3-model-b\/\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/kwout.com\/cutout\/9\/kc\/5t\/94x_bor_rou_sha_w300.jpg\" alt=\"https:\/\/www.agent-grow.com\/self20percent\/2016\/08\/03\/initial-setup-centos7-for-raspberry-pi-3-model-b\/\" title=\"Raspberry Pi 3 Model B\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fCentOS7\u3092\u521d\u671f\u8a2d\u5b9a\u3059\u308b\u8a71 \u2013 \u81ea\u4e3b\u768420%\u308b\u3045\u308b\" width=\"300\" height=\"136\" style=\"border: none;\" \/><\/a><\/p>\n<p style=\"margin-top: 10px; text-align: center;\"><a href=\"https:\/\/www.agent-grow.com\/self20percent\/2016\/08\/03\/initial-setup-centos7-for-raspberry-pi-3-model-b\/\">Raspberry Pi 3 Model B\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fCentOS7\u3092\u521d\u671f\u8a2d\u5b9a\u3059\u308b\u8a71 \u2013 \u81ea\u4e3b\u768420%\u308b\u3045\u308b<\/a> via <a href=\"http:\/\/kwout.com\/quote\/9kc5t94x\">kwout<\/a><\/p>\n<\/div>\n<p>\u5b9f\u7528\u7684\u306b\u4f7f\u304a\u3046\u3068\u3059\u308b\u306a\u3089\u3001\u3082\u3046\u4e00\u624b\u9593\u4e8c\u624b\u9593\u5fc5\u8981\u306b\u306a\u308b\u308f\u3051\u3067\u2026\u2026\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u30a2\u30ec\u3092\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u306a\u304a\u3001\u4eca\u56de\u3082Raspberry Pi 3 Model B\u4e0a\u3067\u52d5\u3044\u3066\u3044\u308bCentOS 7\u306b\u5bfe\u3057\u3066\u3084\u3063\u3066\u3044\u304f\u308f\u3051\u3067\u3059\u304c\u2026\u2026\u4eca\u56de\u306f\u30e9\u30ba\u30d1\u30a4\u56fa\u6709\u306e\u30a2\u30ec\u306f\u306a\u3044\u306f\u305a\u3067\u3059\u3002<\/p>\n<h1>\u307e\u305a\u306f\u30e6\u30fc\u30b6\u4f5c\u6210\u3060\u3088\u306d\u301c<\/h1>\n<p>\u3044\u307e\u307e\u3067\u305a\u3063\u3068root\u30e6\u30fc\u30b6\u3067\u51e6\u7406\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u2026\u2026\u3055\u3059\u304c\u306b\u2026\u2026\u3053\u308c\u306f\u2026\u2026\u30de\u30ba\u30a4\u306e\u3067\u2026\u2026\u3002<\/p>\n<p>\u4f5c\u696d\u7528\u306e\u4e00\u822c\u30e6\u30fc\u30b6\u3092\u3064\u304f\u308a\u307e\u305b\u3045\u3002<\/p>\n<p>\u666e\u901a\u306b\u300cuseradd\u300d\u3067\u4f5c\u3063\u3066\u3044\u3063\u3066\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u500b\u4eba\u7684\u306b\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u611b\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u4eca\u56de\u3082\u305d\u308c\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f<a href=\"https:\/\/gist.github.com\/hayakawa\/ddccad852d3493eff34e\">gist<\/a>\u306b\u8f09\u3063\u3051\u3066\u3042\u308b\u306e\u3067\u3001\u4f7f\u3063\u3066\u307f\u305f\u3044\u3063\u3066\u3044\u3046\u65b9\u306f\u52dd\u624b\u306b\u3069\u3046\u305e\u3002<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_1');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_1');\" ><sup id=\"footnote_plugin_tooltip_703_1_1\" class=\"footnote_plugin_tooltip_text\">1)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_1\" class=\"footnote_tooltip\">99\u5272\u306e\u4eba\u306f\u3053\u3093\u306a\u30af\u30bd\u307f\u305f\u3044\u306a\u3082\u306e\u4f7f\u3046\u5fc5\u8981\u306f\u306a\u3044\u3067\u3059<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_1').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_1', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script><\/p>\n<p>\u307e\u305a\u300c\/root\/script\u300d\u306a\u3093\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3066\u3001\u305d\u306e\u4e2d\u306b\u5148\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u300cusrgrp_add.sh\u300d\u306a\u3093\u3066\u540d\u524d\u3067\u4fdd\u5b58\u3057\u3066\u307f\u308b\u308f\u3051\u3067\u3059\u3088\u3002\u4fdd\u5b58\u3057\u305f\u305d\u3044\u3064\u306b\u5b9f\u884c\u6a29\u9650\u306a\u3093\u3066\u4ed8\u4e0e\u3057\u3066\u307f\u305f\u308a\u3057\u3066\u306d\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@centos-rpi3 ~]# cd ~\r\n&#x5B;root@centos-rpi3 ~]# mkdir script\r\n&#x5B;root@centos-rpi3 ~]# cd script\/\r\n&#x5B;root@centos-rpi3 script]# curl 'https:\/\/gist.githubusercontent.com\/hayakawa\/ddccad852d3493eff34e\/raw\/4497fc1adcc1cb1f26870acab04ae1f0af1bc3f0\/usradd.sh' &gt; .\/usrgrp_add.sh\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100  2774  100  2774    0     0   2981      0 --:--:-- --:--:-- --:--:--  2982\r\n&#x5B;root@centos-rpi3 script]# chmod 755 .\/usrgrp_add.sh\r\n&#x5B;root@centos-rpi3 script]#\r\n<\/pre>\n<p>\u3093\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u300cgroup.list\u300d\u3068\u300cuser.list\u300d\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u3068\u3002<\/p>\n<p>group.list\u306e\u65b9\u306f\u300c{gid}\uff1a{groupname}\u300d\u3063\u3066\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u30011\u884c1\u30b0\u30eb\u30fc\u30d7\u306b\u306a\u308b\u3088\u3046\u66f8\u3044\u3066\u3044\u3051\u3070OK\u3002\u4f8b\u3048\u3070\u3001\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n100:group1\r\n101:group2\r\n<\/pre>\n<p>user.list\u3063\u3066\u65b9\u306f\u300c{uid}:{username}:{groupname}\u300d\u3063\u3066\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u30011\u884c1\u30e6\u30fc\u30b6\u306b\u306a\u308b\u3088\u3046\u66f8\u3044\u3066\u3044\u3051\u3070OK\u3002\u4f8b\u3048\u3070\u3001\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n100:user1:group1\r\n101:user2:group2\r\n<\/pre>\n<p>\u305d\u306e\u5f8c\u306b\u3001<code>sh .\/usrgrp_add.sh<\/code>\u3068\u3067\u3082\u3057\u3066\u304a\u3051\u3070\u3001\u3044\u3044\u611f\u3058\u306b\u30e6\u30fc\u30b6\u3068\u30b0\u30eb\u30fc\u30d7\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002<\/p>\n<h1>\u4f5c\u696d\u30e6\u30fc\u30b6\u304c\u516c\u958b\u9375\u8a8d\u8a3c\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3088\u3046\uff01<\/h1>\n<p>\u4f5c\u696d\u30e6\u30fc\u30b6\u304c\u3067\u304d\u305f\u306e\u3067\u3001\u516c\u958b\u9375\u8a8d\u8a3c\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u305b\u3045\u3002\u2026\u2026\u3044\u3061\u3044\u3061\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\u3059\u308b\u306e\u30c0\u30eb\u3044\u3057\uff3f\u30ce\u4e59(\u3001\u30f3\u3001)\uff3f<\/p>\n<p>\u6700\u521d\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u3057\u3066\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@centos-rpi3 script]# passwd user1\r\n\u30e6\u30fc\u30b6\u30fc user1 \u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3002\r\n\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9:\r\n\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044:\r\npasswd: \u3059\u3079\u3066\u306e\u8a8d\u8a3c\u30c8\u30fc\u30af\u30f3\u304c\u6b63\u3057\u304f\u66f4\u65b0\u3067\u304d\u307e\u3057\u305f\u3002\r\n<\/pre>\n<p>\u300csu\u300d\u3067\u4f5c\u696d\u30e6\u30fc\u30b6\u306b\u306a\u3063\u3066\u3001ssh\u95a2\u9023\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u3001\u516c\u958b\u9375\u3092\u6240\u5b9a\u306e\u65b9\u6cd5\u3067\u683c\u7d0d\u3057\u3066\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@centos-rpi3 script]# su - user1\r\n&#x5B;user1@centos-rpi3 ~]$ mkdir .ssh\r\n&#x5B;user1@centos-rpi3 ~]$ vi .\/.ssh\/authorized_keys\r\n\uff08\u3053\u3053\u3067vi\u3092\u4f7f\u3063\u3066\u516c\u958b\u9375\u3092\u8ffd\u52a0\u3059\u308b\uff09\r\n&#x5B;user1@centos-rpi3 ~]$ chown -R user1.group1 .\/.ssh\/\r\n&#x5B;user1@centos-rpi3 ~]$ chmod 700 .\/.ssh &amp;&amp; chmod 600 .\/.ssh\/authorized_keys\r\n&#x5B;user1@centos-rpi3 ~]$\r\n<\/pre>\n<p>\u3053\u306e\u72b6\u614b\u3067\u3001\u65b0\u898f\u306b\u30bf\u30fc\u30df\u30ca\u30eb\u30a8\u30df\u30e5\u30ec\u30fc\u30bf<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_2');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_2');\" ><sup id=\"footnote_plugin_tooltip_703_1_2\" class=\"footnote_plugin_tooltip_text\">2)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_2\" class=\"footnote_tooltip\">Mac\u306a\u3089\u300c\u30bf\u30fc\u30df\u30ca\u30eb\u300d\u3001Win\u306a\u3089\u300cTera Term\u300d\u3068\u304b\u3068\u304b<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_2').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_2', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script>\u3092\u8d77\u52d5\u3057\u3066\u3001\u516c\u958b\u9375\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u624b\u5143\u306eMac\u304b\u3089\u3084\u3063\u3066\u307f\u305f\u4f8b\u304c\u3053\u3061\u3089\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u7b49\u306e\u5165\u529b\u306a\u3057\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u3066\u3044\u307e\u3059\u306d\uff01<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;Mac]$ ssh user1@192.0.2.100\r\nLast login: Wed Aug  3 HH:mm:ss YYYY\r\n&#x5B;user1@centos-rpi3 ~]$\r\n<\/pre>\n<h1>sudo\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3088\u3046\uff01<\/h1>\n<p>\u57fa\u672c\u7684\u306b\u306f\u4e00\u822c\u30e6\u30fc\u30b6\u3067\u4f5c\u696d\u3057\u3066\u3001\u5fc5\u8981\u306a\u3068\u304d\u3060\u3051root\u30e6\u30fc\u30b6\u306e\u6a29\u9650\u3067\u4f5c\u696d\u3059\u308b\u306e\u304c\u666e\u901a\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u5927\u62b5\u306e\u5834\u5408\u3001\u300csudo\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u308f\u3051\u3067\u3059\u304c\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo ls \/\r\n\r\nWe trust you have received the usual lecture from the local System\r\nAdministrator. It usually boils down to these three things:\r\n\r\n    #1) Respect the privacy of others.\r\n    #2) Think before you type.\r\n    #3) With great power comes great responsibility.\r\n\r\n&#x5B;sudo] password for user1:\r\nuser1 \u306f sudoers \u30d5\u30a1\u30a4\u30eb\u5185\u306b\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u4e8b\u8c61\u306f\u8a18\u9332\u30fb\u5831\u544a\u3055\u308c\u307e\u3059\u3002\r\n<\/pre>\n<p>\u3063\u3066\u611f\u3058\u3067\u62d2\u5426\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3082\u305d\u306e\u306f\u305a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u300cwheel\u300d\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3057\u3066\u3044\u308b\u304broot\u30e6\u30fc\u30b6\u4ee5\u5916\u306f\u4f7f\u3048\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u5148\u307b\u3069\u4f5c\u3063\u305f\u30b0\u30eb\u30fc\u30d7\u306e\u3046\u3061\u3001\u300cgroup1\u300d\u306b\u5c5e\u3059\u308b\u4eba\u9054\u3082sudo\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>root\u30e6\u30fc\u30b6\u3067\u300c\/etc\/sudoers.d\u300d\u306b\u79fb\u52d5\u3057\u3066\u3001\u9069\u5f53\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@centos-rpi3 script]# cd \/etc\/sudoers.d\/\r\n&#x5B;root@centos-rpi3 sudoers.d]# vi .\/corplab\r\n<\/pre>\n<p>vi\u30b3\u30de\u30f3\u30c9\u3067\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3092\u66f8\u304d\u8fbc\u3093\u3067\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n%group1\tALL=(ALL)\tALL\r\n<\/pre>\n<p>\u3053\u306e\u3042\u3068\u3001\u300cgroup1\u300d\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u300csudo\u300d\u30b3\u30de\u30f3\u30c9\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3046\u307e\u304f\u8a2d\u5b9a\u3067\u304d\u3066\u3044\u308c\u3070\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30a2\u30ec\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo ls \/\r\n&#x5B;sudo] password for user1:\r\nbin  boot  boot.bak  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run\tsbin  srv  sys\ttmp  usr  var\r\n&#x5B;user1@centos-rpi3 ~]$\r\n<\/pre>\n<p>\u3084\u3063\u305f\u306d\uff01<\/p>\n<h1>su\u30b3\u30de\u30f3\u30c9\u3082\u5236\u9650\u3057\u3088\u3046\uff01<\/h1>\n<p>\u5fc5\u8981\u306a\u3068\u304d\u3060\u3051root\u30e6\u30fc\u30b6\u306e\u6a29\u9650\u3092\u4f7f\u3046\u305f\u3081\u306b\u306f\u3001\u3082\u3046\u3072\u3068\u3064\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u3001\u300csu\u300d\u30b3\u30de\u30f3\u30c9\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u3044\u3064\u306froot\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u77e5\u3063\u3066\u3044\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u4e00\u5fdc\u5236\u9650\u3057\u3066\u304a\u304d\u305f\u3044\u3067\u3059\u3088\u306d\u3047\u2026\u2026\u3002<\/p>\n<p>\u3063\u3066\u3053\u3068\u3067\u3001root\u30e6\u30fc\u30b6\u3067\u304a\u3082\u3080\u308d\u306b\u300c\/etc\/login.defs\u300d\u3092vi\u3042\u305f\u308a\u3067\u958b\u3044\u3066\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@centos-rpi3 sudoers.d]# vi \/etc\/login.defs\r\n<\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u3042\u305f\u308a\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306a1\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3063\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nSU_WHEEL_ONLY   yes\r\n<\/pre>\n<p>\u7d9a\u3044\u3066\u3001root\u30e6\u30fc\u30b6\u3067\u300c\/etc\/pam.d\/su\u300d\u3092vi\u3042\u305f\u308a\u3067\u958b\u3044\u3066\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@centos-rpi3 ~]# vi \/etc\/pam.d\/su\r\n<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u6240\u3092\u2026\u2026<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#auth           required        pam_wheel.so use_uid\r\n<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002\u5148\u982d\u306e\u300c#\u300d\u3092\u6d88\u3059\u3060\u3051\u3067\u3059\u306d\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nauth           required        pam_wheel.so use_uid\r\n<\/pre>\n<p>\u6700\u5f8c\u306b\u518d\u8d77\u52d5\u3059\u308c\u3070\u3001\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@centos-rpi3 ~]# shutdown -r now\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001\u300cwheel\u300d\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3057\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\u306f\u300csu\u300d\u3092\u4f7f\u3048\u306a\u304f\u306a\u308b<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_3');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_3');\" ><sup id=\"footnote_plugin_tooltip_703_1_3\" class=\"footnote_plugin_tooltip_text\">3)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_3\" class=\"footnote_tooltip\">\u3068\u306f\u3044\u3048\u3001\u300csudo\u300d\u30b3\u30de\u30f3\u30c9\u3055\u3048\u4f7f\u3048\u308c\u3070\u3001\u300csudo su -\u300d\u307f\u305f\u3044\u306a\u306e\u306f\u666e\u901a\u306b\u4f7f\u3048\u308b<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_3').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_3', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script>\u306e\u3067\u3001\u300csu\u300d\u3092\u8a31\u53ef\u3057\u305f\u3044\u30e6\u30fc\u30b6\u306e\u30b5\u30d6\u30b0\u30eb\u30fc\u30d7\u306b\u300cwheel\u300d\u30b0\u30eb\u30fc\u30d7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u300cuser1\u300d\u30e6\u30fc\u30b6\u3092\u300cwheel\u300d\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3055\u305b\u305f\u3044\u3068\u304d\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@centos-rpi3 ~]# usermod -aG wheel user1\r\n<\/pre>\n<p>\u305f\u3081\u3057\u306b\u3001\u300cwheel\u300d\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3057\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066su\u3092\u4f7f\u3063\u3066\u307f\u308b\u3068\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user2@centos-rpi3 ~]$ su -\r\n\u30d1\u30b9\u30ef\u30fc\u30c9:\r\nsu: \u62d2\u5426\u3055\u308c\u305f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\r\n<\/pre>\n<p>\u3068\u3001\u5931\u6557\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u6240\u5c5e\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066su\u3092\u4f7f\u3063\u3066\u307f\u308b\u3068\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ su -\r\n\u30d1\u30b9\u30ef\u30fc\u30c9:\r\n\u6700\u7d42\u30ed\u30b0\u30a4\u30f3: YYYY\/MM\/DD (week) HH:mm:ss UTC\u65e5\u6642 pts\/1\r\n&#x5B;root@centos-rpi3 ~]#\r\n<\/pre>\n<p>\u3068\u3001\u7121\u4e8b\u306broot\u30e6\u30fc\u30b6\u306b\u306a\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3068\u3055\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u4eca\u56de\u69cb\u7bc9\u4e2d\u306e\u30b5\u30fc\u30d0\u3067\u306f\u3001\u300cwheel\u300d\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u306f\u4f5c\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u5fc5\u8981\u306a\u3089\u300csudo\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u904b\u7528<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_4');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_4');\" ><sup id=\"footnote_plugin_tooltip_703_1_4\" class=\"footnote_plugin_tooltip_text\">4)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_4\" class=\"footnote_tooltip\">\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u5fc5\u8981\u306a\u3089\u300csudo su -\u300d\u304c\u3067\u304d\u3061\u3083\u3046\u306e\u3067\u3002<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_4').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_4', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script>\u3067\u884c\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h1>\u4e0d\u8981\u306a\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u3088\u3046\uff01<\/h1>\n<p>\u73fe\u5728\u8d77\u52d5\u4e2d\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo systemctl list-units --type=service\r\n  UNIT                               LOAD   ACTIVE SUB     DESCRIPTION\r\n\u25cf auditd.service                     loaded failed failed  Security Auditing Service\r\n  chronyd.service                    loaded active running NTP client\/server\r\n  crond.service                      loaded active running Command Scheduler\r\n  dbus.service                       loaded active running D-Bus System Message Bus\r\n  firewalld.service                  loaded active running firewalld - dynamic firewall daemon\r\n  getty@tty1.service                 loaded active running Getty on tty1\r\n  irqbalance.service                 loaded active running irqbalance daemon\r\n\u25cf kdump.service                      loaded failed failed  Crash recovery kernel arming\r\n  kmod-static-nodes.service          loaded active exited  Create list of required static device nodes for the current kernel\r\n\u25cf network.service                    loaded failed failed  LSB: Bring up\/down networking\r\n  NetworkManager.service             loaded active running Network Manager\r\n  polkit.service                     loaded active running Authorization Manager\r\n  postfix.service                    loaded active running Postfix Mail Transport Agent\r\n  rhel-dmesg.service                 loaded active exited  Dump dmesg to \/var\/log\/dmesg\r\n  rhel-readonly.service              loaded active exited  Configure read-only root support\r\n  rsyslog.service                    loaded active running System Logging Service\r\n  sshd.service                       loaded active running OpenSSH server daemon\r\n  systemd-journal-flush.service      loaded active exited  Flush Journal to Persistent Storage\r\n  systemd-journald.service           loaded active running Journal Service\r\n  systemd-logind.service             loaded active running Login Service\r\n  systemd-random-seed.service        loaded active exited  Load\/Save Random Seed\r\n  systemd-readahead-collect.service  loaded active exited  Collect Read-Ahead Data\r\n  systemd-readahead-replay.service   loaded active exited  Replay Read-Ahead Data\r\n  systemd-remount-fs.service         loaded active exited  Remount Root and Kernel File Systems\r\n  systemd-sysctl.service             loaded active exited  Apply Kernel Variables\r\n  systemd-tmpfiles-setup-dev.service loaded active exited  Create Static Device Nodes in \/dev\r\n\u25cf systemd-tmpfiles-setup.service     loaded failed failed  Create Volatile Files and Directories\r\n  systemd-udev-trigger.service       loaded active exited  udev Coldplug all Devices\r\n  systemd-udevd.service              loaded active running udev Kernel Device Manager\r\n  systemd-update-utmp.service        loaded active exited  Update UTMP about System Boot\/Shutdown\r\n  systemd-user-sessions.service      loaded active exited  Permit User Sessions\r\n  systemd-vconsole-setup.service     loaded active exited  Setup Virtual Console\r\n  tuned.service                      loaded active running Dynamic System Tuning Daemon\r\n  wpa_supplicant.service             loaded active running WPA Supplicant daemon\r\n\r\nLOAD   = Reflects whether the unit definition was properly loaded.\r\nACTIVE = The high-level unit activation state, i.e. generalization of SUB.\r\nSUB    = The low-level unit activation state, values depend on unit type.\r\n\r\n34 loaded units listed. Pass --all to see loaded but inactive units, too.\r\nTo show all installed unit files use 'systemctl list-unit-files'.\r\n<\/pre>\n<p>\u2026\u2026\u306f\u3044\u3002\u3044\u308d\u3044\u308d\u51fa\u3066\u304d\u305f\u3057\u3001failed\u306a\u30b5\u30fc\u30d3\u30b9\u3082\u3044\u304f\u3064\u304b\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u2026\u2026\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u30b7\u30b9\u30c6\u30e0\u304c\u8a8d\u8b58\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u985e\u306e\u4e00\u89a7\u306f\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30c1\u30a7\u30c3\u30af\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ systemctl list-unit-files --type=service\r\n<\/pre>\n<p>\u3071\u3063\u3068\u898b\u3001\u300cpostfix.service\u300d\u3068\u300cwpa_supplicant.service\u300d\u306f\u4e0d\u8981\u305d\u3046\u306a\u306e\u3067\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo systemctl stop postfix\r\n&#x5B;user1@centos-rpi3 ~]$ sudo systemctl disable postfix\r\n&#x5B;user1@centos-rpi3 ~]$ sudo systemctl stop wpa_supplicant\r\n&#x5B;user1@centos-rpi3 ~]$ sudo systemctl disable wpa_supplicant\r\n<\/pre>\n<p>\u3068\u3057\u3066\u304a\u3051\u3070\u3088\u3055\u3052\u3002<\/p>\n<p>\u3053\u308c\u3067\u518d\u8d77\u52d5\u6642\u306b\u4e0d\u8981\u306a\u30b5\u30fc\u30d3\u30b9\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u308b\u306f\u305a\u3002<\/p>\n<h1>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3057\u3088\u3046\uff01<\/h1>\n<p>\u7d9a\u3044\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002CentOS 6\u306e\u9803\u306f\u3001iptables(Netfilter)\u3067\u3057\u305f\u304c\u3001CentOS 7\u3060\u3068firewalld\u3067\u3059\u306d\u3002<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_5');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_5');\" ><sup id=\"footnote_plugin_tooltip_703_1_5\" class=\"footnote_plugin_tooltip_text\">5)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_5\" class=\"footnote_tooltip\">\u3082\u3063\u3068\u3082iptables\u3092\u4f7f\u3046\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3057\u3001firewalld\u306e\u4e2d\u8eab\u306fiptables\u304c\u52d5\u3044\u3066\u308b\u3063\u3066\u8a71\u3082\u3042\u308a\u307e\u3059\u304c\u2026\u2026<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_5').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_5', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script><\/p>\n<p>\u307e\u305a\u306ffirewalld\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ systemctl status firewalld\r\n\u25cf firewalld.service - firewalld - dynamic firewall daemon\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/firewalld.service; enabled; vendor preset: enabled)\r\n   Active: active (running) since \u6728 1970-01-01 00:00:09 UTC; 46 years 7 months ago\r\n Main PID: 214 (firewalld)\r\n   CGroup: \/system.slice\/firewalld.service\r\n           \u2514\u2500214 \/usr\/bin\/python -Es \/usr\/sbin\/firewalld --nofork --nopid\r\n<\/pre>\n<p>\u8d77\u52d5\u3057\u3066\u308b\u3063\u307d\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u3093\u306a\u8868\u793a\u306b\u306a\u3063\u3066\u306a\u3051\u308c\u3070\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo systemctl enable firewalld\r\n&#x5B;user1@centos-rpi3 ~]$ sudo systemctl start firewalld\r\n<\/pre>\n<p>\u3063\u3066\u3057\u3066\u304a\u3051\u3070OK\u3067\u3059\u306d\u3002<\/p>\n<h2>\u8a31\u53ef\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3045<\/h2>\n<p>\u73fe\u5728\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a\u304c\u3069\u3046\u306a\u3063\u3066\u308b\u304b\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ firewall-cmd --list-all\r\npublic (default, active)\r\n  interfaces: eth0\r\n  sources:\r\n  services: dhcpv6-client ssh\r\n  ports:\r\n  masquerade: no\r\n  forward-ports:\r\n  icmp-blocks:\r\n  rich rules:\r\n\r\n&#x5B;user1@centos-rpi3 ~]$\r\n<\/pre>\n<p>\u6709\u52b9\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3067\u3042\u308b\u300ceth0\u300d\u306f\u300cpublic\u300d\u3063\u3066\u30be\u30fc\u30f3\u306b\u6240\u5c5e\u3057\u3066\u3044\u3066\u3001\u300cdhcpv6-client\u300d\u3068\u300cssh\u300d\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a31\u53ef\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u540d\u79f0\u3067\u6307\u5b9a\u3059\u308b<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_6');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_6');\" ><sup id=\"footnote_plugin_tooltip_703_1_6\" class=\"footnote_plugin_tooltip_text\">6)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_6\" class=\"footnote_tooltip\">\u30dd\u30fc\u30c8\u306a\u3069\u306f\u500b\u5225\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08\/usr\/lib\/firewalld\/services\/ \u914d\u4e0b\u3001ICMP\u7cfb\u306f\/usr\/lib\/firewalld\/icmptypes \u914d\u4e0b\uff09\u306b\u66f8\u3044\u3066\u3042\u308b\u306b\u3087<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_6').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_6', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script>\u306e\u3067\u3001\u4f55\u304c\u6307\u5b9a\u53ef\u80fd\u304b\u3092\u307f\u3066\u307f\u307e\u305b\u3045\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ firewall-cmd --get-services\r\nRH-Satellite-6 amanda-client bacula bacula-client dhcp dhcpv6 dhcpv6-client dns freeipa-ldap freeipa-ldaps freeipa-replication ftp high-availability http https imaps ipp ipp-client ipsec iscsi-target kerberos kpasswd ldap ldaps libvirt libvirt-tls mdns mountd ms-wbt mysql nfs ntp openvpn pmcd pmproxy pmwebapi pmwebapis pop3s postgresql proxy-dhcp radius rpc-bind rsyncd samba samba-client smtp ssh telnet tftp tftp-client transmission-client vdsm vnc-server wbem-https\r\n<\/pre>\n<p>\u8e0f\u307e\u3048\u305f\u4e0a\u3067\u2026\u2026<\/p>\n<ul>\n<li>dhcpv6-client\u306f\u3044\u3089\u306a\u3044\u304b\u306a\u301c<\/li>\n<li>http, https\u306f\u6709\u52b9\u306b\u3057\u3066\u304a\u304d\u305f\u3044\u304b\u306a\u301c<\/li>\n<li>\u5f8c\u306f\u5fc5\u8981\u306b\u306a\u3063\u305f\u3089\u9069\u6642\u6709\u52b9\u306b\u3059\u308c\u3070\u3044\u3044\u304b\u306a\u301c<\/li>\n<\/ul>\n<p>\u3063\u3066\u611f\u3058\u3067\u884c\u304d\u307e\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo firewall-cmd --remove-service=dhcpv6-client --zone=public --permanent\r\nsuccess\r\n&#x5B;user1@centos-rpi3 ~]$ sudo firewall-cmd --add-service=http --zone=public --permanent\r\nsuccess\r\n&#x5B;user1@centos-rpi3 ~]$ sudo firewall-cmd --add-service=https --zone=public --permanent\r\nsuccess\r\n<\/pre>\n<p>firewalld\u3092\u518d\u8d77\u52d5<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_7');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_7');\" ><sup id=\"footnote_plugin_tooltip_703_1_7\" class=\"footnote_plugin_tooltip_text\">7)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_7\" class=\"footnote_tooltip\">\u300c&#8211;permanent\u300d\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u5373\u6642\u53cd\u6620\u3055\u308c\u308b\u3051\u3069\u3001\u518d\u8d77\u52d5\u3059\u308b\u3068\u8a2d\u5b9a\u304c\u6d88\u3048\u308b\u3093\u3060\u3063\u305f\u304b\u306a\uff1f<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_7').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_7', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script>\u3057\u3066\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo firewall-cmd --reload\r\nsuccess\r\n<\/pre>\n<p>\u8a2d\u5b9a\u5185\u5bb9\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ firewall-cmd --list-all\r\npublic (default, active)\r\n  interfaces: eth0\r\n  sources:\r\n  services: http https ssh\r\n  ports:\r\n  masquerade: no\r\n  forward-ports:\r\n  icmp-blocks:\r\n  rich rules:\r\n\r\n&#x5B;user1@centos-rpi3 ~]$\r\n<\/pre>\n<p>\u306f\u3044\u3001\u30d0\u30c3\u30c1\u30ea\u8a2d\u5b9a\u3067\u304d\u3066\u307e\u3059\u306d\u301c\u3002\u3053\u308c\u3067Web\u30b5\u30fc\u30d0\u3068\u3057\u3066\u4f7f\u3046\u306b\u306f\u5341\u5206\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3057\u305f\u306d(`\uff65\u03c9\uff65\u00b4)b<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_8');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_8');\" ><sup id=\"footnote_plugin_tooltip_703_1_8\" class=\"footnote_plugin_tooltip_text\">8)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_8\" class=\"footnote_tooltip\">\u2026\u2026\u306a\u3063\u305f\u306e\u304b\uff1f\u305d\u3082\u305d\u3082\u3001Web\u30b5\u30fc\u30d0\u306b\u3059\u308b\u304b\u3069\u3046\u304b\u3082\u672a\u5b9a\u306a\u3093\u3060\u3051\u3069\u3082(\uff1b\u00b4\u0414\uff40)<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_8').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_8', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script><\/p>\n<h2>\u8a31\u53ef\u3059\u308bICMP\u3092\u8a2d\u5b9a\u3059\u308b\u3045<\/h2>\n<p>\u73fe\u72b6\u3069\u3046\u306a\u3063\u3066\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ firewall-cmd --list-icmp-blocks --zone=public\r\n&#x5B;user1@centos-rpi3 ~]$\r\n<\/pre>\n<p>\u2026\u2026\u306f\u3044\u3002\u30d5\u30eb\u30aa\u30fc\u30d7\u30f3\u3067\u3059\u306d\u3002<\/p>\n<p>\u6307\u5b9a\u53ef\u80fd\u306a\u30d6\u30c4\u3092\u898b\u3066\u307f\u308b\u3068\u2026\u2026\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ firewall-cmd --get-icmptypes\r\ndestination-unreachable echo-reply echo-request parameter-problem redirect router-advertisement router-solicitation source-quench time-exceeded\r\n&#x5B;user1@centos-rpi3 ~]$\r\n<\/pre>\n<p>\u9806\u756a\u306b\u898b\u3066\u3044\u304d\u307e\u3059\u304b\u2026\u2026<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_9');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_9');\" ><sup id=\"footnote_plugin_tooltip_703_1_9\" class=\"footnote_plugin_tooltip_text\">9)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_9\" class=\"footnote_tooltip\">\u3044\u308d\u3044\u308d\u306a\u653b\u6483\u3068\u304b\u306b\u4f7f\u308f\u308c\u308b\u30b1\u30fc\u30b9\u3082\u591a\u3044ICMP\u306a\u306e\u3067\u3001\u3053\u308c\u3092\u9d5c\u5451\u307f\u306b\u305b\u305a\u81ea\u5206\u3067\u60c5\u5831\u53ce\u96c6\u3068\u304b\u3057\u3066\u3001\u30dd\u30ea\u30b7\u30fc\u3092\u6c7a\u3081\u3066\u306d\u2606<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_9').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_9', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script><\/p>\n<table>\n<tbody>\n<tr>\n<th>\u540d\u79f0<\/th>\n<th>\u7528\u9014<\/th>\n<th>\u8a2d\u5b9a<\/th>\n<\/tr>\n<tr>\n<td>destination-unreachable<\/td>\n<td>\u5b9b\u5148\u5230\u9054\u4e0d\u53ef\u80fd\u901a\u77e5\uff08Type:3\uff09<\/td>\n<td>\u8a31\u53ef\u3057\u3066\u3082\u3044\u3044\u304b\u306a\u3041\u2026\u2026<\/td>\n<\/tr>\n<tr>\n<td>echo-reply<\/td>\n<td>\u30a8\u30b3\u30fc\u5fdc\u7b54\u901a\u77e5(ping\u306b\u5bfe\u3059\u308b\u5fdc\u7b54\u3001Type:0)<\/td>\n<td>\u8a31\u53ef\u3057\u3066\u3082\u3044\u3044\u304b\u306a\u3041\u2026\u2026<\/td>\n<\/tr>\n<tr>\n<td>echo-request<\/td>\n<td>\u30a8\u30b3\u30fc\u8981\u6c42\u901a\u77e5\uff08ping\u3001Type\uff1a8\uff09<\/td>\n<td>\u8a31\u53ef\u3057\u3066\u3082\u3044\u3044\u304b\u306a\u3041\u2026\u2026<\/td>\n<\/tr>\n<tr>\n<td>parameter-problem<\/td>\n<td>\u4e0d\u6b63\u5f15\u6570\u901a\u77e5\uff08Type:12\uff09<\/td>\n<td>\u3044\u3089\u306a\u3044\u304b\u306a\u2026\u2026<\/td>\n<\/tr>\n<tr>\n<td>redirect<\/td>\n<td>\u7d4c\u8def\u5909\u66f4\u8981\u6c42\u901a\u77e5(Type:5)<\/td>\n<td>\u3044\u3089\u306a\u3044\u304b\u306a\u2026\u2026<\/td>\n<\/tr>\n<tr>\n<td>router-advertisement<\/td>\n<td>\u30eb\u30fc\u30bf\u30fc\u5e83\u544a\u901a\u77e5\uff08Type:9\uff09<\/td>\n<td>\u3044\u3089\u306a\u3044\u304b\u306a\u2026\u2026<\/td>\n<\/tr>\n<tr>\n<td>router-solicitation<\/td>\n<td>\u30eb\u30fc\u30bf\u30fc\u8acb\u9858\u901a\u77e5\uff08Type:10\uff09<\/td>\n<td>\u3044\u3089\u306a\u3044\u304b\u306a\u2026\u2026<\/td>\n<\/tr>\n<tr>\n<td>source-quench<\/td>\n<td>\u9001\u51fa\u6291\u5236\u8981\u6c42\u901a\u77e5\uff08Type:3\uff09<\/td>\n<td>\u3044\u3089\u306a\u3044\u304b\u306a\u2026\u2026<\/td>\n<\/tr>\n<tr>\n<td>time-exceeded<\/td>\n<td>\u6642\u9593\u5207\u308c\u901a\u77e5\uff08Type:6\uff09<\/td>\n<td>\u8a31\u53ef\u3057\u3066\u3082\u3044\u3044\u304b\u306a\u3041\u2026\u2026<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30b3\u30ec\u3092\u8e0f\u307e\u3048\u3066\u3001\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo firewall-cmd --add-icmp-block=parameter-problem --zone=public --permanent\r\nsuccess\r\n&#x5B;user1@centos-rpi3 ~]$ sudo firewall-cmd --add-icmp-block=redirect --zone=public --permanent\r\nsuccess\r\n&#x5B;user1@centos-rpi3 ~]$ sudo firewall-cmd --add-icmp-block=router-advertisement --zone=public --permanent\r\nsuccess\r\n&#x5B;user1@centos-rpi3 ~]$ sudo firewall-cmd --add-icmp-block=router-solicitation --zone=public --permanent\r\nsuccess\r\n&#x5B;hauser1a@centos-rpi3 ~]$ sudo firewall-cmd --add-icmp-block=source-quench --zone=public --permanent\r\nsuccess\r\n&#x5B;user1@centos-rpi3 ~]$\r\n<\/pre>\n<p>firewalld\u3092\u518d\u8d77\u52d5\u3057\u3066\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo firewall-cmd --reload\r\nsuccess\r\n<\/pre>\n<p>\u8a2d\u5b9a\u5185\u5bb9\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ firewall-cmd --list-icmp-blocks --zone=public\r\nparameter-problem redirect router-advertisement router-solicitation source-quench\r\n&#x5B;user1@centos-rpi3 ~]$\r\n<\/pre>\n<h2>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b\u3045<\/h2>\n<p>\u3053\u3053\u307e\u3067\u3067\u30b5\u30fc\u30d3\u30b9\u3068ICMP\u306b\u3064\u3044\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u304a\u3053\u306a\u3063\u305f\u306e\u3067\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u8272\u3005\u306a\u3084\u308a\u65b9\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u540c\u4e00\u30bb\u30b0\u30e1\u30f3\u30c8\u5185\u306e\u30de\u30b7\u30f3\u304b\u3089nmap\u3092\u4f7f\u3063\u3066\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>nmap\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u540c\u4e00\u30bb\u30b0\u30e1\u30f3\u30c8\u5185\u306e\u30de\u30b7\u30f3\u304b\u3089\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3084\u3063\u3066\u307f\u307e\u3059\u3002<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_10');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_10');\" ><sup id=\"footnote_plugin_tooltip_703_1_10\" class=\"footnote_plugin_tooltip_text\">10)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_10\" class=\"footnote_tooltip\">\u6642\u9593\u304b\u304b\u308b\u306e\u3067\u3001\u6025\u3044\u3067\u308b\u3068\u304d\u306b\u3084\u308b\u306e\u306f\u3084\u3081\u3088\u3046\uff01<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_10').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_10', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ $ nmap -sT 192.0.2.100\r\n\uff08\u4e2d\u7565\uff09\r\nNmap scan report for 192.0.2.100\r\nHost is up (0.0023s latency).\r\nNot shown: 999 closed ports\r\nPORT   STATE SERVICE\r\n22\/tcp open  ssh\r\n\r\nNmap done: 1 IP address (1 host up) scanned in 995.32 seconds\r\n<\/pre>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u300122\u756a\u30dd\u30fc\u30c8\u4ee5\u5916\u306f\u691c\u51fa\u3055\u308c\u3066\u306a\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u2026\u2026\u3068\u3001\u3053\u3053\u307e\u3067\u3084\u3063\u3066\u300c\u305d\u308a\u3083sshd\u4ee5\u5916\u8d77\u52d5\u3057\u3066\u306d\u3047<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_11');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_11');\" ><sup id=\"footnote_plugin_tooltip_703_1_11\" class=\"footnote_plugin_tooltip_text\">11)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_11\" class=\"footnote_tooltip\">\u30b9\u30ad\u30e3\u30f3\u5bfe\u8c61\u306e\u30de\u30b7\u30f3\u3067\u300cnetstat -alnA inet\u300d\u3068\u304b\u3084\u3063\u3066\u307f\u308b\u3068\u7acb\u3061\u4e0a\u304c\u3063\u3066\u308b\u30b5\u30fc\u30d3\u30b9\u3068\u304b\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3075<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_11').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_11', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script>\u3093\u3060\u304b\u3089\u3042\u305f\u308a\u307e\u3048\u3060\u3088\u306a\u300d\u3063\u3066\u3053\u3068\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\u3068\u3055\u3002<\/p>\n<h1>ntp\u306e\u8a2d\u5b9a\u3092\u3057\u3088\u3046\uff01<\/h1>\n<p>\u30b5\u30fc\u30d0\u306e\u6642\u523b\u304c\u305a\u308c\u3066\u3044\u308b\u3068\u3044\u308d\u3044\u308d\u30e1\u30f3\u30c9\u30af\u30b5\u30a4\u306e\u3067\u3001ntp\u3092\u4f7f\u3063\u3066\u6642\u523b\u540c\u671f\u3092\u3057\u3066\u304a\u304d\u307e\u305b\u3045\u3002<\/p>\n<p>CentOS6\u307e\u3067\u306fntpd\u3092\u4f7f\u3046\u3053\u3068\u304c\u4e3b\u6d41\u3060\u3063\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001CentOS\u30007\u3067\u306fChrony\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5165\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\/etc\/chrony.conf\u306b\u3042\u308b\u306e\u3067\u3001\u30b3\u30a4\u30c4\u3092\u958b\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo vi \/etc\/chrony.conf\r\n<\/pre>\n<p>NTP\u30b5\u30fc\u30d0\u306b\u3059\u308b\u6c17\u3082\u306a\u3044\u306e\u3067\u57fa\u672c\u3053\u306e\u307e\u307e\u3067\u3088\u3055\u305d\u3046\u3067\u3059\u304c\u3001\u540c\u671f\u5148\u306eNTP\u30b5\u30fc\u30d0\u306f\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_12');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_12');\" ><sup id=\"footnote_plugin_tooltip_703_1_12\" class=\"footnote_plugin_tooltip_text\">12)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_12\" class=\"footnote_tooltip\">\u56fd\u5185\u306e\u3055\u30fc\u3070\u306b\u3057\u3066\u304a\u304d\u305f\u3044\u304a\u6c17\u6301\u3061\u306a\u306e\u3067<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_12').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_12', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# Use public servers from the pool.ntp.org project.\r\n# Please consider joining the pool (http:\/\/www.pool.ntp.org\/join.html).\r\nserver 0.rhel.pool.ntp.org iburst\r\nserver 1.rhel.pool.ntp.org iburst\r\nserver 2.rhel.pool.ntp.org iburst\r\nserver 3.rhel.pool.ntp.org iburst\r\n\uff08\u4e2d\u7565\uff09\r\n<\/pre>\n<p>\u3092<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# Use public servers from the pool.ntp.org project.\r\n# Please consider joining the pool (http:\/\/www.pool.ntp.org\/join.html).\r\nserver ntp.nict.jp iburst\r\n\uff08\u4e2d\u7565\uff09\r\n<\/pre>\n<p>\u306b\u66f8\u304d\u63db\u3048\u3066\u3001chrony\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo systemctl restart chronyd\r\n<\/pre>\n<p>\u540c\u671f\u306e\u72b6\u614b\u306f\u300csudo chronyc sources\u300d<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_13');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_13');\" ><sup id=\"footnote_plugin_tooltip_703_1_13\" class=\"footnote_plugin_tooltip_text\">13)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_13\" class=\"footnote_tooltip\">\u300cntpq -p\u300d\u76f8\u5f53\u306e\u30b3\u30de\u30f3\u30c9<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_13').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_13', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n<h1>sshd\u306e\u8a2d\u5b9a\u3092\u8abf\u6574\u3057\u3088\u3046\uff01<\/h1>\n<p>\u3055\u3066\u3055\u3066\u3001\u6700\u5f8c\u306bsshd\u306e\u8a2d\u5b9a\u3092\u304a\u3053\u306a\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u5927\u307e\u304b\u306a\u8a2d\u5b9a\u5185\u5bb9\u3068\u3057\u3066\u306f\u2026\u2026<\/p>\n<ul>\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u306e\u7121\u52b9\u5316<\/li>\n<li>root\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u3092\u7121\u52b9\u5316<\/li>\n<\/ul>\n<p>\u3063\u3066\u3053\u3068\u3092\u3084\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u300c\/etc\/ssh\/sshd_config\u300d\u3092vi\u3068\u304b\u3067\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo vi \/etc\/ssh\/sshd_config\r\n<\/pre>\n<p>\u3093\u3067\u3001\u4e0b\u8a18\u306e\u3042\u305f\u308a\u3092\u7de8\u96c6\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nPasswordAuthentication yes\r\n<\/pre>\n<p>\u3092<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nPasswordAuthentication no\r\n<\/pre>\n<p>\u306b\u3002<\/p>\n<p>\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u672b\u5c3e\u3042\u305f\u308a\u306b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nPermitRootLogin no\r\n<\/pre>\n<p>\u3092\u8ffd\u8a18\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001sshd\u3092\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo systemctl restart sshd\r\n<\/pre>\n<p>\u3053\u306e\u5f8c\u306b\u3001<\/p>\n<ul>\n<li>root\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u3044\u3053\u3068<\/li>\n<li>root\u4ee5\u5916\u3067\u3082\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306f\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u3044\u3053\u3068<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u3042\u305f\u308a\u3092\u78ba\u8a8d\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u5f8c\u8005\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d\u306f\u2026\u2026<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;Mac]$ ssh -o PubkeyAuthentication=no user1@192.0.2.100\r\n<\/pre>\n<p>\u307f\u305f\u3044\u306b\u6307\u5b9a\u3059\u308b<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_14');\" onkeypress=\"footnote_moveToReference_703_1('footnote_plugin_reference_703_1_14');\" ><sup id=\"footnote_plugin_tooltip_703_1_14\" class=\"footnote_plugin_tooltip_text\">14)<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_703_1_14\" class=\"footnote_tooltip\">\u660e\u793a\u7684\u306b\u516c\u958b\u9375\u8a8d\u8a3c\u3092\u7121\u52b9\u5316\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_703_1_14').tooltip({ tip: '#footnote_plugin_tooltip_text_703_1_14', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [10, 10], });<\/script>\u3068\u78ba\u5b9f\u306b\u30c1\u30a7\u30c3\u30af\u3067\u304d\u308b\u306f\u305a\u3002<\/p>\n<h1>\u3053\u3093\u306a\u3082\u3093\u304b\u30fc\uff01\uff1f<\/h1>\n<p>\u307e\u3042\u3001\u3060\u3044\u305f\u3044\u3053\u3093\u306a\u611f\u3058\u3067\u8a2d\u5b9a\u3057\u3066\u304a\u3051\u3070OK\u3067\u3057\u3087\u3046\uff01<\/p>\n<p>\u2026\u2026\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u793e\u5185Lab\u7528\u30b5\u30fc\u30d0\u306e\u30d9\u30fc\u30b9\u69cb\u6210\u304b\u3093\u305b\u30fc\u3043\uff01<\/p>\n<p>\u3053\u306e\u5f8c\u306f\u7528\u9014\u306b\u5fdc\u3058\u3066\u3044\u308d\u3044\u308d\u30b4\u30cb\u30e7\u30b4\u30cb\u30e7\u3057\u3066\u3044\u3051\u3070OK\u304b\u306a\u3041\u2026\u2026\u3002chef\u3068\u304b\u3067\u3053\u3053\u307e\u3067\u81ea\u52d5\u5316\u3067\u304d\u3066\u308b\u3068\u697d\u3067\u826f\u3044\u3067\u3059\u306d\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n<div class=\"speaker-mute footnotes_reference_container\"> <div class=\"footnote_container_prepare\"><p><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_label pointer\" onclick=\"footnote_expand_collapse_reference_container_703_1();\">\u6ce8\u8a33\u306f\u3053\u3061\u3089<\/span><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_collapse_button\" style=\"display: none;\" onclick=\"footnote_expand_collapse_reference_container_703_1();\">[<a id=\"footnote_reference_container_collapse_button_703_1\">+<\/a>]<\/span><\/p><\/div> <div id=\"footnote_references_container_703_1\" style=\"\"><table class=\"footnotes_table footnote-reference-container\"><caption class=\"accessibility\">\u6ce8\u8a33\u306f\u3053\u3061\u3089<\/caption> <tbody> \r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_1');\"><a id=\"footnote_plugin_reference_703_1_1\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>1<\/a><\/th> <td class=\"footnote_plugin_text\">99\u5272\u306e\u4eba\u306f\u3053\u3093\u306a\u30af\u30bd\u307f\u305f\u3044\u306a\u3082\u306e\u4f7f\u3046\u5fc5\u8981\u306f\u306a\u3044\u3067\u3059<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_2');\"><a id=\"footnote_plugin_reference_703_1_2\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>2<\/a><\/th> <td class=\"footnote_plugin_text\">Mac\u306a\u3089\u300c\u30bf\u30fc\u30df\u30ca\u30eb\u300d\u3001Win\u306a\u3089\u300cTera Term\u300d\u3068\u304b\u3068\u304b<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_3');\"><a id=\"footnote_plugin_reference_703_1_3\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>3<\/a><\/th> <td class=\"footnote_plugin_text\">\u3068\u306f\u3044\u3048\u3001\u300csudo\u300d\u30b3\u30de\u30f3\u30c9\u3055\u3048\u4f7f\u3048\u308c\u3070\u3001\u300csudo su -\u300d\u307f\u305f\u3044\u306a\u306e\u306f\u666e\u901a\u306b\u4f7f\u3048\u308b<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_4');\"><a id=\"footnote_plugin_reference_703_1_4\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>4<\/a><\/th> <td class=\"footnote_plugin_text\">\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u5fc5\u8981\u306a\u3089\u300csudo su -\u300d\u304c\u3067\u304d\u3061\u3083\u3046\u306e\u3067\u3002<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_5');\"><a id=\"footnote_plugin_reference_703_1_5\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>5<\/a><\/th> <td class=\"footnote_plugin_text\">\u3082\u3063\u3068\u3082iptables\u3092\u4f7f\u3046\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3057\u3001firewalld\u306e\u4e2d\u8eab\u306fiptables\u304c\u52d5\u3044\u3066\u308b\u3063\u3066\u8a71\u3082\u3042\u308a\u307e\u3059\u304c\u2026\u2026<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_6');\"><a id=\"footnote_plugin_reference_703_1_6\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>6<\/a><\/th> <td class=\"footnote_plugin_text\">\u30dd\u30fc\u30c8\u306a\u3069\u306f\u500b\u5225\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08\/usr\/lib\/firewalld\/services\/ \u914d\u4e0b\u3001ICMP\u7cfb\u306f\/usr\/lib\/firewalld\/icmptypes \u914d\u4e0b\uff09\u306b\u66f8\u3044\u3066\u3042\u308b\u306b\u3087<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_7');\"><a id=\"footnote_plugin_reference_703_1_7\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>7<\/a><\/th> <td class=\"footnote_plugin_text\">\u300c&#8211;permanent\u300d\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u5373\u6642\u53cd\u6620\u3055\u308c\u308b\u3051\u3069\u3001\u518d\u8d77\u52d5\u3059\u308b\u3068\u8a2d\u5b9a\u304c\u6d88\u3048\u308b\u3093\u3060\u3063\u305f\u304b\u306a\uff1f<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_8');\"><a id=\"footnote_plugin_reference_703_1_8\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>8<\/a><\/th> <td class=\"footnote_plugin_text\">\u2026\u2026\u306a\u3063\u305f\u306e\u304b\uff1f\u305d\u3082\u305d\u3082\u3001Web\u30b5\u30fc\u30d0\u306b\u3059\u308b\u304b\u3069\u3046\u304b\u3082\u672a\u5b9a\u306a\u3093\u3060\u3051\u3069\u3082(\uff1b\u00b4\u0414\uff40)<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_9');\"><a id=\"footnote_plugin_reference_703_1_9\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>9<\/a><\/th> <td class=\"footnote_plugin_text\">\u3044\u308d\u3044\u308d\u306a\u653b\u6483\u3068\u304b\u306b\u4f7f\u308f\u308c\u308b\u30b1\u30fc\u30b9\u3082\u591a\u3044ICMP\u306a\u306e\u3067\u3001\u3053\u308c\u3092\u9d5c\u5451\u307f\u306b\u305b\u305a\u81ea\u5206\u3067\u60c5\u5831\u53ce\u96c6\u3068\u304b\u3057\u3066\u3001\u30dd\u30ea\u30b7\u30fc\u3092\u6c7a\u3081\u3066\u306d\u2606<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_10');\"><a id=\"footnote_plugin_reference_703_1_10\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>10<\/a><\/th> <td class=\"footnote_plugin_text\">\u6642\u9593\u304b\u304b\u308b\u306e\u3067\u3001\u6025\u3044\u3067\u308b\u3068\u304d\u306b\u3084\u308b\u306e\u306f\u3084\u3081\u3088\u3046\uff01<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_11');\"><a id=\"footnote_plugin_reference_703_1_11\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>11<\/a><\/th> <td class=\"footnote_plugin_text\">\u30b9\u30ad\u30e3\u30f3\u5bfe\u8c61\u306e\u30de\u30b7\u30f3\u3067\u300cnetstat -alnA inet\u300d\u3068\u304b\u3084\u3063\u3066\u307f\u308b\u3068\u7acb\u3061\u4e0a\u304c\u3063\u3066\u308b\u30b5\u30fc\u30d3\u30b9\u3068\u304b\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3075<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_12');\"><a id=\"footnote_plugin_reference_703_1_12\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>12<\/a><\/th> <td class=\"footnote_plugin_text\">\u56fd\u5185\u306e\u3055\u30fc\u3070\u306b\u3057\u3066\u304a\u304d\u305f\u3044\u304a\u6c17\u6301\u3061\u306a\u306e\u3067<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_13');\"><a id=\"footnote_plugin_reference_703_1_13\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>13<\/a><\/th> <td class=\"footnote_plugin_text\">\u300cntpq -p\u300d\u76f8\u5f53\u306e\u30b3\u30de\u30f3\u30c9<\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_703_1('footnote_plugin_tooltip_703_1_14');\"><a id=\"footnote_plugin_reference_703_1_14\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>14<\/a><\/th> <td class=\"footnote_plugin_text\">\u660e\u793a\u7684\u306b\u516c\u958b\u9375\u8a8d\u8a3c\u3092\u7121\u52b9\u5316\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3<\/td><\/tr>\r\n\r\n <\/tbody> <\/table> <\/div><\/div><script type=\"text\/javascript\"> function footnote_expand_reference_container_703_1() { jQuery('#footnote_references_container_703_1').show(); jQuery('#footnote_reference_container_collapse_button_703_1').text('\u2212'); } function footnote_collapse_reference_container_703_1() { jQuery('#footnote_references_container_703_1').hide(); jQuery('#footnote_reference_container_collapse_button_703_1').text('+'); } function footnote_expand_collapse_reference_container_703_1() { if (jQuery('#footnote_references_container_703_1').is(':hidden')) { footnote_expand_reference_container_703_1(); } else { footnote_collapse_reference_container_703_1(); } } function footnote_moveToReference_703_1(p_str_TargetID) { footnote_expand_reference_container_703_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } } function footnote_moveToAnchor_703_1(p_str_TargetID) { footnote_expand_reference_container_703_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } }<\/script>","protected":false},"excerpt":{"rendered":"<p>\u3082\u5c11\u3057\u3042\u3068\u3061\u3087\u3063\u3068\uff01 \u524d\u56de\u306fOS\u7b49\u3005\u306e\u6700\u4f4e\u9650\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u304a\u3053\u306a\u3063\u305f\u308f\u3051\u3067\u3059\u304c\u2026\u2026\u3002 Raspberry Pi 3 Model B\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fCentOS7\u3092\u521d\u671f\u8a2d\u5b9a\u3059\u308b\u8a71 \u2013 \u81ea\u4e3b\u768420%\u308b\u3045\u308b via kwo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":595,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[12,35,36],"class_list":["post-703","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-centos","tag-raspberry-pi","tag-lab"],"jetpack_featured_media_url":"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2016\/07\/DSC_1499.jpg","jetpack_shortlink":"https:\/\/wp.me\/p7Bq4F-bl","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/comments?post=703"}],"version-history":[{"count":0,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/703\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media\/595"}],"wp:attachment":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media?parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/categories?post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/tags?post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}