Servidor

Servidor

Siga estas dos guías para instalar el servidor y el cliente NFS:

Hospedadores:

  • Servidor: 192.168.1.1
  • Cliente: 192.168.1.2

Servidor

Configuración /etc/exportsen el servidor:

[root@server ~]# cat /etc/exports 
/var/nfsshare    *(rw,sync,no_root_squash,no_all_squash)
/home            *(rw,sync,no_root_squash,no_all_squash)
/var/nfs         *(rw,sync,no_root_squash,no_all_squash)

Correr:

[root@server ~]# exportfs -a

Cliente

Luego intenté montar el servidor desde el cliente y obtuve el error:

[root@client ~]# mount -t nfs 192.168.1.1:/home /mnt/nfs/home/
mount.nfs: access denied by server while mounting 192.168.1.1:/home

Sin embargo, puedo ver la información de montaje del cliente:

[root@client ~]# showmount -e 192.168.1.1
Export list for 192.168.1.1:
/var/nfs      *
/home         *
/var/nfsshare *

¿Qué ocurre?

información relacionada