{"id":4237,"date":"2025-05-06T09:05:15","date_gmt":"2025-05-06T00:05:15","guid":{"rendered":"https:\/\/www.kinryo.net\/?p=4237"},"modified":"2025-05-06T10:22:12","modified_gmt":"2025-05-06T01:22:12","slug":"%e8%87%aa%e5%ae%85%e3%81%ablinux%e3%81%a7samba%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e7%ab%8b%e3%81%a6%e3%81%9f%e3%81%8c%e6%8e%a5%e7%b6%9a%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%ef%bc%81%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=4237","title":{"rendered":"\u81ea\u5b85\u306bLINUX\u3067SAMBA\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3066\u305f\u304c\u63a5\u7d9a\u3067\u304d\u306a\u3044\uff01\uff01"},"content":{"rendered":"<p>\u30ed\u30fc\u30ab\u30eb\u306eLINUX\u306ePC\u304b\u3089\u3064\u306a\u304c\u3089\u306a\u3044(IP\u30a2\u30c9\u30ec\u30b9\u306f\u4f0f\u305b\u5b57\uff09<br \/>\n<span style=\"color: #ff00ff;\">\u6ce8\uff1awordpress\u306e\u554f\u984c\u3067\u534a\u89d2\u306e \uff70\uff70 \u304c &#8211; \u306e\u69d8\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059<\/span><br \/>\n<span style=\"color: #ff6600;\">[root@res-linux9 ~]#<\/span><span style=\"color: #008000;\"> nc -vz 192.168.X.XXX 445<\/span><br \/>\n<span style=\"color: #ff6600;\">Ncat: Version 7.92 ( https:\/\/nmap.org\/ncat )<\/span><br \/>\n<span style=\"color: #ff6600;\">Ncat: No route to host.<\/span><br \/>\n192.168.X.XXX\u306fSAMBA\u30b5\u30fc\u30d0\u30fc\u306eIP<br \/>\n\u307e\u305a\u306f\u30b5\u30fc\u30d0\u30fc\u306efirewall\u3092\u7591\u3046<br \/>\n<span style=\"color: #ff6600;\">[root@backup ~]#<\/span> <span style=\"color: #008000;\">cat firewall.sh |grep 445\/tcp<\/span><br \/>\n<span style=\"color: #ff6600;\">firewall-cmd &#8211;add-port=445\/tcp &#8211;zone=domestic &#8211;permanent &gt;\/dev\/null<br \/>\n<span style=\"color: #333333;\">\u30dd\u30fc\u30c8\u306f\u958b\u3044\u3066\u3044\u308b\u3002<\/span><br \/>\n<\/span>\u3058\u3083\u3042\u3001samba\u306f\u52d5\u3044\u3066\u3044\u308b\u304b<br \/>\n<span style=\"color: #ff6600;\">[root@backup ~]#<\/span> <span style=\"color: #008000;\">systemctl status smb<\/span><br \/>\n<span style=\"color: #ff6600;\">\u25cf smb.service &#8211; Samba SMB Daemon<\/span><br \/>\n<span style=\"color: #ff6600;\">Loaded: loaded (\/usr\/lib\/systemd\/system\/smb.service; enabled; preset: disabled)<\/span><br \/>\n<span style=\"color: #ff6600;\">Active: active (running) since Sun 2025-05-04 12:28:54 JST; 1 day 20h ago<\/span><br \/>\n\u30b5\u30fc\u30d0\u30fc\u3082\u52d5\u3044\u3066\u3044\u308b\u3002\u30dd\u30fc\u30c8\u3082\u958b\u3044\u3066\u3044\u308b\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u3082\u52d5\u3044\u3066\u3044\u308b\u3002\u4f55\u3067\u3060\uff01\uff01\uff01<br \/>\n<span style=\"color: #ff6600;\">[root@backup ~]#<\/span> <span style=\"color: #008000;\">firewall-cmd &#8211;list-all &#8211;zone=domestic<\/span><br \/>\n<span style=\"color: #ff6600;\">Error: INVALID_ZONE: domestic<br \/>\n<span style=\"color: #333333;\">\u3042\u308c\u30fcdomestic\u304cINVALID\u306b\u306a\u3063\u3066\u3044\u308b\u305e\u30fc<\/span><br \/>\n<\/span><span style=\"color: #ff00ff;\">\u554f\u984c\u306f<\/span><a href=\"https:\/\/centossrv.com\/almalinux\/firewall.shtml\">https:\/\/centossrv.com\/almalinux\/firewall.shtml<\/a><br \/>\n<span style=\"color: #ff00ff;\">\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6700\u5f8c\u306e2\u884c\u306e\u30b3\u30d4\u30fc\u304c\u51fa\u6765\u3066\u3044\u306a\u304b\u3063\u305f\u3002<br \/>\n<span style=\"color: #0000ff;\"># \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a\u53cd\u6620<\/span><br \/>\n<span style=\"color: #0000ff;\">firewall-cmd &#8211;reload &gt;\/dev\/null<\/span><br \/>\n<\/span>\u3092\u8ffd\u8a18\u3001\u3046\u3093\u3067\u518d\u5ea6\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8d70\u3089\u3059<br \/>\n<span style=\"color: #ff6600;\">[root@backup ~]#<\/span> <span style=\"color: #008000;\">sh firewall.sh<\/span><br \/>\n<span style=\"color: #ff6600;\">success<br \/>\n<span style=\"color: #333333;\">\u3046\u3093\u3067\u3001linux\u306epc\u304b\u3089\u518d\u5ea6\u78ba\u8a8d<\/span><br \/>\n[root@res-linux9 ~]# <span style=\"color: #008000;\">nc -vz 192.168.X.XXX 445<\/span><br \/>\nNcat: Version 7.92 ( https:\/\/nmap.org\/ncat )<br \/>\nNcat: Connected to 192.168.X.XXX:445.<br \/>\nNcat: 0 bytes sent, 0 bytes received in 0.01 seconds.<br \/>\n<span style=\"color: #333333;\">\u3084\u3063\u3068\u3064\u306a\u304c\u3063\u305f\u306e\u3067\u3001<\/span><span style=\"color: #333333;\">\u3053\u308c\u3067WINDOWS 11\u306ePC\u304b\u3089\u3082\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u3002<\/span><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ed\u30fc\u30ab\u30eb\u306eLINUX\u306ePC\u304b\u3089\u3064\u306a\u304c\u3089\u306a\u3044(IP\u30a2\u30c9\u30ec\u30b9\u306f\u4f0f\u305b\u5b57\uff09 \u6ce8\uff1awordpress\u306e\u554f\u984c\u3067\u534a\u89d2\u306e \uff70\uff70 \u304c &#8211; \u306e\u69d8\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059 [root@res-linux9 ~]# nc -vz 192. &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=4237\">\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":[10],"tags":[],"class_list":["post-4237","post","type-post","status-publish","format-standard","hentry","category-linux"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/4237","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=4237"}],"version-history":[{"count":14,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/4237\/revisions"}],"predecessor-version":[{"id":4251,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/4237\/revisions\/4251"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}