Difference between revisions of "Redhat:NFS exports"
Jump to navigation
Jump to search
(Created page with "== exports file == The /etc/exports file is used to configure the directories for NFS. When the exportfs -a command is run it exports the directories listed so they can be m...") |
|||
| Line 37: | Line 37: | ||
|fsid|| set the file system id | |fsid|| set the file system id | ||
|- | |- | ||
| + | |no_root_squash|| Treat remote root user as local root. | ||
| + | |- | ||
| + | |all_squash|| Treat all clients as anonymous | ||
| + | |- | ||
| + | |anonuid=<userid>|| Local user id for anonymous users | ||
| + | |- | ||
| + | |||
|} | |} | ||
Revision as of 15:41, 22 August 2013
exports file
The /etc/exports file is used to configure the directories for NFS. When the exportfs -a command is run it exports the directories listed so they can be mounted on NFS clients.
Each line exports a single directory, according the the networks and options listed.
/depot/shared 172.16.0.0/255.255.0.0(rw,async,fsid=0)
/depot/shared 172.28.0.0/255.255.0.0(rw,async,no_root_squash)
/home 172.16.0.0/255.255.0.0(rw,async,no_root_squash)
/home 172.28.0.0/255.255.0.0(rw,async,no_root_squash)In the example the /depot/shared direcotry is exported to the 172.16 and 172.28 networks with teh options listed.
Export Options
| insecure | communication above port 1024 fopr NFS 2 and 3 |
| insecure_locks | Does not check user permissions - used for NFS 2 and 3 |
| no_subtree_check | Disables permissions checks for super directories |
| sync | Syncs write operations - on by default |
| no_wdelay | Immediate writes |
| hide | Hide files systems |
| mp | export only if mounted |
| fsid | set the file system id |
| no_root_squash | Treat remote root user as local root. |
| all_squash | Treat all clients as anonymous |
| anonuid=<userid> | Local user id for anonymous users |