HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

s
share_nfs(1M) share_nfs(1M)
NAME
share_nfs: share - make local NFS file systems available for mounting by remote systems
SYNOPSIS
/sbin/fs/nfs/share
[-d description][-F nfs
][-o specific_options] pathname
DESCRIPTION
The
share utility makes local file systems available for mounting by remote systems.
If no argument is specified, then
share displays all file systems currently shared, including NFS file sys-
tems and file systems shared through other distributed file system packages.
Options
The following options are supported:
-d description
Provide a comment that describes the file system to be shared.
-F nfs
Share NFS file system type.
-o specific_options
Specify specific_options in a comma-separated list of keywords and attribute-value-assertions for
interpretation by the file-system-type-specific command. If specific_options is not specified, then by
default sharing will be read-write to all clients. specific_options can be any combination of the fol-
lowing:
async All NFS Protocol Version 2 mounts will be asynchronous. This option is ignored for
NFS PV3. Specifying async increases write performance on the NFS server by caus-
ing asynchronous writes on the NFS server. The async option can be specified any-
where on the command line after directory. Before using this option, refer to APPLI-
CATION USAGE section below.
anon=uid Set uid to be the effective user ID of unknown users. By default, unknown users are
given the effective user ID UID_NOBODY .Ifuid is set to -1, access is denied.
index=file Load file rather than a listing of the directory containing this file when the directory is
referenced by an NFS URL.
log[=tag] Enables NFS server logging for the specified file system. The optional tag determines
the location of the related log files. The tag is defined in
/etc/nfs/nfslog.conf
.Ifnotag is specified, the default values associated
with the "global" tag in
/etc/nfs/nfslog.conf
will be used.
nosub Prevents clients from mounting subdirectories of shared directories. For example, if
/export is shared with the nosub option on server fooey, then a NFS client will
not be able to do:
mount -F nfs fooey:/export/home/mnt
nosuid
By default, clients are allowed to create files on the shared le system with the
setuid or setgid mode enabled. Specifying nosuid causes the server file sys-
tem to silently ignore any attempt to enable the setuid or setgid mode bits.
public Moves the location of the public file handle from root (/) to the exported directory
for Web NFS-enabled browsers and clients. This option does not enable Web NFS ser-
vice; Web NFS is always on. Only one file system per server may use this option. Any
other option, including the ro=list and rw=list options can be included with the
public option.
ro Sharing will be read-only to all clients.
ro=access_list
Sharing will be read-only to the clients listed in access_list; overrides the rw subop-
tion for the clients specified. See access_list below.
root=access_list
Only root users from the hosts specified in access_list will have root access. See
access_list below. By default, no host has root access, so root users are mapped to an
anonymous user ID (see the anon=uid option described above). Netgroups can be
HP-UX 11i Version 3: February 2007 1 Hewlett-Packard Company 377