{"id":750,"date":"2018-12-03T14:57:34","date_gmt":"2018-12-03T05:57:34","guid":{"rendered":"https:\/\/cent-niship\/mput\/?page_id=750"},"modified":"2018-12-03T14:57:34","modified_gmt":"2018-12-03T05:57:34","slug":"nas-kinou-add","status":"publish","type":"page","link":"https:\/\/east19-mikas.com\/mpat\/?page_id=750","title":{"rendered":"NAS\u6a5f\u80fd\u306e\u8ffd\u52a0"},"content":{"rendered":"<div class=\"main2\">NAS\u6a5f\u80fd\u306e\u8ffd\u52a0<\/div>\n<p>&nbsp;<\/p>\n<div class=\"sub1\">Samba \u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3067\u3059\u3002<\/div>\n<div id=\"m10\">\u4f8b\u3068\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u304c\u5fc5\u8981\u306a\u30a2\u30af\u30bb\u30b9\u6a29\u4ed8\u306e\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u300csecurity\u300d\u3068\u3044\u3046\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3001\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3078\u306f\u305d\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u5c5e\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u304c\u8a8d\u8a3c\u3057\u3066\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/div>\n<h4>[1]Samba \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a<\/h4>\n<pre class=\"d1\">[root@smb ~]# <span style=\"color: #ff0;\">yum<\/span> -y install samba samba-client\n\n[root@smb ~]# <span style=\"color: #ff0;\">groupadd<\/span> security\n[root@smb ~]# <span style=\"color: #ff0;\">mkdir<\/span> \/home\/security\n[root@smb ~]# <span style=\"color: #ff0;\">chgrp<\/span> security \/home\/security\n[root@smb ~]# <span style=\"color: #ff0;\">chmod<\/span> 770 \/home\/security\n\n[root@smb ~]# <span style=\"color: #ff0;\">vi<\/span> \/etc\/samba\/smb.conf\n<span style=\"color: #f4f;\"># 66\u884c\u76ee\u3042\u305f\u308a\uff1a\u4ee5\u4e0b2\u884c\u8ffd\u8a18<\/span>\nunix charset = UTF-8\ndos charset = CP932\n\n<span style=\"color: #f4f;\"># 90\u884c\u76ee\uff1a\u5909\u66f4 ( Windows\u306b\u5408\u308f\u305b\u308b )<\/span>\nworkgroup = <span style=\"color: #f4f;\">WORKGROUP<\/span>\n<span style=\"color: #f4f;\"># 96\u884c\u76ee\uff1a\u30b3\u30e1\u30f3\u30c8\u89e3\u9664\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308bIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a<\/span>\nhosts allow = 127.<span style=\"color: #f4f;\">10.0.0.<\/span>\n\n<span style=\"color: #f4f;\"># \u6700\u7d42\u884c\u306b\u8ffd\u8a18<\/span>\n\n[Security]\n<span style=\"color: #f4f;\"># \u4efb\u610f\u306e\u540d\u524d\u3092\u6307\u5b9a<\/span>\npath = \/home\/security\nwritable = yes\ncreate mode = 0770\ndirectory mode = 0770\nguest ok = no\n# \u30b2\u30b9\u30c8\u306f\u4e0d\u8a31\u53ef\nvalid users = @security\n<span style=\"color: #f4f;\"># security \u30b0\u30eb\u30fc\u30d7\u306e\u307f\u30a2\u30af\u30bb\u30b9\u8a31\u53ef<\/span>\n<\/pre>\n<pre class=\"d1\">[root@smb ~]# <span style=\"color: #ff0;\">systemctl<\/span> start smb nmb\n[root@smb ~]# <span style=\"color: #ff0;\">systemctl<\/span> enable smb nmb\n<\/pre>\n<h4>[2] Samba \u30e6\u30fc\u30b6\u30fc\u767b\u9332<\/h4>\n<p>\u203bSamba\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3059\u308b\u524d\u306bOS\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u6709\u308a\u307e\u3059\u3002OS\u306b\u30e6\u30fc\u30b6\u30fc\u304c\u7121\u3044\u3068\u3001Samba\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u306f\u306d\u3089\u308c\u307e\u3059\u3002Samba\u30b5\u30fc\u30d3\u30b9\u306e\u307f\u5229\u7528\u3057\u3001OS\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3059\u308b\u306b\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"d1\"><span style=\"color: #f4f;\">OS\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332<\/span>\n[root@smb ^]# <span style=\"color: #ff0;\">useradd<\/span> smbuser -p ****** -s \/bin\/false\n<span style=\"color: #f4f;\">OS\u306b\u767b\u9332\u3057\u305f smbuser \u3092Samba\u30e6\u30fc\u30b6\u30fc\u306b\u3082\u767b\u9332\u3057\u307e\u3059<\/span>\n[root@smb ~]# <span style=\"color: #ff0;\">smbpasswd<\/span> -a smbuser\nNew SMB password:\n<span style=\"color: #f4f;\"># \u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a<\/span>\nRetype new SMB password:\n<span style=\"color: #f4f;\"># \u78ba\u8a8d\u518d\u5165\u529b<\/span>\nAdded user smbuser.\n[root@smb ~]# <span style=\"color: #ff0;\">usermod<\/span> -G security cent\n<\/pre>\n<h4>[3] Firewalld \u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001Samba \u30b5\u30fc\u30d3\u30b9\u306e\u8a31\u53ef\u304c\u5fc5\u8981\u3067\u3059\u3002<\/h4>\n<pre class=\"d1\">[root@smb ~]# <span style=\"color: #ff0;\">firewall-cmd --add-service=samba --permanent<\/span>\nsuccess\n[root@smb ~]# <span style=\"color: #ff0;\">firewall-cmd --reload<\/span>\nsuccess\n<\/pre>\n<h4>[3] SELinux \u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001SELinux \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5909\u66f4\u304c\u5fc5\u8981\u3067\u3059\u3002<\/h4>\n<pre class=\"d1\">[root@smb ~]# <span style=\"color: #ff0;\">setsebool -P samba_enable_home_dirs on<\/span>\n[root@smb ~]# <span style=\"color: #ff0;\">restorecon -R \/home\/security<\/span>\n<\/pre>\n<h4>[4] \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u8a2d\u5b9a\u3067\u3059\u3002Windows 10 \u3092\u4f8b\u306b\u3057\u307e\u3059\u3002<\/h4>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u300c\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u300d\uff0d\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c9\u30e9\u30a4\u30d6\u306e\u5272\u308a\u5f53\u3066\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3513 alignnone\" src=\"https:\/\/east19-mikas.com\/wp-content\/uploads\/2019\/03\/1.png\" alt=\"\" width=\"800\" height=\"600\"><\/p>\n<h4>[5] \u753b\u9762\u306e\u4f8b\u306b\u3082\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u30d5\u30a9\u30eb\u30c0\u306e\u6b04\u306b\u300c\\\\\u30b5\u30fc\u30d0\u30fc\u540d\\\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u540d\u300d\u3068\u6307\u5b9a\u3057\u307e\u3059\u3002<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3515 alignnone\" src=\"https:\/\/east19-mikas.com\/wp-content\/uploads\/2019\/03\/4.png\" alt=\"\" width=\"800\" height=\"600\"><\/p>\n<h4>[6] \u8a8d\u8a3c\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002[1] \u3067\u767b\u9332\u3057\u305f Samba \u30e6\u30fc\u30b6\u30fc\/\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u8a8d\u8a3c\u3057\u307e\u3059\u3002<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3516 alignnone\" src=\"https:\/\/east19-mikas.com\/wp-content\/uploads\/2019\/03\/3.png\" alt=\"\" width=\"800\" height=\"600\"><\/p>\n<h4>[7] \u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3057\u305f\u3002<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>NAS\u6a5f\u80fd\u306e\u8ffd\u52a0 &nbsp; Samba \u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3067\u3059\u3002 \u4f8b\u3068\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u304c\u5fc5\u8981\u306a\u30a2\u30af\u30bb\u30b9\u6a29\u4ed8\u306e\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 \u300csecurity\u300d\u3068\u3044\u3046\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3001\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u3078\u306f\u305d\u306e\u30b0\u30eb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":376,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-750","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/pages\/750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=750"}],"version-history":[{"count":0,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/pages\/750\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/pages\/376"}],"wp:attachment":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}