publications.LEVINUX.org

5.2. Modification finale au fichier exports

Éditons maintenant le fichier "exports" :

#nano /etc/exports

en ajoutant les lignes suivantes :

opt/ltsp/i386              192.168.0.0/255.255.255.0(ro,no_root_squash,async)
/var/opt/ltsp/swapfiles    192.168.0.0/255.255.255.0(rw,no_root_squash,async)

Voici la version finale du fichier exports, ou du moins, ce à quoi il devrait ressembler :

# /etc/exports: NFS file systems being exported.  See exports(5).

#diskless
/diskless/192.168.50.10   192.168.50.10(rw,no_root_squash,no_all_squash,sync)
/diskless/192.168.50.11   192.168.50.11(rw,no_root_squash,no_all_squash,sync)
/opt                      192.168.50.0/24(ro,no_root_squash,no_all_squash,sync)
/usr                      192.168.50.0/24(ro,no_root_squash,no_all_squash,sync)
/home                     192.168.50.0/24(rw,no_root_squash,no_all_squash,sync)
/var/log                  192.168.50.10(rw,no_root_squash,no_all_squash,sync)
/var/log                  192.168.50.11(rw,no_root_squash,no_all_squash,sync)

#ltsp    
/opt/ltsp/i386            192.168.51.0/255.255.255.0(ro,no_root_squash,async)
/var/opt/ltsp/swapfiles   192.168.51.0/255.255.255.0(rw,no_root_squash,async)