
# Sample fstab entries...
#
# The samples are commented out using ';' where as comments about the
#   samples are commented out with '#'.
#

# A /default/ entry can be used to alter the system defaults.
# This one will change the default authentication method from using
#   pcnfsd to bwnfsd and make entries not mount automatically.
; /default/ auth=bwnfsd noauto

# Altered defaults continue until the next /default/ entry
# The following entry resets the defaults to the system defaults as
#   described in the manual.
; /default/

# A final note on defaults... if you ever use a full-form mount
#   request on the mount command line (specifying a server:filesystem
#   and any options), then the defaults in effect at the *end* of the
#   fstab file will be used for the mount.  If the fstab can't be
#   found or opened, then mount will silently use the system defaults,
#   but if there are any syntax or other errors in the fstab, mount will
#   fail;  you can temporarily rename the fstab file or comment out all
#   entries in it to get around this when debugging.

# The following entry mounts /usr/src from machine 'professor'.
#   If the user is "logged in" to this NFS, the user's name and password
#   will be used for the pcnfsd query, else the user will be prompted
#   for a name and password and given three tries to get the pair right.
#   The filesystem is mounted on the first available PC drive letter.
#   This is the simplest form.
#
; professor:/usr/src

# And this entry mounts the same filesystem using uid = gid = -2
#   without querying an authentication server.
; professor:/usr/src auth=none

# This entry mounts /usr/src from 'professor' onto drive e: using
#   a username of 'bill'.  The user will be prompted for a password
#   and given three tries to get it right (always for user 'bill').
#   Pcnfsd version 1 is used for authentication using TCP protocol
#   on the port returned from the portmapper on the server.
#
; professor:/usr/src e:  user=bill   auth=pcnfsdv1,0/tcp

# This entry is the same as the last one except pcnfsdv2 is used on
#   explicit port 755 using the default protocol, UDP.

; professor:/usr/src e:  user=bill   auth=755

# and this entry is exactly equivalent to the previous entry

; professor:/usr/src e:  user=bill   auth=755/udp,pcnfsdv2


# This entry mounts /usr from 'gilligan' onto the first available
#   drive letter.  The username 'bill' with password 'mypass' is
#   used regardless of the login status of the user, BUT because of
#   the 'noauto' flag, this filesystem won't be mounted automatically
#   when the '-l' or '-a' flags are used with mount.  For this reason,
#   we give the filesystem an alias of "maniac" so that we may mount
#   it with the command... "mount maniac".
#
#   This entry also serves to illustrate that a particular entry can
#   span multiple lines.  An entry continues until another
#   "server:/filesystem" is seen in this file, at which point a new
#   entry begins.

; gilligan:/usr user=bill password=mypass
;                  noauto alias=maniac

# the last line in the file should be a comment or a newline

