From Agentgroup
Jump to: navigation, search

Configurazione NFS

Configurazione NFS Server

install the nfs server package

apt-get install nfs-kernel-server

configure the NFS server exports file

vim /etc/exports

add the following configuration lines

 /home   <clients_name>(rw,sync,no_root_squash)

reload the NFS service

 /etc/init.d/nfs-kernel-server restart

Configurazione NFS Client

create a folder named home_local

mkdir /home_local

move all the user folders from /home to /home_local

mv /home/* /home_local

(Attention: change all the references of the previous users from home to home_local at /etc/passwd)

mount manually

mount /home

unmount manually

umount /home

Configurazione NIS Client

set the correct NIS domain in /etc/defaultdomain

put the ip of the server in /etc/yp.conf


modify /etc/nsswitch.cond to match nis

passwd: compact nis
group: compact nis
shadow: compact nis

restart nis

/etc/init.d/nis restart

have a check

getent passwd
getent group

Configurazione AUTOMOUNT


configure the NFS server and export the /home directory


install NFS client

 sudo apt-get install nfs-client

install autofs

 sudo apt-get install  autofs

add the following line to the end of /etc/auto.master:

 /home         /etc/auto.home  

now create /etc/auto.home and insert the following:


restart autofs to enable the configuration:

 sudo service autofs restart