Sunday, April 17, 2005

Example NFS /etc/exports & /etc/fstab

/etc/exports:
/home/user1/www 192.168.100.0/24(ro)
/home/user2/images 192.168.100.0/24(ro)

/etc/fstab:

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
ftp.server.com:/home/user2/images /home/www/web/htdocs/images nfs defaults 0 0
ftp.server.com:/home/user1/www /home/www/web/htdocs nfs defaults 0 0

No comments: