{"id":6023,"date":"2019-05-16T17:21:49","date_gmt":"2019-05-16T08:21:49","guid":{"rendered":"https:\/\/itport.cloud\/?p=6023"},"modified":"2019-05-16T18:36:06","modified_gmt":"2019-05-16T09:36:06","slug":"post-6023","status":"publish","type":"post","link":"https:\/\/itport.cloud\/?p=6023","title":{"rendered":"\uff08\u7b2c1\u56de\uff09Linux\u306bSamba4(ActiveDirectory)\u3092\u69cb\u7bc9\u3010CentOS7\u3011"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"e79baee6aca1-1\">\u76ee\u6b21<\/h2>\n\n\n\n<p><a href=\"#samba1-1\">\u306f\u3058\u3081\u306b<\/a><br><a href=\"#samba1-2\">SELinux\u306e\u505c\u6b62<\/a><br><a href=\"#samba1-3\">\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0<\/a><br><a href=\"#samba1-4\">\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a<\/a><br><a href=\"#samba1-5\">hosts\u306e\u8a2d\u5b9a<\/a><br><a href=\"#samba1-6\">\u6642\u523b\u540c\u671f\u306e\u8a2d\u5b9a<\/a><br><a href=\"#samba1-7\">firewalld\u306e\u505c\u6b62<\/a><br><a href=\"#samba1-8\">\u6b21\u56de\u4e88\u544a<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"samba1-1\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>Linux\u306bSamba4\u3092\u69cb\u7bc9\u3068\u3044\u3046\u30c6\u30fc\u30de\u3067\u4eca\u56de\u304b\u3089\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002Samba4\u306e\u5f37\u307f\u306f\u3001Windows\u306eActive Directory \u3068\u4e92\u63db\u306e\u3042\u308b\u6a5f\u80fd\u304c\u63d0\u4f9b\u3067\u304d\u308b\u70b9\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001Linux\u4e0a\u3067\u3082ActiveDirectory\u3068\u540c\u7b49\u306e\u6a5f\u80fd\u304c\u69cb\u7bc9\u3067\u304d\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3084\u30e6\u30fc\u30b6\u30fc\u306e\u4e00\u5143\u7ba1\u7406\u304c\u53ef\u80fd\u3068\u306a\u308a\u3001\u7ba1\u7406\u306e\u624b\u9593\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u6a5f\u80fd\u3092\u5c0e\u5165\u3059\u308b\u305f\u3081\u306e\u624b\u9806\u3092\u3053\u308c\u304b\u3089\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u57fa\u672c\u60c5\u5831\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>OS\u30d0\u30fc\u30b8\u30e7\u30f3<\/td><td>7.6.1810<\/td><\/tr><tr><td>host\u540d<\/td><td>ad01<\/td><\/tr><tr><td>\u30c9\u30e1\u30a4\u30f3<\/td><td>example.com<\/td><\/tr><tr><td>IP\u30a2\u30c9\u30ec\u30b9<\/td><td>192.168.4.128<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"samba1-2\">SELinux\u306e\u505c\u6b62<\/h2>\n\n\n\n<p>\u307e\u305a\u3001SELinux\u3067\u3059\u304c\u3053\u308c\u306f\u7d30\u304b\u3044\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306a\u3069\u304c\u51fa\u6765\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u975e\u5e38\u306b\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u304c\u3001\u8a2d\u5b9a\u306e\u969b\u306b\u8d77\u52d5\u3057\u3066\u3044\u308b\u3068\u4e88\u671f\u305b\u306c\u5236\u7d04\u306a\u3069\u304c\u5165\u3063\u3066\u304f\u308b\u6050\u308c\u304c\u3042\u308b\u305f\u3081\u3001\u8a2d\u5b9a\u4f5c\u696d\u6642\u306f\u505c\u6b62\u3055\u305b\u3066\u304a\u304d\u307e\u3059\u3002<br>SELinux\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u305f\u3081\u306b\u3001\u300cetc\/selinux\/config\u300d&nbsp;\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# vi \/etc\/selinux\/config\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [6]; title: ; notranslate\" title=\"\">\n# This file controls the state of SELinux on the system.\n# SELINUX= can take one of these three values:\n#     enforcing - SELinux security policy is enforced.\n#     permissive - SELinux prints warnings instead of enforcing.\n#     disabled - No SELinux policy is loaded.\nSELINUX=disabled\n# SELINUXTYPE= can take one of three two values:\n#     targeted - Targeted processes are protected,\n#     minimum - Modification of targeted policy. Only selected processes are protected.\n#     mls - Multi Level Security protection.\nSELINUXTYPE=targeted\n<\/pre><\/div>\n\n\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u958b\u3044\u305f\u3089\u3001\u300cSELINUX=\u300d\u3092\u300cenforcing\u300d\u304b\u3089\u300cdisabled\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br><br>\u8a2d\u5b9a\u306e\u5909\u66f4\u3092\u3057\u305f\u306e\u3067\u3001\u3053\u306e\u5f8c\u518d\u8d77\u52d5\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"samba1-3\">\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0<\/h2>\n\n\n\n<p>\u6b21\u306b\u3001CentOS\u306e\u5404\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u66f4\u65b0\u3057\u3066\u6700\u65b0\u306e\u72b6\u614b\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u66f4\u65b0\u3059\u308b\u305f\u3081\u306b\u3001\u300c yum update -y\u300d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br>\u3059\u3079\u3066\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u66f4\u65b0\u3059\u308b\u3068\u3001\u73fe\u5728\u4f5c\u696d\u4e2d\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u652f\u969c\u304c\u51fa\u308b\u5834\u5408\u306a\u3069\u3082\u3042\u308b\u305f\u3081\u3001\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306f\u300cexclude\u300d\u30b3\u30de\u30f3\u30c9\u3092\u3064\u304b\u3046\u304b\u300cyum update &#8230;\u300d\u3067\u6307\u5b9a\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3060\u3051\u3092\u66f4\u65b0\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<br>\u4f8b\uff1a\u300cyum update &#8211;exclude=php*\u300d php\u95a2\u9023\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0\u3092\u9664\u304f<br><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# yum update -y\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [20]; title: ; notranslate\" title=\"\">\n  readline.x86_64 0:6.2-10.el7                                        rpm.x86_64 0:4.11.3-35.el7\n  rpm-build-libs.x86_64 0:4.11.3-35.el7                               rpm-libs.x86_64 0:4.11.3-35.el7\n  rpm-python.x86_64 0:4.11.3-35.el7                                   rsyslog.x86_64 0:8.24.0-34.el7\n  selinux-policy.noarch 0:3.13.1-229.el7_6.12                         selinux-policy-targeted.noarch 0:3.13.1-229.el7_6.12\n  setup.noarch 0:2.8.71-10.el7                                        shadow-utils.x86_64 2:4.1.5.1-25.el7_6.1\n  shared-mime-info.x86_64 0:1.8-4.el7                                 sudo.x86_64 0:1.8.23-3.el7\n  systemd.x86_64 0:219-62.el7_6.6                                     systemd-libs.x86_64 0:219-62.el7_6.6\n  systemd-sysv.x86_64 0:219-62.el7_6.6                                tar.x86_64 2:1.26-35.el7\n  teamd.x86_64 0:1.27-5.el7                                           trousers.x86_64 0:0.3.14-2.el7\n  tuned.noarch 0:2.10.0-6.el7_6.3                                     tzdata.noarch 0:2019a-1.el7\n  util-linux.x86_64 0:2.23.2-59.el7_6.1                               vim-minimal.x86_64 2:7.4.160-5.el7\n  virt-what.x86_64 0:1.18-4.el7                                       wpa_supplicant.x86_64 1:2.6-12.el7\n  xfsprogs.x86_64 0:4.5.0-19.el7_6                                    yum.noarch 0:3.4.3-161.el7.centos\n  yum-plugin-fastestmirror.noarch 0:1.1.31-50.el7                     zlib.x86_64 0:1.2.7-18.el7\n\n\u7f6e\u63db:\n  NetworkManager.x86_64 1:1.4.0-12.el7        grub2.x86_64 1:2.02-0.44.el7.centos       grub2-tools.x86_64 1:2.02-0.44.el7.centos\n  pygobject3-base.x86_64 0:3.14.0-3.el7       rdma.noarch 0:7.3_4.7_rc2-5.el7\n\n\u5b8c\u4e86\u3057\u307e\u3057\u305f!\n&#x5B;root@localhost ~]#\n<\/pre><\/div>\n\n\n<p>\u4e0a\u8a18\u753b\u9762\u306e\u3088\u3046\u306b\u5404\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u9806\u6b21\u66f4\u65b0\u3055\u308c\u3066\u3044\u304d\u3001\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u7121\u4e8b\u7d42\u4e86\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"samba1-4\">\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u30db\u30b9\u30c8\u540d\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b\u3001\u300cnmcli general hostname \u30db\u30b9\u30c8\u540d\u300d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u5f8c[hostname\u300d\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u3057\u305f\u30db\u30b9\u30c8\u540d\u306e\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306fad01\u3092\u8a2d\u5b9a\u3057\u305f\u306e\u3067\u3001\u4e0b\u8a18\u3067\u78ba\u8a8d\u304c\u51fa\u6765\u307e\u3057\u305f\u3002\u3061\u306a\u307f\u306b\u30db\u30b9\u30c8\u540d\u3068\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u95a2\u3057\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u304c\u3042\u3063\u305f\u306e\u3067\u3053\u3061\u3089\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<br><a aria-label=\"\u30c9\u30e1\u30a4\u30f3\u30fb\u30db\u30b9\u30c8\u540d\u3068\u306f\uff1f (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/www.cman.jp\/network\/term\/domain\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u30c9\u30e1\u30a4\u30f3\u30fb\u30db\u30b9\u30c8\u540d\u3068\u306f\uff1f<\/a><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# nmcli general hostname ad01\n&#x5B;root@localhost ~]# hostname\nad01\n&#x5B;root@localhost ~]#\n<\/pre><\/div>\n\n\n<p>\u3053\u3061\u3089\u3082\u8a2d\u5b9a\u3057\u305f\u5f8c\u3001\u518d\u8d77\u52d5\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002\u30db\u30b9\u30c8\u540d\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u4e0b\u8a18\u306e\u30b5\u30a4\u30c8\u3082\u53c2\u8003\u306b\u3057\u3066\u3044\u305f\u3060\u3051\u305f\u3089\u3068\u601d\u3044\u307e\u3059\u3002<br><a aria-label=\"CentOS7\u306e\u30db\u30b9\u30c8\u540d\u8a2d\u5b9a\u306b\u3064\u3044\u3066 (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/www.opensourcetech.tokyo\/entry\/2018\/05\/08\/CentOS7_%E3%81%AE%E3%83%9B%E3%82%B9%E3%83%88%E5%90%8D%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%EF%BC%88hostname_\/_nmcli_\/_nmtui_\/_hostnamectl_\/_uname%EF%BC%89\" target=\"_blank\" rel=\"noreferrer noopener\">CentOS7\u306e\u30db\u30b9\u30c8\u540d\u8a2d\u5b9a\u306b\u3064\u3044\u3066<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"samba1-5\">hosts\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u6b21\u306bhosts\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002 hosts\u30d5\u30a1\u30a4\u30eb\u3068\u306fDNS\u3088\u308a\u5148\u306b\u53c2\u7167\u3055\u308c\u308bIP\u30a2\u30c9\u30ec\u30b9\u3068\u30c9\u30e1\u30a4\u30f3\u540d\u306e\u4e00\u89a7\u306e\u3053\u3068\u3002\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u3068\u3057\u3066\u306f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3002<br>\u3053\u3053\u306bIP\u30a2\u30c9\u30ec\u30b9\u3068\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5bfe\u306b\u3057\u3066\u8a18\u8f09\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3088\u308a\u3001DNS\u304c\u5fdc\u7b54\u3057\u306a\u3044\u3068\u304d\u3084\u3001Web\u30b5\u30a4\u30c8\u3092\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u3067\u69cb\u7bc9\u3059\u308b\u6642\u306a\u3069\u306b\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002<br><br>\u300cetc\/selinux\/config\u300d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066hosts\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# vi \/etc\/hosts\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [3]; title: ; notranslate\" title=\"\">\n127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4\n::1         localhost localhost.localdomain localhost6 localhost6.localdomain6\n192.168.4.121   ad01\n<\/pre><\/div>\n\n\n<p>\u3053\u3053\u306b\u81ea\u8eab\u306e\u30db\u30b9\u30c8\u540d\u3068IP\u30a2\u30c9\u30ec\u30b9\u3092\u8ffd\u52a0\u5165\u529b\u3057\u307e\u3059\u3002\u3053\u308c\u3067hosts\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"samba1-6\">\u6642\u523b\u540c\u671f\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u6642\u523b\u306f\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u4e0a\u306a\u3069\u3067\u3001\u6b63\u78ba\u306a\u6642\u523b\u304c\u5fc5\u8981\u3068\u306a\u308b\u305f\u3081\u540c\u671f\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<br>\u300cetc\/chrony.conf\u300d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# vi \/etc\/chrony.conf\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [7]; title: ; notranslate\" title=\"\">\n# Use public servers from the pool.ntp.org project.\n# Please consider joining the pool (http:\/\/www.pool.ntp.org\/join.html).\n#server 0.centos.pool.ntp.org iburst\n#server 1.centos.pool.ntp.org iburst\n#server 2.centos.pool.ntp.org iburst\n#server 3.centos.pool.ntp.org iburst\nserver ntp.nict.jp iburst\n<\/pre><\/div>\n\n\n<p>\u5143\u3005\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308bntp\u30b5\u30fc\u30d0\u30fc\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3001\u6642\u523b\u540c\u671f\u3092\u3057\u305f\u3044\u30b5\u30fc\u30d0\u3092\u8a18\u5165\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# systemctl restart chronyd\n&#x5B;root@localhost ~]# systemctl status chronyd\n\u25cf chronyd.service - NTP client\/server\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/chronyd.service; enabled; vendor preset: enabled)\n   Active: active (running) since \u6728 2019-05-16 16:35:51 JST; 12s ago\n     Docs: man:chronyd(8)\n           man:chrony.conf(5)\n  Process: 35400 ExecStartPost=\/usr\/libexec\/chrony-helper update-daemon (code=exited, status=0\/SUCCESS)\n  Process: 35396 ExecStart=\/usr\/sbin\/chronyd $OPTIONS (code=exited, status=0\/SUCCESS)\n Main PID: 35398 (chronyd)\n   CGroup: \/system.slice\/chronyd.service\n           \u2514\u250035398 \/usr\/sbin\/chronyd\n\n 5\u6708 16 16:35:51 ad01 systemd&#x5B;1]: Starting NTP client\/server...\n 5\u6708 16 16:35:51 ad01 chronyd&#x5B;35398]: chronyd version 3.2 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SECHASH ...+DEBUG)\n 5\u6708 16 16:35:51 ad01 chronyd&#x5B;35398]: Frequency -1894.005 +\/- 1.227 ppm read from \/var\/lib\/chrony\/drift\n 5\u6708 16 16:35:51 ad01 systemd&#x5B;1]: Started NTP client\/server.\n 5\u6708 16 16:35:56 ad01 chronyd&#x5B;35398]: Selected source 133.243.238.164\nHint: Some lines were ellipsized, use -l to show in full.\n&#x5B;root@localhost ~]#\n<\/pre><\/div>\n\n\n<p>\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u305f\u5f8c\u306f\u30c7\u30fc\u30e2\u30f3\u306e\u518d\u8d77\u52d5\u304c\u5fc5\u8981\u3067\u3059\u3002\u30c7\u30fc\u30e2\u30f3\u306fUNIX\u7cfb\u306eOS\u306e\u5e38\u99d0\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3053\u3068\u3092\u6307\u3057\u307e\u3059\u3002\u30c7\u30fc\u30e2\u30f3\u306f\u540d\u524d\u306e\u6700\u5f8c\u306bd\u3092\u3064\u3051\u308b\u306e\u304c\u6163\u4f8b\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u5f8c\u3067\u51fa\u3066\u304d\u307e\u3059\u304c\u3001firewalld\u3082firewall\u30c7\u30fc\u30e2\u30f3\u306e\u3053\u3068\u3092\u6307\u3057\u3066\u307e\u3059\u3002<br>\u518d\u8d77\u52d5\u3057\u305f\u3042\u3068\u306f\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3057\u554f\u984c\u306a\u304f\u52d5\u3044\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# chronyc sources\n210 Number of sources = 1\nMS Name\/IP address         Stratum Poll Reach LastRx Last sample\n===============================================================================\n^* ntp-b3.nict.go.jp             1   6    17    43    +78us&#x5B; +313us] +\/- 3585us\n&#x5B;root@localhost ~]#\n<\/pre><\/div>\n\n\n<p>\u300cchronyc sources\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u540c\u671f\u304c\u6b63\u3057\u304f\u51fa\u6765\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"samba1-7\">firewalld\u306e\u505c\u6b62<\/h2>\n\n\n\n<p>firewalld\u30c7\u30fc\u30e2\u30f3\u306e\u505c\u6b62\u3092\u884c\u3044\u307e\u3059\u3002<br>\u300csystemctl stop firewalld\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001fireWalld\u30c7\u30fc\u30e2\u30f3\u3092\u505c\u6b62\u3055\u305b\u307e\u3059\u3002\u505c\u6b62\u5b8c\u4e86\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u300csystemctl status firewalld\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u5f8c\u3001\u4e0b\u306b\u73fe\u72b6\u306efirewalld\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# systemctl stop firewalld\n&#x5B;root@localhost ~]# systemctl status firewalld\n\u25cf firewalld.service - firewalld - dynamic firewall daemon\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/firewalld.service; enabled; vendor preset: enabled)\n   Active: inactive (dead) since \u6728 2019-05-16 16:37:22 JST; 7s ago\n     Docs: man:firewalld(1)\n  Process: 14060 ExecStart=\/usr\/sbin\/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0\/SUCCESS)\n Main PID: 14060 (code=exited, status=0\/SUCCESS)\n\n 5\u6708 16 16:25:37 localhost.localdomain systemd&#x5B;1]: Starting firewalld - dynamic firewall daemon...\n 5\u6708 16 16:25:38 localhost.localdomain systemd&#x5B;1]: Started firewalld - dynamic firewall daemon.\n 5\u6708 16 16:37:21 ad01 systemd&#x5B;1]: Stopping firewalld - dynamic firewall daemon...\n 5\u6708 16 16:37:22 ad01 systemd&#x5B;1]: Stopped firewalld - dynamic firewall daemon.\n&#x5B;root@localhost ~]#\n<\/pre><\/div>\n\n\n<p>\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u300cActive: inactive(dead)\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3089\u7121\u4e8b\u52d5\u4f5c\u5b8c\u4e86\u3068\u306a\u308a\u307e\u3059\u3002<br> <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"samba1-8\">\u6b21\u56de\u4e88\u544a<br><\/h2>\n\n\n\n<p><br>\u7b2c\u4e00\u56de\u3067\u306e\u8a2d\u5b9a\u4f5c\u696d\u306f\u3053\u3053\u307e\u3067\u3068\u3057\u307e\u3059\u3002 \u6b21\u56de\u306fsamba4\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u76ee\u6b21 \u306f\u3058\u3081\u306bSELinux\u306e\u505c\u6b62\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u66f4\u65b0\u30db\u30b9\u30c8\u306e\u8a2d\u5b9ahosts\u306e\u8a2d\u5b9a\u6642\u523b\u540c\u671f\u306e\u8a2d\u5b9afirewalld\u306e\u505c\u6b62\u6b21\u56de\u4e88\u544a \u306f\u3058\u3081\u306b Linux\u306bSamba4\u3092\u69cb\u7bc9\u3068\u3044\u3046\u30c6\u30fc\u30de\u3067\u4eca\u56de\u304b\u3089\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002Samba4\u306e\u5f37\u307f\u306f\u3001Windows\u306eActive Directory \u3068\u4e92\u63db\u306e\u3042\u308b\u6a5f\u80fd\u304c\u63d0\u4f9b\u3067\u304d\u308b\u70b9\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001Linux\u4e0a\u3067\u3082ActiveDirectory\u3068\u540c\u7b49\u306e\u6a5f\u80fd\u304c\u69cb\u7bc9\u3067\u304d\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3084\u30e6\u30fc\u30b6\u30fc\u306e\u4e00\u5143\u7ba1\u7406\u304c\u53ef\u80fd\u3068\u306a\u308a\u3001\u7ba1\u7406\u306e\u624b\u9593\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u6a5f\u80fd\u3092\u5c0e\u5165\u3059\u308b\u305f\u3081\u306e\u624b\u9806\u3092\u3053\u308c\u304b\u3089\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u57fa\u672c\u60c5\u5831\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002 OS\u30d0\u30fc\u30b8\u30e7\u30f37.6.1810host\u540dad01\u30c9\u30e1\u30a4\u30f3examp&hellip;","protected":false},"author":17,"featured_media":6094,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[44],"class_list":{"0":"post-6023","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-samba","8":"tag-season13"},"_links":{"self":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/6023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6023"}],"version-history":[{"count":24,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/6023\/revisions"}],"predecessor-version":[{"id":6092,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/6023\/revisions\/6092"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/media\/6094"}],"wp:attachment":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}