{"id":13924,"date":"2022-09-22T11:49:49","date_gmt":"2022-09-22T08:49:49","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/%d8%a7%d9%84%d9%88%d8%b5%d9%88%d9%84-%d9%85%d8%b9-samba-cifs\/"},"modified":"2022-09-27T15:30:44","modified_gmt":"2022-09-27T12:30:44","password":"","slug":"access-with-samba-cifs","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/access-with-samba-cifs\/","title":{"rendered":"Access with SAMBA\/CIFS"},"content":{"rendered":"\n<p>You can mount your Storage Box via Samba\/CIFS. You can use the following UNC path.<\/p>\n\n\n\n<p>If you are using your main account, the share name is\u00a0<code><span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">backup<\/span><\/code>.<\/p>\n\n\n\n<p>If you are using a sub-account, you must use the username of the sub-account as the username and share name.<\/p>\n\n\n\n<p><strong>Linux\/Unix:<\/strong><\/p>\n\n\n\n<p><code class=\"\"><span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">\/\/&lt;username>.your-storagebox.de\/&lt;share_name><\/span><\/code><\/p>\n\n\n\n<p><strong>Windows<\/strong><\/p>\n\n\n<p><span style=\"background-color: #abb8c3;\">\\\\&lt;username&gt;.your-storagebox.de\\&lt;share_name&gt;<\/span><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"instructions\"><a href=\"https:\/\/docs.hetzner.com\/robot\/storage-box\/access\/access-samba-cifs\/#instructions\" target=\"_blank\" rel=\"noopener\"><\/a><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"instructions\"><a href=\"https:\/\/docs.hetzner.com\/robot\/storage-box\/access\/access-samba-cifs\/#instructions\" target=\"_blank\" rel=\"noopener\"><\/a>Instructions<\/h3>\n\n\n\n<p><strong>Linux<\/strong><\/p>\n\n\n\n<p>:In Linux-based systems, you can use the following command on the CLI to mount the file system<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>mount.cifs -o user=&lt;username>,pass=&lt;password> \/\/&lt;username>.your-storagebox.de\/backup \/PATH\/FOLDER<\/code><\/pre>\n\n\n\n<p>By adding the following line to <code><span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">\/etc\/fstab<\/span><\/code>, your system will automatically mount the file system at boot. (It is a single line!):<\/p>\n\n\n<p><span style=\"background-color: #abb8c3;\">\/\/&lt;username&gt;.your-storagebox.de\/backup \/mnt\/backup-server cifs iocharset=utf8,rw,credentials=\/etc\/backup-credentials.txt,uid=&lt;system account&gt;,gid=&lt;system group&gt;,file_mode=0660,dir_mode=0770 0 0<\/span><\/p>\n<p>\u00a0<\/p>\n\n\n<p>The file <span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">\/etc\/backup-credentials.txt (mode 0600) <\/span>should contain two lines as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>username=&lt;username>\npassword=&lt;password><\/code><\/pre>\n\n\n\n<p>In Debian-based distributions, the command is provided via the package cifs-utils.<\/p>\n\n\n\n<p><span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">apt-get install cifs-utils<\/span><\/p>\n\n\n\n<p>On Debian Wheezy based systems, edit the parameters as follows if you are having problems:<\/p>\n\n\n\n<p><span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">rsize=65536,wsize=130048<\/span><\/p>\n\n\n\n<p>You should also add the following lines to <span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">\/etc\/rc.local<\/span>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>modprobe cifs\necho 0 > \/proc\/fs\/cifs\/OplockEnabled<\/code><\/pre>\n\n\n\n<p><strong>FreeBSD<\/strong><\/p>\n\n\n\n<p>On FreeBSD, you can mount the Storage Box as follows:<\/p>\n\n\n\n<p>Add the following line to <span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">\/etc\/fstab<\/span>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>\/\/&lt;username>\/backup \/mnt\/storagebox smbfs rw,-N,-I=&lt;username>.your-storagebox.de,-U=&lt;username> 0       0<\/code><\/pre>\n\n\n<p>Replace <span style=\"background-color: #abb8c3;\">&lt;username&gt;<\/span> with the Robot-assigned username. Also you need to use <span style=\"background-color: #abb8c3;\">mkdir \/mnt\/storagebox<\/span> to create the local directory if it does not already exist.<\/p>\n\n\n<p>Add the following lines to <span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">\/etc\/nsmb.conf<\/span>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>&#91;&lt;username>]\ncharsets=UTF8:UTF8\n&#91;&lt;username>:&lt;username>]\npassword=$crypt-string<\/code><\/pre>\n\n\n\n<p>Create the crypt-string with <span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">smbutil crypt<\/span>.<\/p>\n\n\n\n<p><strong>Windows<\/strong><\/p>\n\n\n\n<p>In Windows, use the following instructions to connect your Storage Box as a network drive with its own drive letter:<\/p>\n\n\n<ol>\n<li>Open Windows Explorer.<\/li>\n<li><strong>Windows 7<\/strong>: On the left, click on <em>Computer<\/em> and then at the top on <em>Map network drive<\/em>.<br \/><strong>Windows 8\/10<\/strong>: On the left, click on <em>This PC<\/em>. And then at the top click on <em>Computer<\/em> and then on <em>Map network drive<\/em>.<\/li>\n<li>In the new dialog, select a network drive letter of your choice and enter <span style=\"background-color: #abb8c3;\">\\\\&lt;username&gt;.your-storagebox.de\\backup<\/span> for the folder. Enter a check next to <em>Reconnect at login<\/em> if you want to automatically establish a connection upon starting the system.<\/li>\n<li>When you are asked for login information here, you should enter the username and password you used for your Storage Box. Or as an alternative, you can save the login information in Windows.<\/li>\n<li>The setup of your Storage Box as a network drive should now be finished and you should be able to find it as a separate drive under <em>This PC<\/em> (Windows 8.1\/10) or <em>Computer<\/em> (Windows 7\/8).<\/li>\n<\/ol>\n<p>\u00a0<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"error-with-files-larger-than-4-gb\">Error with files larger than 4 GB<\/h3>\n\n\n\n<p>If there are errors when copying files that are 4 GB or larger, then it can help to deactivate caching. To do  <\/p>\n\n\n\n<p><code class=\"\"><span style=\"background-color:#abb8c3\" class=\"tadv-background-color\">-o cache=none<\/span><\/code> so, you need to mount the Storage Box with the extra parameter<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"encrypt-samba-connection\">Encrypt SAMBA connection<\/h3>\n\n\n\n<p>To encrypt a SAMBA connection, add the following option to your mount command:\u00a0<code>seal<\/code><\/p>\n\n\n\n<p>Example:<\/p>\n\n\n<p><span style=\"background-color: #abb8c3;\">mount.cifs -o seal,user=&lt;username&gt;,pass=&lt;password&gt; \/\/&lt;username&gt;.your-storagebox.de\/backup \/PATH\/FOLDER<\/span><\/p>\n\n\n<p>This feature is only available in newer Linux versions (e.g. starting with Ubuntu 18.04).<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can mount your Storage Box via Samba\/CIFS. You can use the following UNC path. If you are using your main account, the share name is\u00a0backup. If you are using a sub-account, you must use the username of the sub-account as the username and share name. Linux\/Unix: \/\/&lt;username>.your-storagebox.de\/&lt;share_name> Windows \\\\&lt;username&gt;.your-storagebox.de\\&lt;share_name&gt; Instructions Linux :In Linux-based systems, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","inline_featured_image":false,"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","footnotes":""},"doc_category":[2815],"doc_tag":[],"class_list":["post-13924","docs","type-docs","status-publish","hentry","doc_category-storag-box"],"year_month":"2026-04","word_count":573,"total_views":"5060","reactions":{"happy":"5","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"Storage Box","term_url":"https:\/\/www.hyyat.com\/en\/kb\/storag-box\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=13924"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13924\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=13924"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=13924"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=13924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}