NFS Setup ========= NFS Server Setup ---------------- 1) /etc/rc.d or /etc/init.d /usr/sbin/portmap or rpc.portmap 2) /etc/exports /mn/riemann/local apollo(rw) (to make /riemann/local availabe to "apollo" with read and write.) /mn/riemann/local -rw=apollon (for IRIX, HP-UX, Digital-UNIX, SunOS 4, AIX) 3) mountd rpc.mountd nfsd rpc.nfsd 4) /usr/sbin/exportfs (and chomod a+rx) #!/bin/sh killall -HUP /usr/sbin/rpc.mountd killall -HUP /usr/sbin/rpc.nfsd echo re-exported file systems (Run script after modifying /etc/exports) 5) rpcinfo -p (to check mountd and nfsd running) NFS Client Setup ---------------- 1) To mount, % mount -o rsize=1024,wsize=1024 riemann:/mn/riemann/local /mnt 2) To unmount % umount /mnt 3) To make the system mount a nfs file system upon boot /etc/fstab ______________________________________________________________________ # device mountpoint fs-type options dump fsckorder riemann:/mn/riemann/local /mnt nfs rsize=1024,wsize=1024 0 0 ______________________________________________________________________ After editing run the program shareall to export the filesystems. Server security: the portmapper ------------------------------- 1) First we edit /etc/hosts.deny. ______________________________ portmap: ALL ______________________________ 2) /etc/hosts.allow. _____________________________________ portmap: 193.123.123.0/255.255.255.0 _____________________________________