Debian 6 install nfs server




















The NFS protocol is used the server-client architecture, the NFS server that provides all directories or partitions that are ready to access and mount, and clients that used the rpcbind protocol to access all directories and filesystem through the internal network connection.

The NFSv4 protocol provides basic security features such as authentication and encryption, but it relies on Kerberos for those parts. So you need to add additional configuration for using NFSv4 with basic security features. You will be installing the NFS server and securing the access by limiting the hosts using the ufw firewall. We will be using two different machines on the same network as below. A root user or a user with root privileges. This user will be used for installing new packages and editing system configurations.

At first, you will be installing the nfs server package and set up the shared directory for clients. NFS client is placed on the same By default, any file request made by user root on a client machine is treated as if it is made by user nobody on the server. Requests of any user other than root on All requests of a non-root user on are attempted as the same user on the server user mapping.

You can now make the shared directory available to clients using the exportfs command. After running this command, the NFS Kernel should be restarted.

Here are the packages you need to install to enable mounting an NFS share on a local Linux machine. You can mount the NFS folder to a specific location on the local machine, known as a mount point, using the following commands.

The mount point now becomes the root of the mounted file share, and under it you should find all the subdirectories stored in the NFS file share on the server.

Remote NFS directories can be automatically mounted when the local system is started. In order to ensure an NFS file share is mounted locally on startup, you need to add a line to this file with the relevant file share details. The last three parameters indicate NFS options which we set to default , dumping of file system and filesystem check these are typically not used so we set them to 0. Microsoft Azure, a popular public cloud service, lets you set up NFS file shares in the cloud and access them from machines in your local data center, or deployed in the Azure cloud.

Azure NetApp Files is a cloud service offering enterprise-class, high-performance file storage for enterprises. It supports NFS versions 3. Run below command. Make user shared folder has sufficient permission to read and write the files inside it.

However, you can set it as per your requirement. If you are running a firewall on your Debian, allow the client to connect to NFS by using the following command,.

Open the file using any of your favorite editors. This tutorial guides you to install NFS share on a server and mount in a client.



0コメント

  • 1000 / 1000