home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / nfsd / nfsd.config < prev    next >
Encoding:
Text File  |  1999-11-30  |  1.5 KB  |  39 lines

  1. # Simple test config for nfsd
  2. # Should show the basic ideas
  3.  
  4. # Format is:
  5. # Local Amiga path, symbol to export as, IP definition to export to
  6. #  possibly with RW to allow read/write access
  7. #
  8. # IP definition:
  9. #  address/mask. The mask may be omitted to imply 255.255.255.255.
  10. #  Use '-' to imply any IP address.
  11. #
  12. # UID=x GID=x and PERM=xxx define attributes that will be faked for the
  13. #  mountpoint itself (useful, as the root directory of a disk cannot have
  14. #  these properties).
  15. # FORCEALL causes these attributes to also be applied to everything below
  16. #  the mountpoint as well.
  17.  
  18. # Anybody on my local network can mount RAM: as /tmp. Every file
  19. #  will be owned by root, readable, and executable.
  20. Ram:        /tmp    192.168.1.0/255.255.255.0 UID=0 GID=0 PERM=555 FORCEALL
  21.  
  22. # The machine 192.168.1.5 can mount Fish:mount, and write to it. The directory
  23. #  itself will appear to be owned by 1000:100, but files within will have
  24. #  their correct permissions.
  25. Fish:mount  /fishrw 192.168.1.5 RW UID=1000 GID=100
  26.  
  27. # Anybody can access Fish:public as /pub. Every file
  28. #  will be owned by root, readable, and executable.
  29. Fish:public    /pub    - UID=0 GID=0 PERM=555 FORCEALL
  30.  
  31. # Anybody in the class C network 172.16.1.0 may mount and write to
  32. #  these directories. The mountpoint will appear to be owned by 0:100,
  33. #  and will have permissions forced upon it.
  34. audio:      /mp3     172.16.1.0/255.255.255.0  RW UID=0 GID=100 PERM=770
  35. archive:    /archive 172.16.1.0/255.255.255.0  RW UID=0 GID=100 PERM=770
  36.  
  37. # That is all.
  38.  
  39.