{"id":1266,"date":"2021-12-16T12:00:46","date_gmt":"2021-12-16T09:00:46","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/10\/21\/how-to-set-up-an-nfs-share-in-webmin-on-ubuntu-server\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/10\/21\/how-to-set-up-an-nfs-share-in-webmin-on-ubuntu-server\/"},"modified":"2021-12-16T12:00:46","modified_gmt":"2021-12-16T09:00:46","slug":"how-to-set-up-an-nfs-share-in-webmin-on-ubuntu-server","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1266-how-to-set-up-an-nfs-share-in-webmin-on-ubuntu-server\/","title":{"rendered":"How to set up an NFS share in Webmin on Ubuntu Server"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>NFS (AKA Network File System) is a handy networking tool that makes transferring files on Linux super fast. However, setting it up is tedious if you do not know what you are doing.<\/p>\n<p>That\u2019s where Webmin comes in. It\u2019s a web UI manager for UNIX-like operating systems that makes setting up complex things like NFS easy. In this guide, we\u2019ll show you how you can set up an NFS share with it.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408896 size-full\" src=\"https:\/\/www.addictivetips.com\/app\/uploads\/2021\/10\/nfs-exports.jpeg\" alt=\"\" width=\"1200\" height=\"524\"\/><\/p>\n<h2>Set up Webmin on Ubuntu Server<\/h2>\n<p>Before you can use Webmin on your Ubuntu Server to set up NFS shares, you\u2019ll need to set up Webmin on your Ubuntu Server. To set up Webmin on your Ubuntu system, you\u2019ll have to download and install the latest DEB package to your computer.<\/p>\n<p>To download the latest release of Webmin for Ubuntu, click on this link and head over to the official Webmin website. Once there, find the \u201cDebian Package\u201d button and select it with the mouse to begin the download.<\/p>\n<p>Once the DEB package is downloaded, transfer the DEB package to your Ubuntu server over SSH. When the DEB package is transferred over to the Ubuntu system, install it. Then, go to your computer, open up a web browser and follow the link below to open the Webmin web UI.<\/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-an-nfs-share-in-webmin-on-ubuntu-server.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>To access the Webmin web UI on the Ubuntu Server, you must have access to the root account and know the root password. Unfortunately, on Ubuntu, this isn\u2019t as easy, as the root password is shut off for security purposes.<\/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-an-nfs-share-in-webmin-on-ubuntu-server-1.jpg\" alt=\"\" width=\"1200\" height=\"539\"\/><\/p>\n<p>To change the root password for Ubuntu, do the following. First, log into the Ubuntu Server over SSH. Or, sit at the TTY console. Once at the console, use <strong>sudo -s<\/strong> command to gain root access to Ubuntu Server.<\/p>\n<pre>\nsudo -s\n<\/pre>\n<p>Now that you\u2019ve gained root access make use of the <strong>passwd<\/strong> command to change the root password in Ubuntu. Be sure that this password is memorable and secure.<\/p>\n<pre>\npasswd\n<\/pre>\n<h2>Install NFS packages on Ubuntu Server<\/h2>\n<p>With Webmin installed and the root password configured, you\u2019ll need to install NFS packages on Ubuntu Server. Without these packages, Webmin will not be able to configure your NFS shares through the web UI.<\/p>\n<p>To install the NFS packages on the Ubuntu system, open up a terminal window and log in over SSH. Or, sit at the server and interact with the command-line using the TTY console.<\/p>\n<p>Use the following <strong>apt install<\/strong> command to set up the latest NFS server package with terminal access.<\/p>\n<pre>\nsudo apt install nfs-kernel-server\n<\/pre>\n<p>After writing the <strong>apt install<\/strong> command above, Ubuntu will ask for your password. Using your keyboard, type in your username\u2019s password. When you\u2019ve entered your password, Ubuntu will collect all packages to install. Then, it will ask you to press the <strong>Y<\/strong> button to confirm you\u2019d like to install the packages. Do so to continue.<\/p>\n<h2>How to set up an NFS share in Webmin<\/h2>\n<p>To set up an NFS share in Webmin, start by logging into the Webmin web UI interface in a web browser. Once you are logged in, locate the \u201cRefresh Modules\u201d button, and click on it with the mouse.<\/p>\n<p>After refreshing modules, follow the step-by-step instructions below to configure your NFS shares in Webmin.<\/p>\n<p><strong>Step 1:<\/strong> On the Webmin sidebar, click on the \u201cNetworking\u201d section with the mouse to expand the menu items. Then, look through the \u201cNetworking\u201d area for \u201cNFS Exports\u201d and click on it with the mouse.<\/p>\n<p><strong>Step 2:<\/strong> Inside the \u201cNFS Exports\u201d area, find the \u201cAdd a new export\u201d button and click on it with the mouse to create a new NFS export.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408896 size-full\" src=\"https:\/\/www.addictivetips.com\/app\/uploads\/2021\/10\/nfs-exports.jpeg\" alt=\"\" width=\"1200\" height=\"524\"\/><\/p>\n<p>When you click on the \u201cAdd a new export\u201d button with the mouse, the \u201cExport Details\u201d window will appear. Find the \u201cDirectory to export\u201d area, and select the icon next to the text box.<\/p>\n<p><strong>Step 3:<\/strong> Upon clicking on the icon next to \u201cDirectory to export,\u201d browse for the folder you wish to share via NFS. Then, locate the \u201cRead-only\u201d section, and click \u201cNo.\u201d If you do not select \u201cNo,\u201d your NFS share will not be writable.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408893 size-full\" src=\"https:\/\/www.addictivetips.com\/app\/uploads\/2021\/10\/nfs-export-create.jpeg\" alt=\"\" width=\"1200\" height=\"616\"\/><\/p>\n<p><strong>Step 4:<\/strong> After changing the write settings, go through the other settings and customize your NFS share as you see fit. When you\u2019ve finished customizing everything, click on the green \u201cCreate\u201d button to create your new share.<\/p>\n<p>Then, click on the \u201cReturn to exports\u201d list to return to the NFS shares list in Webmin.<\/p>\n<p><strong>Step 5:<\/strong> Click on the \u201cApply Changes\u201d in the NFS shares list to apply the changes to your new NFS share. When you select this button, you\u2019ll be able to access your share over the network.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-408890 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-set-up-an-nfs-share-in-webmin-on-ubuntu-server-2.jpg\" alt=\"\" width=\"1200\" height=\"405\"\/><\/p>\n<h3>Mounting a share<\/h3>\n<p>Unsure about how to mount your new NFS share on Linux? Enter the following command below in a terminal window.<\/p>\n<pre>\nsudo mount YOUR_WEBMIN_LINUX_SERVER_IP_OR_HOSTNAME:\/location\/of\/nfs\/export\/ \/local\/location\/to\/mount\/share\/\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles NFS (AKA Network File System) is a handy networking tool that makes transferring files on Linux super fast. However, setting it up is tedious if you do not know what you are doing. That\u2019s where Webmin comes in. It\u2019s a web UI manager for UNIX-like operating systems that makes setting up complex things &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1267,"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\/1266"}],"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=1266"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1266\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1267"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}