{"id":1423,"date":"2010-05-10T08:40:24","date_gmt":"2010-05-10T08:40:24","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=1423"},"modified":"2024-03-08T17:39:45","modified_gmt":"2024-03-08T17:39:45","slug":"samba","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/samba\/","title":{"rendered":"Samba"},"content":{"rendered":"\n<p>Not just for file sharing, but also supports printing and name services. I now make it part of my standard Linux builds within Virtual Box but it is a pain in the arse with Ubuntu, it never seems to work out of the box. <\/p>\n\n\n\n<!--more-->\n\n\n\n<a name=\"ubuntu\"><\/a>\n\n\n\n<h3 class=\"wp-block-heading\">Ubuntu<\/h3>\n\n\n\n<p>I installed it today, and getting it to connect to the host is a complete pain in the butt. The apt install works well, installs the missing products and enables the daemons. <\/p>\n\n\n\n<p>My article &#8220;<a href=\"https:\/\/davelevy.info\/wiki\/back-to-ubuntu\/\">Back to Ubuntu<\/a>&#8221; dated Jun 2021 documents two fixes required to half make it work. I said, I had problems with samba, as it seems I still need smb version 1. Oracle VBox forums strongly suggest avoiding SMB1. The smb.conf file requires the following lines,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>client min protocol = NT1\nname resolve order = bcast host<\/code><\/pre>\n\n\n\n<p>But these didn&#8217;t work in 2023.  putty works, <strong>cmd sftp<\/strong><code><code> works but the windows file browser and filezilla do not.<\/code><\/code><\/p>\n\n\n\n<p>Some useful links,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/help.ubuntu.com\/search.html?cof=FORID%3A9&amp;cx=004599128559784038176%3Avj_p0xo-nng&amp;ie=UTF-8&amp;q=samba&amp;sa=Search\">Search on &#8216;Samba&#8217; at Ubuntu&#8217;s documentation site<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/help.ubuntu.com\/community\/SettingUpSamba\">Samba, the Community Documentation page<\/a><\/li>\n<\/ul>\n\n\n\n<p>and in 2023<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <a href=\"https:\/\/www.linuxquestions.org\/questions\/showthread.php?s=780ef08c24499db01c9696f311c0bcde&amp;p=5707696#post5707696\">linux questions forum thread<\/a>, focuses on workgroup argument and the visibility of the browsable argument in testparm&#8217;s output. <\/li>\n\n\n\n<li><a href=\"https:\/\/linuxconfig.org\/how-to-configure-samba-server-share-on-ubuntu-22-04-jammy-jellyfish-linux\">How to configure samba server share on ubuntu 22-04<\/a> from which I lifted the smb.conf config ; I need to look at this in more detail. <\/li>\n\n\n\n<li>The default firewall configurator became <strong><em>UFW<\/em><\/strong>. I found <a href=\"https:\/\/www.safe.security\/assets\/img\/research-paper\/pdf\/A%20Beginners%20Guide%20to%20Linux%20firewall.pdf\">this manual, A Beginners Guide to Linux firewall 2021<\/a>. ufw defaults to running <a href=\"https:\/\/linuxhandbook.com\/ufw-logs\/\">without logs<\/a>, they must be turned on. I need ssh, sftp, smb, nmb, http and https, is that all, maybe cups. I need to check if <em>iptables <\/em>have been set by apt. AFAIK ufw is an interface to iptables. It comes with rules which are on or off, for OpenSSH, apache and Samba. It is enabled\/disabled via the ufw cli. <\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Raspbian<\/h3>\n\n\n\n<p>And now I need it on my little pi. Check <a href=\"https:\/\/www.raspberrypi.org\/documentation\/remote-access\/samba.md\">this<\/a> out!<\/p>\n\n\n\n<p>I can now mount the NAS drive on the PI, but I need to mount it on a partition, check out clonezilla.<\/p>\n\n\n\n<p>I am having problems mounting the Pi&#8217;s shares on my real U22 machine using the <code>smb<\/code> protocol. <em>6\/12\/2022<\/em>, I found these,<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/askubuntu.com\/questions\/74789\/failed-to-retrieve-share-list-from-server-error-when-browsing-a-share-with-nau\">https:\/\/askubuntu.com\/questions\/74789\/failed-to-retrieve-share-list-from-server-error-when-browsing-a-share-with-nau<\/a>&nbsp;this mentions <code>smbtree<\/code>&nbsp;which I installed on the client<\/li>\n\n\n\n<li><a href=\"https:\/\/help.ubuntu.com\/stable\/ubuntu-help\/nautilus-connect.html.en\">https:\/\/help.ubuntu.com\/stable\/ubuntu-help\/nautilus-connect.html.en<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/ubuntu.com\/tutorials\/install-and-configure-samba#3-setting-up-samba\">Install-and-configure-samba, 3. Setting-up-samba<\/a>&nbsp;talks of <code>ufw<\/code>, which is not on the pi, but <code>iptables<\/code> is? so, here&#8217;s a page on the <a href=\"https:\/\/ixnfo.com\/en\/iptables-rules-for-samba.html\">samba\/iptables runes.<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/forums.raspberrypi.com\/viewtopic.php?t=262123\">https:\/\/forums.raspberrypi.com\/viewtopic.php?t=262123<\/a>, a thread on firewalls on the pi<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Using a credentials file<\/h3>\n\n\n\n<p>Here&#8217;s a link on credentials files,<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/forums.ni.com\/t5\/NI-Linux-Real-Time-Discussions\/Samba-share-using-credentials-file\/td-p\/3643381\">https:\/\/forums.ni.com\/t5\/NI-Linux-Real-Time-Discussions\/Samba-share-using-credentials-file\/td-p\/3643381<\/a><\/li>\n<\/ol>\n\n\n\n<p>And here&#8217;s <a href=\"https:\/\/lmgtfy.com\/?q=linux+samba\">a LMGTFY on &#8220;Linux Samba&#8221;<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>I replaced the original featured image, as it didn&#8217;t work for the current theme.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2010\/05\/samba-w650.png\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"202\" src=\"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2010\/05\/samba-w650.png\" alt=\"\" class=\"wp-image-4959\" srcset=\"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2010\/05\/samba-w650.png 750w, https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2010\/05\/samba-w650-300x81.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><\/figure>\n\n\n\n<p>The new image comes from freepik, and was posted by fxquadro<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not just for file sharing, but also supports printing and name services. I now make it part of my standard Linux builds within Virtual Box but it is a pain in the arse with Ubuntu, it never seems to work out of the box.<\/p>\n","protected":false},"author":1,"featured_media":10601,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[6,27,3],"tags":[484,485,916,914,285,438,920,911,107],"class_list":["post-1423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking","category-software","category-technology","tag-file-sharing","tag-host-names","tag-linux","tag-networking","tag-open-source","tag-samba","tag-software","tag-technology","tag-windows"],"share_on_mastodon":{"url":"https:\/\/mastodon.social\/@davelevy_eu\/111954801012597469","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2010\/05\/samba-fxquadro-freepix-cc-by-w1080.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=1423"}],"version-history":[{"count":13,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1423\/revisions"}],"predecessor-version":[{"id":10603,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1423\/revisions\/10603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/10601"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=1423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=1423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=1423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}