Dell 720N Laptop User Manual


 
Command Reference A-35
NAME
exportfs - export and unexport files or directories
SYNOPSIS
exportfs [ -aiuv ] [ -o
options
] [
pathname
]
DESCRIPTION
If no
pathname
is specified, exportfs lists all currently exported directories and
files. If
pathname
is specified, exportfs makes the specified file or directory avail-
able or unavailable for mounting by NFS clients.
OPTIONS
-a Takes the list of path names to be exported or unexported from the /etc/
exports file. If you specify
pathname
in the command when using the -a
option, the command ignores
pathname
.
-i Ignores the options in the /etc/exports file. Without the -i option, the
exportfs command uses the options associated with the
pathname
speci-
fied in /etc/exports.
-u Unexports the specified path name. If you also include the -a option, the
command unexports the path names in the /etc/exports file and ignores
pathname
.
-v Prints each path name as it is exported or unexported.
-o
option
Specifies a list of comma-separated options that describe how a file or direc-
tory is exported. You can specify the option in one of the following formats:
access=
hostname
[:hostname]...
Give mount access to each host listed. Alternatively, you can specify a net-
group instead of a host in the list. The netgroup must be defined in the /etc/
netgroup file. Whether the hosts can mount
pathname
with root access,
read-and-write access, or read-only access depends on how you use the
root, rw, and ro options, as described below.
anon=
uid
If a request comes from user ID of 0 (root user ID on the client), use
uid
as
the effective user ID unless the client host is included in the root option. The
default value of
uid
is 65534. To disable root access, set
uid
to 65535. To
grant root access to all clients, set
uid
to 0.
ro Export the
pathname
read-only. If you do not specify this option, the
path-
name
is exported read-write.
rw=
hostname
[:hostname]...
Export the
pathname
read-only to all hosts not specified in the list and read-
write to the hosts in the list. Netgroup names are not allowed in the list.
exportfs