How to Install and Configure a Network File System (NFS) Server and Client on Ubuntu Server

preview_player
Показать описание
In this video, you will learn how to set up an Network File System (NFS) Server on Ubuntu 22.04 LTS Server. I will also show you how to mount an NFS file system on the client machine.

PLEASE SUBSCRIBE :)
PLEASE HIT LIKE IF IT HELPED :)

LINKS:

Steps:
NFS Server
apt update
apt -y install nfs-kernel-server
systemctl status nfs-server
mkdir /exports
mkdir /exports/backups

vi /etc/exports
/exports/backups 192.168.0.127(rw,sync,no_subtree_check)

exportfs -ar
exportfs -v
ufw allow from 192.168.0.127 to any port nfs

NFS Client
apt -y install nfs-common
mkdir /mnt/backups
mount 192.168.0.126:/exports/backups /mnt/backups

vi /etc/fstab
192.168.0.126:/exports/backups /mnt/backups nfs auto,nofail,noatime,nolock,tcp,actimeo=1800,_netdev 0 0

Drop me your feedback and comments below.

That's all for now.

If this video helped you in any way, please like share and subscribe!

Thank you!!!
Рекомендации по теме
Комментарии
Автор

One of the clearest explanations I have seen in such a reasonable time-frame. I know the title says Ubuntu so this is just a small rant. The instructions also worked on Mint. CachyOS but not Fedora 38 and has driven me crazy. You could mount from the command line but fstab never worked. I gave up and just mounted with systemd

timothycarry
Автор

That was really well taught. Thank you

pattheth
Автор

This was great - especially the posted commands.

HoustonABC
Автор

Why do we get incorrect size on client sever after mounting the partition on it, eg i have a 1tb partition but when i mount it on client machine it only shows me 70gb out of which only 10gb available, even though the partition is new with out any data in it

td
Автор

i followed these exact steps, why can my clients not write in that folder?

shadowwizzard
Автор

Sir how to do NIS so that any user can login from different terminal

pankajjoshi
Автор

Is it possible to enable file transfer compression in nfs to save bandwith?

Автор

Now I'd like to understand, how the client gets permission to write into that folder. In my case, after following the video, no user on the client is able to write anything unfortunately.

snake-taichi
Автор

Hi can your please make a video on explaining when and why are these files used in simple terms /etc/resolve.conf, /etc/hosts, /etc/nsswitch.conf if and //etc/named.conf you can show a practical usage it will be great. Please its a request. Please do reply

anand-nbbb
Автор

each time I get: rpc.statd not running but is required for remote locking, either use '-o nolock' to keep locks local, or start statd, Operation not permitted

shelly
Автор

Thanks for this. Is there a way to secure the NFS share through credential authentication (username/password)?

prjectSkyneT