{"id":494,"date":"2020-10-14T19:54:17","date_gmt":"2020-10-14T19:54:17","guid":{"rendered":"https:\/\/linuxways.net\/?p=494"},"modified":"2020-11-29T09:32:02","modified_gmt":"2020-11-29T09:32:02","slug":"install-samba-on-ubuntu-20-04-and-share-files-on-linux-and-windows","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/install-samba-on-ubuntu-20-04-and-share-files-on-linux-and-windows\/","title":{"rendered":"Install Samba on Ubuntu 20.04 and share files on Linux and Windows"},"content":{"rendered":"<p><\/p>\n\n\n<p>Samba is an open-source file-sharing protocol that allows us to share folders and other resources with the end-users. This article will elaborate on how to install and use Samba to share files on Ubuntu Linux distribution. We have executed all commands and set of procedures on Ubuntu 20.04 LTS system and Windows 10 in this article.<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<p>You must have sudo privileges or you must log in from the root user account to install Samba on your system.<\/p>\n<h2><strong>Install Samba on Ubuntu 20.04<\/strong><\/h2>\n<p>It is recommended to update your system apt packages repository before installing any new package or software. So, run the below-mentioned command to update the apt repository:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-495\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-244.png\" alt=\"install samba ubuntu\" width=\"732\" height=\"314\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-244.png 732w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-244-300x129.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<p>Now, by executing the following command install Samba:<\/p>\n<pre>$ sudo apt install samba smbclient<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-496\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-245.png\" alt=\"install samba ubuntu\" width=\"735\" height=\"482\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-245.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-245-300x197.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p>To further proceed with the installation process press \u2018y\u2019 and then hit \u2018Enter\u2019.\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-497\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-246.png\" alt=\"install samba ubuntu\" width=\"736\" height=\"480\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-246.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-246-300x196.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>In a while, the installation of Samba will complete on your system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-498\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-247.png\" alt=\"install samba ubuntu\" width=\"731\" height=\"477\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-247.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-247-300x196.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p>You can check the Samba running service status by typing the following command:<\/p>\n<pre>$ sudo systemctl status smbd\u00a0<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-499\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-248.png\" alt=\"install samba ubuntu\" width=\"731\" height=\"382\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-248.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-248-300x157.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p>Now, we will enable the \u2018Samba\u2019 profile by changing the firewall access rules.<\/p>\n<pre>$ sudo ufw allow 'Samba'<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"83\" class=\"wp-image-500\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-249.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-249.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-249-300x34.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<h2><strong>Share folders using Samba<\/strong><\/h2>\n<p>Once the installation of Samba is completed, now we can share folders or directories graphically by using the default Ubuntu file manager tool \u2018Nautilus\u2019.<\/p>\n<p>Let\u2019s play a demo on how to share directories through the Nautilus file manager.\u00a0<\/p>\n<p>Go to the file manager and choose a folder that you want to share through your local network. Right-click on the required folder and then choose the \u2018Local Network Share\u2019 option from the displaying list items which is also red highlighted in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-501\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-250.png\" alt=\"install samba ubuntu\" width=\"899\" height=\"593\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-250.png 899w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-250-300x198.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-250-768x507.png 768w\" sizes=\"auto, (max-width: 899px) 100vw, 899px\" \/><\/p>\n<p>The following folder sharing dialog will be displayed on the system. You need to mark the following checkboxes to share the directory:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-502\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-251.png\" alt=\"install samba ubuntu\" width=\"888\" height=\"590\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-251.png 888w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-251-300x199.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-251-768x510.png 768w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><\/p>\n<p>Check the \u2018Share this folder\u2019 checkbox and then, type the share name and you can also add a comment but, this is optional.<\/p>\n<p>Only the owner of the share directory in the default Linux configuration can read or write to the files and directories in the Samba share.\u00a0\u00a0<\/p>\n<p>Click on the \u2018Create Share\u2019 button.<\/p>\n<p>After that, the following dialog will appear on your system. Click on the \u2018Add the permissions automatically\u2019.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-503\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-252.png\" alt=\"install samba ubuntu\" width=\"881\" height=\"594\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-252.png 881w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-252-300x202.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-252-768x518.png 768w\" sizes=\"auto, (max-width: 881px) 100vw, 881px\" \/><\/p>\n<p>You will see that share is enabled now and ready to use. Now, close the folder sharing dialog by clicking on the cancel option.<\/p>\n<p>Once you share a folder, the folder icon should be changed which is shown in the below-mentioned screenshot:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-504\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-253.png\" alt=\"install samba ubuntu\" width=\"897\" height=\"595\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-253.png 897w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-253-300x199.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-253-768x509.png 768w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<h2><strong>Create Samba users<\/strong><\/h2>\n<p>If you are a guest user then, you don\u2019t need any user account authentication to access Samba shares directories. By using guest shares, everyone can access the sharing folder on the network. But, you need a Samba user account to allow access to Samba shares as an authorized person.<\/p>\n<p><strong>Note:<\/strong> you should know that local Linux server accounts are linked with the Samba user accounts. So, you can keep the same name of Samba users that matched with the local Linux server user\u2019s accounts.<\/p>\n<p>For example, we are creating a Samba user named \u2018kbuzdar\u2019 by running the following command:<\/p>\n<pre>$ sudo smbpasswd -a kbuzdar<\/pre>\n<p>In the above command, the name \u2018kbuzdar\u2019 is the name of my login user on Ubuntu.<\/p>\n<p>Enter the new password for a user and press \u2018Enter\u2019. Again, retype the new password and hit \u2018Enter\u2019.\u00a0<\/p>\n<p>You will see on the terminal that the new Samba user is created successfully and a new password has been assigned to a newly created user.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-505\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-254.png\" alt=\"install samba ubuntu\" width=\"733\" height=\"214\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-254.png 733w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-254-300x88.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/p>\n<h2><strong>Access Samba shares on Linux system<\/strong><\/h2>\n<p>To access the Samba shares the Samba client program should be installed on your Ubuntu system.\u00a0<\/p>\n<p>Click on the \u2018other Locations\u2019 and enter the address of Samba shares in connect to server field which is mentioned in the following screenshot:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"896\" height=\"600\" class=\"wp-image-506\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-255.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-255.png 896w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-255-300x201.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-255-768x514.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/p>\n<p>The following dialog will appear on your system:<\/p>\n<p>In the above screenshot, you have both choices either you want to connect as an \u2018Anonymous\u2019 user or as a \u2018Registered user\u2019. Type Samba user credentials and then click on the \u2018Connect\u2019 button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"597\" class=\"wp-image-507\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-256.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-256.png 892w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-256-300x201.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-256-768x514.png 768w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/p>\n<p>Click on your server or hostname.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"584\" class=\"wp-image-508\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-257.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-257.png 891w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-257-300x197.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-257-768x503.png 768w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/p>\n<p>Here, you can see that all Samba shares directories.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"889\" height=\"589\" class=\"wp-image-509\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-258.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-258.png 889w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-258-300x199.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-258-768x509.png 768w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/p>\n<p>Now, just click on a particular directory and enter credentials.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"592\" class=\"wp-image-510\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-259.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-259.png 892w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-259-300x199.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-259-768x510.png 768w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/p>\n<p>You can then access the Samba shares folder\u2019s content on your system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"897\" height=\"592\" class=\"wp-image-511\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-260.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-260.png 897w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-260-300x198.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-260-768x507.png 768w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<h2><strong>Access Samba shares on Windows<\/strong><\/h2>\n<p>Windows user can also connect to the Samba shares by using the following steps:<\/p>\n<p>Open the file explorer and right-click on \u2018This PC\u2019 option. The following dropdown list will open. Select \u2018Add a Network Location\u2019.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1604\" height=\"844\" class=\"wp-image-512\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-261.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-261.png 1604w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-261-300x158.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-261-1024x539.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-261-768x404.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-261-1536x808.png 1536w\" sizes=\"auto, (max-width: 1604px) 100vw, 1604px\" \/><\/p>\n<p>The following wizard will appear on the system. Click on Next.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1534\" height=\"792\" class=\"wp-image-513\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-262.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-262.png 1534w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-262-300x155.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-262-1024x529.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-262-768x397.png 768w\" sizes=\"auto, (max-width: 1534px) 100vw, 1534px\" \/><\/p>\n<p>Now, again click on Next to choose a custom network location.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"790\" class=\"wp-image-514\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-263.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-263.png 1536w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-263-300x154.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-263-1024x527.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-263-768x395.png 768w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/p>\n<p>Enter your server IP and Samba shares User name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1537\" height=\"791\" class=\"wp-image-515\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-264.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-264.png 1537w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-264-300x154.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-264-1024x527.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-264-768x395.png 768w\" sizes=\"auto, (max-width: 1537px) 100vw, 1537px\" \/><\/p>\n<p>Enter the Samba account credentials now you can see the shares directories.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"978\" height=\"735\" class=\"wp-image-516\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-265.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-265.png 978w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-265-300x225.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-265-768x577.png 768w\" sizes=\"auto, (max-width: 978px) 100vw, 978px\" \/><\/p>\n<h2><strong>Access Samba Shares using Command Line<\/strong><\/h2>\n<p>Create a directory that you want to share through Samba using the following syntax and assign privileges using the chown and chmod 2770 command:<\/p>\n<pre>$ mkdir \/home\/&lt;folder-name&gt;\/&lt;user-name&gt;<\/pre>\n<pre>$ mkdir \/home\/samba\/kbuzdar<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"69\" class=\"wp-image-517\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-266.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-266.png 733w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-266-300x28.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/p>\n<p>Now, enable user using the following command:<\/p>\n<pre>$ sudo smbpasswd -e kbuzdar<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"55\" class=\"wp-image-518\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-267.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-267.png 707w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-267-300x23.png 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/p>\n<p>Make the copy of the smb.conf file for safety using the following command:<\/p>\n<pre>$ sudo cp \/etc\/samba\/smb.conf ~<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"39\" class=\"wp-image-519\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-268.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-268.png 733w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-268-300x16.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/p>\n<p>Edit the configuration file in your favorite text editor by running the following command:<\/p>\n<pre>$ sudo nano \/etc\/samba\/smb.conf<\/pre>\n<p>Once the configuration file is loaded, add the following code at the end of the file:<\/p>\n<pre>[&lt;folder_name&gt;]<br \/><br \/>path = \/home\/&lt;user_name&gt;\/&lt;folder_name&gt;<br \/><br \/>valid users = &lt;user_name&gt;<br \/><br \/>read only = no<\/pre>\n<p>Replace the user_name and folder_name with your own details.<\/p>\n<p>Now, restart the samba services by using the command as mentioned below:<\/p>\n<pre>$ sudo service smbd restart<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"58\" class=\"wp-image-520\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-269.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-269.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-269-300x24.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<p>To test any errors in the smb.conf file, run the below-given command:<\/p>\n<pre>testparm<\/pre>\n<p>Now, using the following command you can access samba share folders:<\/p>\n<pre>$ sudo apt install smbclient<\/pre>\n<p>The following command will list all samba shares folders:<\/p>\n<pre>$ smbclient -L \/\/&lt;HOST_IP_OR_NAME&gt;\/&lt;folder_name&gt; -U &lt;user&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-521\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-270.png\" alt=\"install samba ubuntu\" width=\"891\" height=\"295\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-270.png 891w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-270-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-270-768x254.png 768w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><\/p>\n<p>Type the following command to connect with samba share:<\/p>\n<pre>$ smbclient \/\/&lt;HOST_IP_OR_NAME&gt;\/&lt;folder_name&gt; -U &lt;user&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-522\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-271.png\" alt=\"install samba ubuntu\" width=\"893\" height=\"45\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-271.png 893w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-271-300x15.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/10\/word-image-271-768x39.png 768w\" sizes=\"auto, (max-width: 893px) 100vw, 893px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>From the above article, we have learned how to install Samba in Ubuntu 20.04 Linux system. We have implemented how to share folders via a local network using Samba shares. Enjoy the benefits of Samba on your system.<\/p>\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Samba is an open-source file-sharing protocol that allows us to share folders and other resources with the end-users. This article will elaborate on how to install and use&hellip;<\/p>","protected":false},"author":1,"featured_media":1594,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[29,31,30],"class_list":["post-494","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-samba-file-server","tag-ubuntu","tag-windows"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/1594"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}