{"id":275,"date":"2017-01-22T19:49:39","date_gmt":"2017-01-22T10:49:39","guid":{"rendered":"https:\/\/blog.chanha.me\/?p=275"},"modified":"2017-02-01T21:15:17","modified_gmt":"2017-02-01T12:15:17","slug":"samba-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.chanha.kr\/?p=275","title":{"rendered":"Samba \uc124\uc815\ud558\uae30"},"content":{"rendered":"<p>\uc6b0\uc120\uc801\uc73c\ub85c\ub294 \ub0b4\ubd80\uc5d0\uc11c\ub9cc \uc0ac\uc6a9\ud560 Samba\ub97c \uc124\uc815\ud558\ub294 \ubc95\uc744 \uc54c\uc544\ubcf4\ub3c4\ub85d\ud558\uc790.<\/p>\n<p>Samba\ub97c \uc124\uc815\ud558\uac8c\ub418\uba74 \ub3d9\uc77c \ub124\ud2b8\uc6cc\ud06c\ub0b4\uc5d0\uc11c \uc708\ub3c4\uc6b0\ub098 \uc548\ub4dc\ub85c\uc774\ub4dc, \uc544\uc774\ud3f0\ub4f1\uc5d0\uc11c \uc544\ub798 \uadf8\ub9bc\uacfc \uac19\uc774 NAS\uc5d0 \uc811\uc18d\ud558\ub294 \uac83\uc774 \uac00\ub2a5\ud574\uc9c4\ub2e4.<\/p>\n<figure id=\"attachment_276\" aria-describedby=\"caption-attachment-276\" style=\"width: 997px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/Samba.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-276\" src=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/Samba.png\" alt=\"\" width=\"997\" height=\"613\" srcset=\"https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/Samba.png 997w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/Samba-300x184.png 300w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/Samba-768x472.png 768w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/Samba-700x430.png 700w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/Samba-520x320.png 520w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/Samba-360x221.png 360w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/Samba-250x154.png 250w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/Samba-100x61.png 100w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a><figcaption id=\"caption-attachment-276\" class=\"wp-caption-text\">&lt;\uc708\ub3c4\uc6b0 \ud0d0\uc0c9\uae30\uc5d0\uc11c \ubcf8 Samba&gt;<\/figcaption><\/figure>\n<p>\uc774\ub807\uac8c \uc124\uc815\ud558\uba74 \ub0b4\ubd80\uacf5\uc720\uae30\uc758 \ucd5c\ub300\uc18d\ub3c4\ub85c \uac01\uac01\uc758 \ub514\ubc14\uc774\uc2a4\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\uace0, \uc790\uc720\ub86d\uac8c \uc218\uc815\ud558\ub294 \uac83\uc774 \uac00\ub2a5\ud574\uc9c4\ub2e4.<\/p>\n<p>\uc6b0\uc120\uc801\uc73c\ub85c Ubuntu-Server\uc5d0\uc11c Samba\ub97c \uc0ac\uc6a9\ud558\uae30\uc704\ud574\uc11c<\/p>\n<pre class=\"lang:sh decode:true\">sudo apt-get install samba<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \uc774\uc6a9\ud574 Samba\ub97c \uc124\uce58\ud574\uc900\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true\">smbpasswd - a &lt;\uc0ac\uc6a9\uc790\uacc4\uc815&gt;<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \ud1b5\ud574\uc11c smbpasswd\uc5d0 \uc0ac\uc6a9\uc790\ub97c \ucd94\uac00\ud574\uc90d\ub2c8\ub2e4.<\/p>\n<p>\uadf8\ud6c4<\/p>\n<pre class=\"lang:sh decode:true\">sudo vim \/etc\/samba\/smb.conf<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \uc774\uc6a9\ud574 Samba \uc124\uc815\ud30c\uc77c\uc744 \uc5f4\uc5b4\uc900\ub2e4.<\/p>\n<p>\uae30\ubcf8\uc801\uc73c\ub85c [global] \uc601\uc5ed\uc5d0\u00a0hosts allow \uc635\uc158\uc744 \uc8fc\uba74 \ud2b9\uc815 \uc8fc\uc18c\ub300\uc5ed\uc5d0\uc11c\ub9cc \uc811\uc18d\uc774 \uac00\ub2a5\ud574\uc9c4\ub2e4<\/p>\n<p>(192.172.1. \ub85c \uc124\uc815\ud558\uba74 192.172.1.0~192.172.1.255\uae4c\uc9c0\uc758 \uc8fc\uc18c\ub9cc \uc811\uc18d\uc774 \uac00\ub2a5\ud574\uc9c4\ub2e4.)<\/p>\n<blockquote><p>IP\uc8fc\uc18c\ub294 ifconfig\ub97c \ud1b5\ud574 \ud655\uc778\ud55c \uacf5\uc720\uae30 \ub0b4\ubd80\uc758 \uc8fc\uc18c\ub85c \uc124\uc815\ud574\uc57c\ud55c\ub2e4.<\/p><\/blockquote>\n<p>\uadf8\ub9ac\uace0 \uac19\uc740 workgroup\ub0b4\uc5d0\uc11c\ub9cc \uc811\uc18d\uc774 \uac00\ub2a5\ud558\ubbc0\ub85c \ub2e4\ub978 \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 workgroup\ub97c \ud655\uc778\ud55c \ub4a4 \ub3d9\uc77c\ud558\uac8c \ub9cc\ub4e4\uc5b4\uc900\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true\">hosts allow = 192.172.1.\r\nworkgroup = WORKGROUP<\/pre>\n<figure style=\"width: 967px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/smb.conf_.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-279\" src=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/smb.conf_.png\" alt=\"\" width=\"967\" height=\"777\" srcset=\"https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/smb.conf_.png 967w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/smb.conf_-300x241.png 300w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/smb.conf_-768x617.png 768w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/smb.conf_-700x562.png 700w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/smb.conf_-520x418.png 520w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/smb.conf_-360x289.png 360w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/smb.conf_-250x201.png 250w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/smb.conf_-100x80.png 100w\" sizes=\"auto, (max-width: 967px) 100vw, 967px\" \/><\/a><figcaption class=\"wp-caption-text\">&lt;samba \uc124\uc815&gt;<\/figcaption><\/figure>\n<p>\uadf8 \ud6c4 \uacf5\uc720\ub420 \ub514\ub809\ud1a0\ub9ac\ub97c \ud558\ub098\uc529 \uc124\uc815\ud574\uc8fc\uc5b4\uc57c\ud55c\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true\">[&lt;\uacf5\uc720\ud3f4\ub354\uc5d0 \ud45c\uc2dc \ub420  \uc774\ub984&gt;]\r\n   comment = &lt;comment&gt;\r\n   browseable = yes\r\n   writealbe = yes\r\n   path = &lt;\uacf5\uc720\ub420 \ub514\ub809\ud1a0\ub9ac&gt;\r\n   valid  users = &lt;\uc811\uadfc\ud5c8\uc6a9\ud560 \uc720\uc800\uba85&gt;\r\n   create mode = &lt;\ud30c\uc77c \uc0dd\uc131\uc2dc \uad8c\ud55c&gt;\r\n   directory mode = &lt;\ub514\ub809\ud1a0\ub9ac \uc0dd\uc131\uc2dc \uad8c\ud55c&gt;\r\n   force group = &lt;\uc0dd\uc131\ub41c \ud30c\uc77c, \ub514\ub809\ud1a0\ub9ac\uc758 \uadf8\ub8f9&gt;\r\n   force user = &lt;\uc0dd\uc131\ub41c \ud30c\uc77c, \ub514\ub809\ud1a0\ub9ac\uc758 \uc18c\uc720\uc790&gt;<\/pre>\n<p>[] \uc0ac\uc774\uc5d0 \uacf5\uc720\ud3f4\ub354\uc5d0 \ud45c\uc2dc \ub420 \uc774\ub984\uc744 \uc801\uace0<\/p>\n<p>\uadf8\ud6c4 \uc544\ub798\uc5d0 \uacf5\uc720\ud3f4\ub354\uc758 \uc635\uc158\uc744 \uc124\uc815\ud574\uc900\ub2e4.<\/p>\n<ul>\n<li>comment \u00a0&#8211; \uacf5\uc720\ud3f4\ub354\uc5d0 \ud45c\uc2dc\ub420 comment<\/li>\n<li>browseable &#8211; \uacf5\uc720\ud3f4\ub354\uac00 \ud0d0\uc0c9\uc744 \ud1b5\ud574 \ubcf4\uc5ec\uc9c8 \uc218 \uc788\ub294\uc9c0 \uc124\uc815<\/li>\n<li>writeable &#8211; \uacf5\uc720\ud3f4\ub354\uc5d0 \uc0c8\ub85c\uc6b4 \ud30c\uc77c\uc744 \uc791\uc131\ud558\uac70\ub098 \uc218\uc815\ud560 \uc218 \uc788\ub294 \uc9c0 \uc124\uc815<\/li>\n<li>path &#8211; \uacf5\uc720\ub420 \ub514\ub809\ud1a0\ub9ac\ub97c \uc785\ub825\ud558\uba74 \ub41c\ub2e4 (ex. \/media\/hdd1\/\ubb38\uc11c)<\/li>\n<li>valid user &#8211; \uc811\uadfc\uc744 \ud5c8\uc6a9\ud560 \uc720\uc800\uba85\uc744 \ucd94\uac00\ud55c\ub2e4. \ub9ac\ub205\uc2a4\uc5d0 \ucd94\uac00\ub41c \uc720\uc800\ub97c \ub9d0\ud558\uba70 \uc5ec\ub7ec\uba85\uc758 \uc720\uc800\ub97c \ucd94\uac00\ud558\ub824\uba74 \uacf5\ubc31\uc73c\ub85c \uad6c\ubd84\ud558\uba74 \ub41c\ub2e4.<\/li>\n<li>create mod, directory mode &#8211; smb\uc811\uc18d\uc744 \ud1b5\ud574 \uc0dd\uc131\ub41c \ud30c\uc77c\uc758 \uad8c\ud55c\uc744 \uc9c0\uc815\ud574\uc8fc\ub294 \uc635\uc158\uc774\ub2e4. \u00a0chmod\uc640 \ub3d9\uc77c (ex. 0775)\n<ul>\n<li>\ub9ac\ub205\uc2a4 \uad8c\ud55c\uc5d0 \ub300\ud55c \uc815\ubcf4\ub294 <a href=\"http:\/\/eunguru.tistory.com\/93\" target=\"_blank\">\uc5ec\uae30<\/a>\ub97c \ucc38\uace0\ud558\uae30 \ubc14\ub780\ub2e4.<\/li>\n<\/ul>\n<\/li>\n<li>force group, force user &#8211;\u00a0smb\uc811\uc18d\uc744 \ud1b5\ud574 \uc0dd\uc131\ub41c \ud30c\uc77c\uc758 \uc18c\uc720\uc790\uc640 \uadf8\ub8f9\uc744 \uc9c0\uc815\ud574\uc8fc\ub294 \uc635\uc158\uc774\ub2e4. chown\uacfc \ub3d9\uc77c\ud558\uba70, \uc720\uc800, \uadf8\ub8f9\uba85\uc744 \uc785\ub825\ud558\uba74 \ub41c\ub2e4.\n<ul>\n<li>\ub9ac\ub205\uc2a4 \uadf8\ub8f9\uc5d0 \ub300\ud55c \uc815\ubcf4\ub294 <a href=\"http:\/\/eunguru.tistory.com\/93\" target=\"_blank\">\uc5ec\uae30<\/a>\ub97c \ucc38\uace0\ud558\uae30 \ubc14\ub780\ub2e4.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\uc124\uc815\uc744 \ubaa8\ub450 \ub9c8\uce5c\ub4a4<\/p>\n<pre class=\"lang:sh decode:true\">sudo \/etc\/init.d\/samba restart<\/pre>\n<p>\uba85\ub839\uc744 \ud1b5\ud574 smaba \uc11c\ube44\uc2a4\ub97c \uc7ac\uc2dc\uc791\ud574\uc900 \ub4a4 \uc811\uc18d\uc774 \uac00\ub2a5\ud55c\uc9c0 \ud655\uc778\ud574\ubcf8\ub2e4.<\/p>\n<div class='ez_cc_license_block'><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><img decoding=\"async\" alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http:\/\/i.creativecommons.org\/l\/by-nc-sa\/4.0\/88x31.png\"\/><\/a><br\/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License<\/a>.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc6b0\uc120\uc801\uc73c\ub85c\ub294 \ub0b4\ubd80\uc5d0\uc11c\ub9cc \uc0ac\uc6a9\ud560 Samba\ub97c \uc124\uc815\ud558\ub294 \ubc95\uc744 \uc54c\uc544\ubcf4\ub3c4\ub85d\ud558\uc790. Samba\ub97c \uc124\uc815\ud558\uac8c\ub418\uba74 \ub3d9\uc77c \ub124\ud2b8\uc6cc\ud06c\ub0b4\uc5d0\uc11c \uc708\ub3c4\uc6b0\ub098 \uc548\ub4dc\ub85c\uc774\ub4dc, \uc544\uc774\ud3f0\ub4f1\uc5d0\uc11c \uc544\ub798 \uadf8\ub9bc\uacfc \uac19\uc774 NAS\uc5d0 \uc811\uc18d\ud558\ub294 \uac83\uc774 \uac00\ub2a5\ud574\uc9c4\ub2e4. \uc774\ub807\uac8c \uc124\uc815\ud558\uba74 \ub0b4\ubd80\uacf5\uc720\uae30\uc758 \ucd5c\ub300\uc18d\ub3c4\ub85c \uac01\uac01\uc758 \ub514\ubc14\uc774\uc2a4\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\uace0, \uc790\uc720\ub86d\uac8c \uc218\uc815\ud558\ub294 \uac83\uc774 \uac00\ub2a5\ud574\uc9c4\ub2e4. \uc6b0\uc120\uc801\uc73c\ub85c Ubuntu-Server\uc5d0\uc11c Samba\ub97c \uc0ac\uc6a9\ud558\uae30\uc704\ud574\uc11c sudo apt-get install samba \uba85\ub839\uc5b4\ub97c \uc774\uc6a9\ud574 Samba\ub97c \uc124\uce58\ud574\uc900\ub2e4. smbpasswd &#8211; a &lt;\uc0ac\uc6a9\uc790\uacc4\uc815&gt; \uba85\ub839\uc5b4\ub97c \ud1b5\ud574\uc11c smbpasswd\uc5d0 \uc0ac\uc6a9\uc790\ub97c \ucd94\uac00\ud574\uc90d\ub2c8\ub2e4. \uadf8\ud6c4 sudo vim \/etc\/samba\/smb.conf \uba85\ub839\uc5b4\ub97c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-275","post","type-post","status-publish","format-standard","hentry","category-nas","clearfix"],"_links":{"self":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275"}],"version-history":[{"count":4,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions"}],"predecessor-version":[{"id":447,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions\/447"}],"wp:attachment":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}