{"id":1902,"date":"2020-10-18T14:06:06","date_gmt":"2020-10-18T05:06:06","guid":{"rendered":"https:\/\/www.kinryo.net\/?p=1902"},"modified":"2020-10-18T14:50:26","modified_gmt":"2020-10-18T05:50:26","slug":"drbd%e3%81%ab%e6%8c%91%e6%88%a6%ef%bc%9bsamba%e3%81%ae%e8%a8%ad%e5%ae%9a%ef%bc%9a8%ef%bc%88centos7","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=1902","title":{"rendered":"DRBD\u306b\u6311\u6226\uff1bsamba\u306e\u8a2d\u5b9a\uff1a8\uff08CentOS7)"},"content":{"rendered":"\r\n<p>samba\u306e\u30b0\u30eb\u30fc\u30d7\u306f\u4ee5\u4e0b\u306e\u65b9\u91dd<br \/>1\uff1a\u500b\u4eba\u7528directory\u306f\u4f5c\u3089\u306a\u3044<br \/>2\uff1apublic directory \u3082\u4f5c\u3089\u306a\u3044<br \/>3\uff1a\u793e\u54e1\u5168\u54e1\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308bdirectory\u3092\u4f5c\u308b<br \/>4\uff1a\u90e8\u9580\u6bce\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308bdirectory\u3092\u4f5c\u308b<br \/>\u3068\u3044\u3046\u65b9\u91dd\u3067smb.conf\u3092\u8a2d\u5b9a\u3057\u3066\u884c\u304d\u307e\u3059\u304c\u3001\u307b\u307c <a href=\"http:\/\/centossrv.com\/samba.shtml\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/centossrv.com \/samba.shtml<\/a><br \/>\u304b\u3089\u306e\u53d7\u3051\u58f2\u308a\u3067\u3059\u3002<br \/><span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> gedit \/etc\/samba\/smb.conf<\/span><br \/><span style=\"color: #008000;\">[global]<\/span><br \/><span style=\"color: #ff6600;\"><span style=\"color: #008000;\">unix charset = UTF-8<\/span>\u3000<\/span>\u2190\u3000\u8ffd\u52a0(Linux\u5074\u65e5\u672c\u8a9e\u6587\u5b57\u30b3\u30fc\u30c9)<br \/><span style=\"color: #008000;\">dos charset = CP932<\/span>\u3000\u2190\u3000\u8ffd\u52a0(Windows\u5074\u65e5\u672c\u8a9e\u6587\u5b57\u30b3\u30fc\u30c9)<br \/><span style=\"color: #008000;\">mangled names = no<\/span>\u3000\u2190\u3000\u8ffd\u52a0(\u9577\u3044\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u6587\u5b57\u5316\u3051\u5bfe\u51e6)<br \/><span style=\"color: #008000;\">vfs objects = catia<\/span>\u3000\u2190\u3000\u8ffd\u52a0(\u4e0a\u8a18\u5bfe\u51e6\u3067\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u4e0d\u53ef\u306b\u306a\u308b\u4e00\u90e8\u6587\u5b57\u306e\u7f6e\u63db)<br \/><span style=\"color: #008000;\">catia:mappings = 0x22:0xa8,0x2a:0xa4,0x2f:0xf8,0x3a:0xf7,0x3c:0xab,0x3e:0xbb,0x3f:0xbf,0x5c:0xff,0x7c:0xa6<\/span>\u3000\u2190\u3000\u8ffd\u52a0(\u4e0a\u8a18\u5bfe\u51e6\u3067\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u4e0d\u53ef\u306b\u306a\u308b\u4e00\u90e8\u6587\u5b57\u306e\u7f6e\u63db)<br \/><span style=\"color: #008000;\"># workgroup = NT-Domain-Name or Workgroup-Name<\/span><br \/><span style=\"color: #008000;\">workgroup = WORKGROUP<\/span>\u3000\u2190\u3000\u5909\u66f4(Windows\u306e\u30ef\u30fc\u30af\u30b0\u30eb\u30fc\u30d7\u540d\u3092\u6307\u5b9a)<br \/><span style=\"color: #008000;\">\u00a0\u203b\u30de\u30a4\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u21d2\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u540d\u30bf\u30d6\u5185\u306e\u30ef\u30fc\u30af\u30b0\u30eb\u30fc\u30d7\u6b04\u3092\u53c2\u7167<\/span><br \/><span style=\"color: #008000;\">; hosts allow = 192.168.1. 192.168.2. 127.<\/span><br \/><span style=\"color: #008000;\">hosts allow = 192.168.11. 127.<\/span>\u3000\u2190\u3000\u8ffd\u52a0(\u5185\u90e8\u304b\u3089\u306e\u307f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b,IP\u306f\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u5408\u308f\u305b\u308b)<br \/><span style=\"color: #008000;\"># If you want to automatically load your printer list rather<\/span><br \/><span style=\"color: #008000;\"># than setting them up individually then you\u2019ll need this<\/span><br \/><span style=\"color: #008000;\">; load printers = yes<\/span>\u3000\u2190\u3000\u884c\u982d\u306b;\u3092\u8ffd\u52a0(\u30d7\u30ea\u30f3\u30bf\u5171\u6709\u7121\u52b9\u5316)\u203bSamba\u3067\u30d7\u30ea\u30f3\u30bf\u3092\u5171\u6709\u3057\u306a\u3044\u5834\u5408<br \/><span style=\"color: #008000;\">load printers = no<\/span>\u3000\u2190\u3000\u8ffd\u52a0(\u30d7\u30ea\u30f3\u30bf\u5171\u6709\u7121\u52b9\u5316)\u203bSamba\u3067\u30d7\u30ea\u30f3\u30bf\u3092\u5171\u6709\u3057\u306a\u3044\u5834\u5408<br \/><span style=\"color: #008000;\">disable spoolss = yes<\/span>\u3000\u2190\u3000\u8ffd\u52a0(\u30d7\u30ea\u30f3\u30bf\u5171\u6709\u7121\u52b9\u5316)\u203bSamba\u3067\u30d7\u30ea\u30f3\u30bf\u3092\u5171\u6709\u3057\u306a\u3044\u5834\u5408<\/p>\r\n\r\n\r\n\r\n<p><span style=\"color: #ff6600;\">[<span style=\"color: #008000;\">kinryo]<\/span><\/span><br \/><span style=\"color: #008000;\">comment = \u793e\u54e1\u5168\u54e1\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b<\/span><br \/><span style=\"color: #008000;\">path = \/SmbData\/kinryo<\/span><br \/><span style=\"color: #008000;\">public = yes<\/span><br \/><span style=\"color: #008000;\">writable = yes<\/span><br \/><span style=\"color: #008000;\">force group = kinryo<\/span><br \/><span style=\"color: #008000;\">force create mode = 770<\/span><br \/><span style=\"color: #008000;\">force directory mode = 770<\/span><br \/><span style=\"color: #008000;\">valid users = @kinryo<\/span><br \/><span style=\"color: #008000;\">#\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3054\u307f\u7bb1\u6a5f\u80fd\u8ffd\u52a0(\u3053\u3053\u304b\u3089) \u203b\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u6642\u306b\u81ea\u52d5\u7684\u306b\u3054\u307f\u7bb1\u3078\u79fb\u52d5\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b<\/span><br \/><span style=\"color: #008000;\">vfs objects = recycle<\/span>\u3000\u2190\u3000\u3054\u307f\u7bb1\u306e\u6709\u52b9\u5316<br \/><span style=\"color: #008000;\">recycle:repository = .recycle<\/span>\u3000\u2190\u3000\u3054\u307f\u7bb1\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d<br \/><span style=\"color: #008000;\">recycle:keeptree = no<\/span>\u3000\u2190\u3000\u3054\u307f\u7bb1\u3078\u79fb\u52d5\u6642\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3092\u7dad\u6301\u3057\u306a\u3044<\/p>\r\n<p><span style=\"color: #008000;\"> recycle:versions = yes<\/span>\u3000\u2190\u3000\u540c\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3054\u307f\u7bb1\u306b\u3042\u308b\u5834\u5408\u306b\u5225\u540d\u3067\u79fb\u52d5<\/p>\r\n<p><span style=\"color: #008000;\">recycle:touch = no<\/span>\u3000\u2190\u3000\u3054\u307f\u7bb1\u3078\u79fb\u52d5\u6642\u306b\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u66f4\u65b0\u3057\u306a\u3044<br \/><span style=\"color: #008000;\">recycle:maxsize = 0<\/span>\u3000\u2190\u3000\u3054\u307f\u7bb1\u3078\u79fb\u52d5\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u4e0a\u9650(0:\u7121\u5236\u9650)<\/p>\r\n<p><span style=\"color: #008000;\">recycle:exclude = *.tmp ~$*<\/span>\u3000\u2190\u3000\u3053\u3053\u3067\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u3054\u307f\u7bb1\u3078\u79fb\u52d5\u305b\u305a\u306b\u5373\u524a\u9664\u3059\u308b<br \/>\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3054\u307f\u7bb1\u6a5f\u80fd\u8ffd\u52a0(\u3053\u3053\u307e\u3067)<\/p>\r\n\r\n\r\n\r\n<p>[kinryo]\u306e\u8aac\u660e\u3001\u90e8\u9580\u6bce\u306f\u3053\u306e\u3088\u3046\u306b\u4f5c\u6210\u3002\u30e6\u30fc\u30b6\u30fc\u3092\u6307\u5b9a\u3057\u3001\u90e8\u9580\u6bce\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u3063\u3066\u304a\u304f\u3002\u53c8\u3053\u306e\u30b0\u30eb\u30fc\u30d7\u306f\u30b7\u30b9\u30c6\u30e0\u4e0a\u306e\u30b0\u30eb\u30fc\u30d7\u3067\u3042\u308b\u3002\u5148\u305a\u306f\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u308b<br \/><span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> groupadd \u8ffd\u52a0\u3059\u308b\u30b0\u30eb\u30fc\u30d7\u540d<\/span><br \/>\u6b21\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u30b0\u30eb\u30fc\u30d7\u306b\u5165\u308c\u308b\u3002\u4e0b\u306e -aG \u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b0\u30eb\u30fc\u30d7\u306f\u5909\u66f4\u305b\u305a\u3001\u65b0\u3057\u3044\u30b0\u30eb\u30fc\u30d7\u306b\u3082\u5165\u308c\u308b\u8a2d\u5b9a<br \/><span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> usermod -aG \u6240\u5c5e\u3059\u308b\u30b0\u30eb\u30fc\u30d7\u540d \u30e6\u30fc\u30b6\u30fc\u540d<br \/><span style=\"color: #333333;\">\u3053\u308c\u3092\u7e70\u308a\u8fd4\u3057\u3001\u540c\u4e00\u30e6\u30fc\u30b6\u30fc\u3092\u8907\u6570\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3055\u305b\u308b\u4e8b\u3082\u3067\u304d\u307e\u3059\u3002<\/span><br \/><span style=\"color: #333333;\">smb.conf\u3092\u5909\u66f4\u3057\u305f\u306e\u3067 <\/span><br \/><\/span><span style=\"color: #008000;\"><span style=\"color: #333333;\"><span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> systemctl restart smb<\/span><br \/><span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> systemctl restart nmb<\/span><br \/><\/span><\/span><\/p>\r\n<p>smb.conf \u306b\u4f5c\u3063\u305fdirectory \u3092\/SmbData \u306e\u4e0b\u306b\u4f5c\u308b\u3002\u3053\u3053\u3067\u306fkinryo \u3060\u3051\u3067\u3059\u304c\u3001\u5404\u90e8\u9580\u6bce\u306edirectory \u3092\u4f5c\u3063\u3066\u884c\u304d\u307e\u3059\u3002<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">cd \/SmbData<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">mkdir smb.conf\u5185\u306b\u4f5c\u3063\u305fdirectory\u540d<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">chmod 770 smb.conf\u5185\u306b\u4f5c\u3063\u305fdirectory\u540d<\/span><br \/><span style=\"color: #ff6600;\"># <\/span><span style=\"color: #008000;\">chgrp -R \u30b0\u30eb\u30fc\u30d7\u540d smb.conf\u5185\u306b\u4f5c\u3063\u305fdirectory\u540d<\/span><br \/><span style=\"color: #333333;\">\u3053\u308c\u3092\u4f5c\u3063\u305fdirectory\u5206\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/span><\/p>\r\n<p>\u3053\u308c\u3067\u3001Window\u304b\u3089\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u308b\u7b48\u3067\u3059\u3002<br \/>\u30a6\u30a3\u30f3\u30c9\u30a6\u30a2\u30a4\u30b3\u30f3\u306e\u96a3\u306b\u3042\u308b\u201d\u3053\u3053\u306b\u5165\u529b\u3057\u3066\u691c\u7d22\u201d\u306b<br \/><span style=\"color: #008000;\">\\\\192.168.11.65<span style=\"color: #333333;\">\u00a0\u00a0 (\\\u306f\u534a\u89d2\uffe5)<\/span><\/span><br \/>\u3068\u5165\u529b\u3057\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3059\u3068\u4f5c\u3063\u305f\u30b0\u30eb\u30fc\u30d7\u30db\u30eb\u30c0\u30fc\u304c\u898b\u3048\u308b\u7b48\u3067\u3059\u3002<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1908\" src=\"https:\/\/www.kinryo.net\/wp-content\/uploads\/2020\/10\/b43f93aeb3b0d33cc08a2f4134ad11a7.png\" alt=\"\" width=\"833\" height=\"92\" srcset=\"https:\/\/www.kinryo.net\/wp-content\/uploads\/2020\/10\/b43f93aeb3b0d33cc08a2f4134ad11a7.png 833w, https:\/\/www.kinryo.net\/wp-content\/uploads\/2020\/10\/b43f93aeb3b0d33cc08a2f4134ad11a7-300x33.png 300w, https:\/\/www.kinryo.net\/wp-content\/uploads\/2020\/10\/b43f93aeb3b0d33cc08a2f4134ad11a7-150x17.png 150w\" sizes=\"auto, (max-width: 833px) 100vw, 833px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1909\" src=\"https:\/\/www.kinryo.net\/wp-content\/uploads\/2020\/10\/smbdata.png\" alt=\"\" width=\"775\" height=\"352\" srcset=\"https:\/\/www.kinryo.net\/wp-content\/uploads\/2020\/10\/smbdata.png 775w, https:\/\/www.kinryo.net\/wp-content\/uploads\/2020\/10\/smbdata-300x136.png 300w, https:\/\/www.kinryo.net\/wp-content\/uploads\/2020\/10\/smbdata-150x68.png 150w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>samba\u306e\u30b0\u30eb\u30fc\u30d7\u306f\u4ee5\u4e0b\u306e\u65b9\u91dd1\uff1a\u500b\u4eba\u7528directory\u306f\u4f5c\u3089\u306a\u30442\uff1apublic directory \u3082\u4f5c\u3089\u306a\u30443\uff1a\u793e\u54e1\u5168\u54e1\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308bdirectory\u3092\u4f5c\u308b4\uff1a\u90e8\u9580\u6bce\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308bdirectory\u3092\u4f5c\u308b &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=1902\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"vkexunit_cta_each_option":"","footnotes":""},"categories":[20],"tags":[],"class_list":["post-1902","post","type-post","status-publish","format-standard","hentry","category-drbdcentos7"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1902"}],"version-history":[{"count":6,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1902\/revisions"}],"predecessor-version":[{"id":1906,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/1902\/revisions\/1906"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}