{"id":446,"date":"2026-02-27T14:50:13","date_gmt":"2026-02-27T14:50:13","guid":{"rendered":"https:\/\/mitalgoswami.in\/?p=446"},"modified":"2026-02-27T15:20:35","modified_gmt":"2026-02-27T15:20:35","slug":"%f0%9f%96%a5%ef%b8%8f-samba-server-in-linux","status":"publish","type":"post","link":"https:\/\/mitalgoswami.in\/?p=446","title":{"rendered":"&#x1f5a5;&#xfe0f; Samba Server in Linux"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">&#x2705; What is Samba Server?<\/h3>\n\n\n\n<p><strong>Samba<\/strong> is an open-source software that allows <strong>Linux\/Unix systems to share files and printers with Windows systems<\/strong> using the <strong>SMB\/CIFS protocol<\/strong>.<\/p>\n\n\n\n<p>&#x1f449; In simple words:<br><strong>Samba = Linux &#x2194; Windows File Sharing<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">&#x1f539; Features of Samba<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#x1f4c2; File sharing between Linux and Windows<\/li>\n\n\n\n<li>&#x1f5a8;&#xfe0f; Printer sharing<\/li>\n\n\n\n<li>&#x1f464; User authentication<\/li>\n\n\n\n<li>&#x1f310; Works with Windows Active Directory<\/li>\n\n\n\n<li>&#x1f510; Secure password-based access<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">&#x1f539; Samba Architecture<\/h2>\n\n\n\n<p>Main services:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>smbd<\/strong> \u2013 File &amp; printer sharing service<\/li>\n\n\n\n<li><strong>nmbd<\/strong> \u2013 NetBIOS name service<\/li>\n\n\n\n<li><strong>winbindd<\/strong> \u2013 User authentication (for AD integration)<\/li>\n<\/ol>\n\n\n\n<p>Main configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/samba\/smb.conf<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">&#x1f680; Install Samba Server in Ubuntu<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Update system<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Install Samba<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install samba -y<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Check installation<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">samba --version<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">&#x1f4c1; Create a Shared Folder<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Create directory<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mkdir \/sharedfolder<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Set permissions<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chmod 777 \/sharedfolder<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">&#x2699;&#xfe0f; Configure Samba<\/h1>\n\n\n\n<p>Edit configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo nano \/etc\/samba\/smb.conf<\/pre>\n\n\n\n<p>Add at the bottom:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[MyShare]<br>   path = \/sharedfolder<br>   browseable = yes<br>   writable = yes<br>   guest ok = yes<br>   read only = no<\/pre>\n\n\n\n<p>Save and exit.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">&#x1f504; Restart Samba Service<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl restart smbd<\/pre>\n\n\n\n<p>Check status:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl status smbd<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">&#x1f464; Create Samba User (Secure Method)<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo adduser username<br>sudo smbpasswd -a username<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">&#x1f4bb; Access Samba Share from Windows<\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Press <strong>Windows + R<\/strong><\/li>\n\n\n\n<li>Type:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">\\\\Linux-IP-Address<\/pre>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\\\\192.168.1.10<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x2705; What is Samba Server? Samba is an open-source software that allows Linux\/Unix systems to share files and printers with Windows systems using the SMB\/CIFS protocol. &#x1f449; In simple words:Samba = Linux &#x2194; Windows File Sharing &#x1f539; Features of Samba &#x1f539; Samba Architecture Main services: Main configuration file: \/etc\/samba\/smb.conf &#x1f680; Install Samba Server in Ubuntu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-446","post","type-post","status-publish","format-standard","hentry","category-unix"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=446"}],"version-history":[{"count":1,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/446\/revisions"}],"predecessor-version":[{"id":447,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/446\/revisions\/447"}],"wp:attachment":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}