share_nfs.1m (2010 09)
s
share_nfs(1M) share_nfs(1M)
share -F nfs -o ro=hostb,root=hostb /var
The following will give read-write permissions to hostb:
share -F nfs -o ro=hosta,rw=hostb,root=hostb /var
If the file system being shared is a symbolic link to a valid pathname, the canonical path (the path which
the symbolic link follows) will be shared. For example, if
/export/foo is a symbolic link to
/export/bar (/export/foo -> /export/bar), the following
share command will result in
/export/bar as the shared pathname (and not
/export/foo).
example# share -F nfs /export/foo
Note that an NFS mount of server:/export/foo
will result in
server:/export/bar
really being
mounted.
This line in the
/etc/dfs/dfstab
file will share the /disk
file system read-only at boot time:
share -F nfs -o ro /disk
Note that the same command entered from the command line will not share the
/disk file system unless
there is at least one file system entry in the
/etc/dfs/dfstab
file.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/etc/dfs/fstypes
list of distributed file system types, NFS by default
/etc/dfs/sharetab
system record of shared file systems
/etc/nfs/nfslogtab
system record of logged file systems
/etc/nfs/nfslog.conf
logging configuration file
AUTHOR
share_nfs was developed by Sun Microsystems, Inc.
SEE ALSO
mount(1M), mountd(1M), nfsd(1M), nfslogd(1M), share(1M), unshare(1M), getnetbyname(3N), fstypes(4),
netgroup(4), nfslog.conf(4), sharetab(4), nfssec(5).
HP-UX 11i Version 3: September 2010 − 5 − Hewlett-Packard Company 5