share_nfs.1m (2010 09)

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
following:
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
causing asynchronous writes on the NFS server. The async option can be specified
anywhere on the command line after directory. Before using this option, refer to
APPLICATION 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.
fsid=num Force the file system identification portion of the file handle to be num instead of a
number derived from the major and minor number of the block device on which the
file system is mounted. A value between 1 and 32767 may be used, but it must be
unique among the shared file systems.
This option is useful for NFS failover to ensure that both servers of the failover pair
use the same NFS file handles for the shared file systems. This avoids stale file
handles if a failover occurs.
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 deter-
mines 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 file 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
service; Web NFS is always on. Only one file system per server may use this option.
All other options, including the refer, ro=access_list , and rw=access_list options
may be included with the public option.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (6 pages)