Difference between revisions of "How to setup NFS/Autofs"

From HyperSecurity Wiki
Jump to: navigation, search
 
Line 4: Line 4:
  
 
Example:
 
Example:
/mountpoint          hostname/ip(rw,sync)
+
/mountpoint          client hostname/ip(rw,sync)
 +
 
 +
NFS has to be running on the server. Do not run autofs for the client on the server.
 +
 
 +
----
  
  
Line 16: Line 20:
  
 
Example:
 
Example:
/localmountpoint           /etc/auto.map     --timeout=600
+
/foo           /etc/auto.foo     --timeout=600
 +
 
 +
'''/etc/auto.foo'''
 +
 
 +
Example:
 +
foo    -rw,sync        server hostname/ip:/foo
 +
 
 +
NFS and autofs both have to be running on the client. NFS first, then autofs in that order.

Revision as of 22:08, 12 January 2010

Server Config Files:

/etc/exports

Example: /mountpoint client hostname/ip(rw,sync)

NFS has to be running on the server. Do not run autofs for the client on the server.



Client Config Files:

/etc/auto.master

This is an automounter map and it has the following format key [ -mount-options-separated-by-comma ] location. For details of the format look at autofs. mounts done from a hosts map will be mounted with the "nosuid" and "nodev" options unless the "suid" and "dev" options are explicitly given.


Example: /foo /etc/auto.foo --timeout=600

/etc/auto.foo

Example: foo -rw,sync server hostname/ip:/foo

NFS and autofs both have to be running on the client. NFS first, then autofs in that order.