{"id":1360,"date":"2024-04-27T19:49:17","date_gmt":"2024-04-27T16:49:17","guid":{"rendered":"https:\/\/geckich.site\/?p=1360"},"modified":"2025-02-27T15:39:27","modified_gmt":"2025-02-27T13:39:27","slug":"%d1%8f%d0%ba-%d0%b7%d0%bc%d0%be%d0%bd%d1%82%d1%83%d0%b2%d0%b0%d1%82%d0%b8-samba-%d0%b4%d0%b8%d1%80%d0%b5%d0%ba%d1%82%d0%be%d1%80%d1%96%d1%97-%d0%bf%d0%be-%d0%bc%d0%b5%d1%80%d0%b5%d0%b6%d1%96-%d0%b2-ub","status":"publish","type":"post","link":"https:\/\/geckich.space\/?p=1360","title":{"rendered":"\u042f\u043a \u0437\u043c\u043e\u043d\u0442\u0443\u0432\u0430\u0442\u0438 Samba \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0456\u0457 \u043f\u043e \u043c\u0435\u0440\u0435\u0436\u0456 \u0432 Ubuntu, Debian"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0443\u0432\u0430\u0442\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0456\u044e Samba \u0432 \u043b\u0456\u043d\u0443\u043a\u0441 Debian \u0442\u0440\u0435\u0431\u0430 \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0456 \u043a\u0440\u043e\u043a\u0438:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u043f\u0430\u043a\u0435\u0442 cifs-utils:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>sudo apt install cifs-utils <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0456\u044e, \u0432 \u044f\u043a\u0443 \u0431\u0443\u0434\u0435\u0442\u0435 \u043c\u043e\u043d\u0442\u0443\u0432\u0430\u0442\u0438: <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>sudo mkdir \/media\/share <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0444\u0430\u0439\u043b \u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0443:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>nano \/root\/.smbcredentials<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0430 \u0434\u043e\u0434\u0430\u0442\u0438 \u0434\u043e \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043b\u043e\u0433\u0456\u043d \u0442\u0430 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043e \u0421\u0430\u043c\u0431\u0430 \u0448\u0430\u0440\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>username=smb_username<br>password=smb_password<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u0440\u043e\u0431\u0438\u0442\u0438 \u0444\u0430\u0439\u043b \u0442\u0456\u043b\u044c\u043a\u0438 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u043d\u043d\u044f \u0434\u043b\u044f \u0432\u043b\u0430\u0441\u043d\u0438\u043a\u0430 \u0444\u0430\u0439\u043b\u0443:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>chmod 400 \/root\/.smbcredentials<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0417\u043c\u043e\u043d\u0442\u0443\u0432\u0430\u0442\u0438 \u0441\u0430\u043c\u0431\u0430 \u0448\u0430\u0440\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mount -t cifs -o rw,vers=3.0,credentials=\/root\/.smbcredentials \/\/192.168.1.10\/share \/media\/share<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043e\u0434\u0430\u0442\u0438 \u0437\u0430\u043f\u0438\u0441 \u0434\u043e<strong> \/etc\/fstab<\/strong>, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u0448\u0430\u0440\u0430 \u043c\u043e\u043d\u0442\u0443\u0432\u0430\u043b\u0430\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u043a\u043e\u043c\u043f&#8217;\u044e\u0442\u0435\u0440\u0430\/\u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/192.168.1.10\/share \/media\/share cifs vers=3.0,credentials=\/root\/.smbcredentials<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/tecadmin.net\/mounting-samba-share-on-ubuntu\/\">https:\/\/tecadmin.net\/mounting-samba-share-on-ubuntu\/<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0443\u0432\u0430\u0442\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0456\u044e Samba \u0432 \u043b\u0456\u043d\u0443\u043a\u0441 Debian \u0442\u0440\u0435\u0431\u0430 \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0456 \u043a\u0440\u043e\u043a\u0438: \u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u043f\u0430\u043a\u0435\u0442 cifs-utils: sudo apt install cifs-utils \u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0456\u044e, \u0432 \u044f\u043a\u0443 \u0431\u0443\u0434\u0435\u0442\u0435 \u043c\u043e\u043d\u0442\u0443\u0432\u0430\u0442\u0438: sudo mkdir \/media\/share \u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0444\u0430\u0439\u043b \u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0443: nano \/root\/.smbcredentials \u0422\u0430 \u0434\u043e\u0434\u0430\u0442\u0438 \u0434\u043e \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043b\u043e\u0433\u0456\u043d \u0442\u0430 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043e \u0421\u0430\u043c\u0431\u0430 \u0448\u0430\u0440\u0438: \u0417\u0440\u043e\u0431\u0438\u0442\u0438 \u0444\u0430\u0439\u043b \u0442\u0456\u043b\u044c\u043a\u0438 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u043d\u043d\u044f \u0434\u043b\u044f \u0432\u043b\u0430\u0441\u043d\u0438\u043a\u0430 \u0444\u0430\u0439\u043b\u0443: &hellip; <a href=\"https:\/\/geckich.space\/?p=1360\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u042f\u043a \u0437\u043c\u043e\u043d\u0442\u0443\u0432\u0430\u0442\u0438 Samba \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0456\u0457 \u043f\u043e \u043c\u0435\u0440\u0435\u0436\u0456 \u0432 Ubuntu, Debian<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10,7],"tags":[27,48,201,100],"class_list":["post-1360","post","type-post","status-publish","format-standard","hentry","category-linux","category-sysadmin","tag-debian","tag-linux","tag-samba","tag-100"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/1360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1360"}],"version-history":[{"count":4,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/1360\/revisions"}],"predecessor-version":[{"id":1391,"href":"https:\/\/geckich.space\/index.php?rest_route=\/wp\/v2\/posts\/1360\/revisions\/1391"}],"wp:attachment":[{"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geckich.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}