{"id":645,"date":"2011-06-23T13:35:45","date_gmt":"2011-06-23T07:35:45","guid":{"rendered":"http:\/\/notes.norfolks.org\/?p=645"},"modified":"2013-01-05T09:09:24","modified_gmt":"2013-01-05T03:09:24","slug":"%d0%bc%d0%be%d0%bd%d1%82%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5-%d1%81%d0%b5%d1%82%d0%b5%d0%b2%d0%be%d0%b9-%d0%bf%d0%b0%d0%bf%d0%ba%d0%b8-windows-%d0%b2-linux","status":"publish","type":"post","link":"https:\/\/notes.norfolks.fun\/?p=645","title":{"rendered":"\u041c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0438 Windows \u0432 Linux"},"content":{"rendered":"<pre lang=\"text\"># mount -t smbfs -o user=\"domain\/user%password\" \/\/server\/sharefolder \/home\/user\/folder\/<\/pre>\n<p>\u0438\u043b\u0438<br \/>\n# <\/p>\n<pre lang=\"text\">mount -t cifs -o user=\"domain\/user%password\" \/\/server\/sharefolder \/home\/user\/folder\/<\/pre>\n<p><code>\u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 <code>cifs-utils<\/code><\/code><\/p>\n<p><strong>\u0410\u0432\u0442\u043e\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/strong>:<br \/>\n\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 <strong><em>\/etc\/fstab<\/em><\/strong><\/p>\n<pre lang=\"text\">\/\/server\/sharefolder \/home\/user\/folder\/ smbfs username=domain\/user,password=\u043f\u0430\u0440\u043e\u043b\u044c 0 0<\/pre>\n<p>\u0410\u0432\u0442\u043e\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0438 \u0432 Ubuntu<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u0432 <code>fstab<\/code><\/p>\n<pre lang=\"text\">\/\/servername\/sharename  \/media\/windowsshare  cifs  guest,uid=1000,iocharset=utf8,codepage=unicode,unicode  0  0<\/pre>\n<p>, \u0433\u0434\u0435<br \/>\n<strong>guest<\/strong> &#8212; \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0448\u0430\u0440\u0435 \u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f,<br \/>\n<strong>uid=1000<\/strong> makes the Linux user specified by the id the owner of the mounted share, allowing them to rename files,<br \/>\nthe combination <strong>iocharset=utf8,codepage=unicode<\/strong>,unicode allows access to files with names in non-English languages. This doesn&#8217;t work with shares of devices like the Buffalo Tera Station, or Windows machines that export their shares using ISO8895-15. With those you need to use codepage=cp850, otherwise characters like the German &#8216;Umlaute&#8217; are displayed as garbage. <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \/etc\/fstab type \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c: <\/p>\n<pre lang=\"text\"># mount -a<\/pre>\n<p>This will (re)mount all entries listed in \/etc\/fstab.<\/p>\n","protected":false},"excerpt":{"rendered":"<p># mount -t smbfs -o user=&#187;domain\/user%password&#187; \/\/server\/sharefolder \/home\/user\/folder\/ \u0438\u043b\u0438 # mount -t cifs -o user=&#187;domain\/user%password&#187; \/\/server\/sharefolder \/home\/user\/folder\/ \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 cifs-utils \u0410\u0432\u0442\u043e\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \/etc\/fstab \/\/server\/sharefolder \/home\/user\/folder\/ smbfs username=domain\/user,password=\u043f\u0430\u0440\u043e\u043b\u044c 0 0 \u0410\u0432\u0442\u043e\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0438 \u0432 &hellip; <a href=\"https:\/\/notes.norfolks.fun\/?p=645\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,8],"tags":[],"class_list":["post-645","post","type-post","status-publish","format-standard","hentry","category-linux","category-8"],"_links":{"self":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=645"}],"version-history":[{"count":11,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/645\/revisions"}],"predecessor-version":[{"id":1444,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/645\/revisions\/1444"}],"wp:attachment":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}