{"id":228,"date":"2026-04-06T01:28:01","date_gmt":"2026-04-05T16:28:01","guid":{"rendered":"https:\/\/falcon21.space\/kazuya\/work\/?page_id=228"},"modified":"2026-04-06T01:28:01","modified_gmt":"2026-04-05T16:28:01","slug":"samba%e6%a7%8b%e7%af%89","status":"publish","type":"page","link":"https:\/\/falcon21.space\/kazuya\/work\/?page_id=228","title":{"rendered":"Samba\u69cb\u7bc9"},"content":{"rendered":"\n<p>\u3000\u3000\u3000\u3000\u3000\u3000\u3000<strong>Windows\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9(Samba)<\/strong>\u3000<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>samba<\/strong>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br>root@falcon21:~#\u00a0<strong>dnf -y install samba<\/strong><br>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f:<br>libnetapi-4.21.3-113.el10_0.x86_64<br>samba-4.21.3-113.el10_0.x86_64<br>samba-common-tools-4.21.3-113.el10_0.x86_64<br>samba-dcerpc-4.21.3-113.el10_0.x86_64<br>samba-ldb-ldap-modules-4.21.3-113.el10_0.x86_64<br>samba-libs-4.21.3-113.el10_0.x86_64<br><br>\u5b8c\u4e86\u3057\u307e\u3057\u305f!<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>samba\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<strong>\u8a2d\u5b9a<\/strong><br>root@falcon21:~#\u00a0<strong>mkdir \/home\/backup<\/strong><br><br>root@falcon21:~#\u00a0<strong>chmod 777 \/home\/backup<\/strong><br><br>samba<strong>\u8a2d\u5b9a<\/strong><br>root@falcon21:~#\u00a0<strong>vi \/etc\/samba\/smb.conf<\/strong><br>10 [global]<br>11 unix charset = UTF-8<br>12 dos charset = CP932<br>13 workgroup = \u30ef\u30fc\u30af\u30b0\u30eb\u30fc\u30d7\u540d<br>14 hosts allow = 127. 192.168.10.<br>15 map to guest = Bad User<br>16 security = user<br>17 passdb backend = tdbsam<br>18 printing = cups<br>19 printcap name = cups<br>20 load printers = yes<br>21 cups options = raw<br>22<br><br># \u6700\u7d42\u884c\u306b\u8ffd\u8a18<br><br>50 [backup]<br>51 path = \/home\/backup<br>52 writable = yes<br>53 force create mode = 777<br>54 force directory mode = 777<br>55<br>56 [All-Share]<br>57 path = \/<br>58 writable = yes<br>59 force create mode = 777<br>60 force directory mode = 777<br><br><br><strong>\u6709\u52b9\u5316<\/strong><br>root@falcon21:~#\u00a0<strong>systemctl enable &#8211;now smb<\/strong><br>Created symlink &#8216;\/etc\/systemd\/system\/multi-user.target.wants\/smb.service&#8217; \u2192 &#8216;\/usr\/lib\/systemd\/system\/smb.service&#8217;.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>firewall-\u8a2d\u5b9a<\/strong><br>root@falcon21:~#&nbsp;<strong>firewall-cmd &#8211;add-service=samba<\/strong><br>success<br><br>root@falcon21:~#&nbsp;<strong>firewall-cmd &#8211;runtime-to-permanent<\/strong><br>success<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>samba \u8d77\u52d5<\/strong>\u00a0<br>[root@falcon21 ~]# <strong>systemctl start smb<\/strong><br><br><strong>\u6c38\u7d9a\u7684\u306a\u63a5\u7d9a\u8a2d\u5b9a<\/strong>\u3000<br>[root@falcon21 ~]# <strong>systemctl enable smb &#8211;now<\/strong><br>Created symlink &#8216;\/etc\/systemd\/system\/multi-user.target.wants\/smb.service&#8217; \u2192 &#8216;\/usr\/lib\/systemd\/system\/smb.service&#8217;.<br><br><strong>samba\u518d \u8d77\u52d5<\/strong>\u00a0<br>[root@falcon21 ~]# <strong>systemctl restart smb<\/strong><br><br><strong>\u52d5\u4f5c\u72b6\u6cc1\u78ba\u8a8d<\/strong> [root@falcon21 ~]# <strong>systemctl status smb<\/strong><br> <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>samba \u30e6\u30fc\u30b6\u30fc\u767b\u9332<\/strong><br>root@falcon21:~#\u00a0<strong>pdbedit -a xxxxxx<\/strong><br><br><strong>samba \u30e6\u30fc\u30b6\u30fc\u78ba\u8a8d<\/strong><br>root@falcon21:~# <strong>pdbedit &#8211;list<\/strong><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><br> Windows10\u3000\u30ef\u30fc\u30af\u30b0\u30eb\u30fc\u30d7\u3000<strong>workgroup = SAMBA<\/strong>\u3092\u8a2d\u5b9a<br><br>Windows\u30c4\u30fc\u30eb\u3000\u2192\u3000\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u3000\u2192\u3000\u30b7\u30b9\u30c6\u30e0\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<br><br>\u3000\u2192\u3000\u30b7\u30b9\u30c6\u30e0\/ \u30ea\u30e2\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u306e\u8a31\u53ef\uff1d\u30b7\u30b9\u30c6\u30e0\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3000<br><br>\u3000\u2192\u3000\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u540d\u3000\/ \u30cd\u30c3\u30c8\u30ef\u30fc\u30afID\u3000 \u2192\u3000\u30c9\u30e1\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u3002<br><br>\u3000\u2192\u3000\u30ef\u30fc\u30af\u30b0\u30eb\u30fc\u30d7\u3000\u30ef\u30fc\u30af\u30b0\u30eb\u30fc\u30d7\u540d\u3000\u3092\u6307\u5b9a\u3002<br><br>\u3000\u3000\u3000<strong>\u518d\u8d77\u52d5<\/strong><br><br>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br><br>\u3000 <strong>Windows10\u3000<\/strong>\u3000\u3000\u3000<strong>\u300c\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c<br>\u5185\u90e8\u30a2\u30c9\u30ec\u30b9\u3092\u6253\u3061\u8fbc\u307f\u3001\u3000\u30e6\u30fc\u30b6\u30fc\u540d\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3001<br><\/strong><br><strong>\u30a2\u30af\u30bb\u30b9\u3000\u78ba\u8a8d\u3000\u3000OK\u3000\u3000<\/strong><br><br>***********************************************************************<br><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u3000\u3000\u3000\u3000\u3000Windows\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9(Samba)\u3000 samba\u30a4\u30f3\u30b9\u30c8\u30fc\u30ebroot@falcon21:~#\u00a0dnf -y install samba\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f:libnetapi-4.21.3-113 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-228","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/falcon21.space\/kazuya\/work\/index.php?rest_route=\/wp\/v2\/pages\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/falcon21.space\/kazuya\/work\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/falcon21.space\/kazuya\/work\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/falcon21.space\/kazuya\/work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/falcon21.space\/kazuya\/work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228"}],"version-history":[{"count":1,"href":"https:\/\/falcon21.space\/kazuya\/work\/index.php?rest_route=\/wp\/v2\/pages\/228\/revisions"}],"predecessor-version":[{"id":229,"href":"https:\/\/falcon21.space\/kazuya\/work\/index.php?rest_route=\/wp\/v2\/pages\/228\/revisions\/229"}],"wp:attachment":[{"href":"https:\/\/falcon21.space\/kazuya\/work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}