{"id":1268,"date":"2021-12-16T11:50:47","date_gmt":"2021-12-16T08:50:47","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/10\/21\/how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/10\/21\/how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way\/"},"modified":"2021-12-16T11:50:47","modified_gmt":"2021-12-16T08:50:47","slug":"how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1268-how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way\/","title":{"rendered":"How to set up Samba shares in Ubuntu Server the easy way"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>Webmin is an administration web UI for managing UNIX-like operating systems. For example, if you have an Ubuntu server and want an easier way to create Samba shares on your system, Webmin is an excellent tool.<\/p>\n<p>With Webmin, you can create Samba shares on Ubuntu Server through your web browser, easily manage permissions, etc. In this guide, we\u2019ll show you how to use Webmin to configure Samba shares in Ubuntu Server the easy way.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408899 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way.jpg\" alt=\"\" width=\"1200\" height=\"494\"\/><\/p>\n<h2>Set up Webmin on Ubuntu Server<\/h2>\n<p>Webmin must be installed on your Ubuntu system to use it. If you do not already have Webmin configured on Ubuntu, head over to the official website and download the latest DEB package.<\/p>\n<p>After downloading the latest Webmin DEB package, install it onto your Ubuntu Server. The installation will not take long. When it is installed, open up a web browser on your computer and visit the following URL to access Webmin.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408941 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way-1.jpg\" alt=\"\" width=\"1200\" height=\"628\"\/><\/p>\n<p><code>http:\/\/YOUR_UBUNTU_SERVER_IP_OR_HOSTNAME:10000<\/code><\/p>\n<h3>Root password for Webmin<\/h3>\n<p>You\u2019ll need to know the root password for your Ubuntu Server. If you do not know your root password for Ubuntu Server, you\u2019ll need to set it in the terminal before installing Webmin.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408932 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way-2.jpg\" alt=\"\" width=\"1200\" height=\"539\"\/><\/p>\n<p>To configure the root password in Ubuntu Server, log in to the TTY console or SSH terminal using your username. When you\u2019ve logged in, use the <strong>sudo -s<\/strong> command to escalate the console to root.<\/p>\n<pre>\nsudo -s\n<\/pre>\n<p>With root access, use the <strong>passwd<\/strong> command to change the password of the root account in Ubuntu.<\/p>\n<pre>\npasswd\n<\/pre>\n<h2>Install Samba via terminal<\/h2>\n<p>You\u2019ll have to install the Samba tools on your Ubuntu server installation before attempting to use Webmin to set up Samba shares. To install the latest Samba packages, open up a terminal and log into the Ubuntu server over SSH. Or sit down at the server physically and use the terminal.<\/p>\n<p>Once you\u2019ve logged into your Ubuntu server, the installation of Samba can begin. Using the <strong>apt install<\/strong> command below, install the \u201csamba\u201d package to your server.<\/p>\n<pre>\nsudo apt install samba\n<\/pre>\n<p>Upon writing in the command above, Ubuntu will ask for your password. Using the keyboard, write in your username\u2019s password. Then, press the <strong>Enter<\/strong> key to submit your password.<\/p>\n<p>After submitting your password in the terminal, Ubuntu will collect all packages and dependencies required to run the Samba server. Then, when everything is ready to install, Ubuntu will ask you to press the <strong>Y<\/strong> button on the keyboard. Do so to install Samba on your Ubuntu server.<\/p>\n<h2>Adding shares in Webmin<\/h2>\n<p>To add Samba shares to Ubuntu in Webmin, follow the step-by-step instructions down below.<\/p>\n<p><strong>Step 1:<\/strong> Log into the Webmin web UI in your favorite web browser using the root account and root password.<\/p>\n<p><strong>Step 2:<\/strong> After logging in to the Webmin web UI using your account credentials, click on the \u201cDashboard\u201d button. Selecting the \u201cDashboard\u201d button will show you the Webmin sidebar.<\/p>\n<p>Look through the Webmin sidebar for the \u201cServers\u201d section, and click on the drop-down menu to reveal the \u201cServers\u201d options.<\/p>\n<p><strong>Step 3:<\/strong> Click on the \u201cSamba Windows File Sharing\u201d button to access the Samba section of Webmin. Once inside of the \u201cSamba Windows File Sharing\u201d area, click on the \u201cCreate a new file share\u201d button.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408899 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way.jpg\" alt=\"\" width=\"1200\" height=\"494\"\/><\/p>\n<p><strong>Step 4:<\/strong> After clicking on the \u201cCreate a new file share\u201d button, find the \u201cShare name\u201d section, and select it with the mouse. Then, type in the name of your new share. For example, \u201cMy Share,\u201d \u201cFile Share,\u201d etc.<\/p>\n<p><strong>Step 5:<\/strong> Find the \u201cDirectory to share\u201d area, and click on it with the mouse. Then, type out the directory path you wish to share. Alternatively, click on the icon next to the text box.<\/p>\n<p>By selecting the icon next to the text box, a pop-up window will appear. Using the pop-up window, select the folder you wish to share over the Samba file-sharing protocol.<\/p>\n<p><strong>Step 6:<\/strong> Click on the \u201cShare Comment\u201d text box, and type in a comment for your new file share. Then, select the \u201cCreate\u201d button to create the next share.<\/p>\n<p><strong>Step 7:<\/strong> Once you\u2019ve created your new share, click on the button to return to the shares list. Then, click on your share in the list to access the settings for it.<\/p>\n<p>After accessing your share\u2019s settings area, click on the \u201cSecurity and Access Control\u201d button. From here, you can customize your share\u2019s access settings. For best results, select \u201cYes,\u201d for \u201cWritable,\u201d and \u201cGuest only\u201d to allow users to access the share without logging in.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408902 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way-3.jpg\" alt=\"\" width=\"1200\" height=\"720\"\/><\/p>\n<p>With all settings configured, select the \u201cSave\u201d button. Then, click on the \u201cReturn to share list\u201d button.<\/p>\n<p><strong>Step 8:<\/strong> Select the \u201d Restart Samba Servers \u201d button when you\u2019ve created all of your shares inside of Webmin and are done configuring everything. Selecting this button will restart the service on Ubuntu and apply your new configuration changes.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408905 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-set-up-samba-shares-in-ubuntu-server-the-easy-way-4.jpg\" alt=\"\" width=\"1200\" height=\"774\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles Webmin is an administration web UI for managing UNIX-like operating systems. For example, if you have an Ubuntu server and want an easier way to create Samba shares on your system, Webmin is an excellent tool. With Webmin, you can create Samba shares on Ubuntu Server through your web browser, easily manage permissions, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1269,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1268"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1268"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1268\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1269"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}