Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exportfs(1M) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exports(4)

netgroup(4)




exportfs(1M) exportfs(1M)
NAME exportfs - exports and unexports directories to Network FIle System (NFS) clients SYNOPSIS exportfs exportfs -a [-i] [-v] [-o export-options] [-u] [directory-or-file]... exportfs -u [-v] directory-or-file... ARGUMENTS -a Exports all directories and files listed in the file /etc/exports. If you also use the -u option, all currently exported directories or files are unexported. -i Causes exportfs to ignore the options in /etc/exports. If you do not use this option, exportfs uses the options specified in the file /etc/exports. -o export-options Specifies a comma-separated list of export options for the directories and files being exported. The options override the options, if any, that are set in the /etc/exports file but cannot override the actual file permissions of a directory or file. ro Exports the directories and files read-only. If not specified, the directories and files are exported read-write. rw=host-name[:host-name]... Exports the directories and files read-mostly. Read-mostly means that the directories and files are exported read-only to most computers, but read-write to those specified. If you do not specify this option, the directories and files are exported read-write to all. If the network is running the name server, the host name for any one computer is entered twice: once as displayed by the hostname command (for example, hostname1) and once in fully qualified domain name format, with the domain name in uppercase letters (for example, hostname1.ABC.COM). anon=uid Specifies that if a request comes from an unknown user, the value of uid is used as the effective user ID. Note that users who are logged in as root are always considered ``unknown'' by the NFS server unless they are included in the root option January 1992 1



exportfs(1M) exportfs(1M)
below. The default value for this option is -2. Setting the value of anon to -1 disables anonymous access. Note that, by default, secure NFS accepts insecure requests as anonymous, and those wishing for extra security can disable this feature by setting anon to -1. root=host-name[:host-name]... Specifies that root access be given only to users logged in as root from the specified host-name. The default is for no hosts to be granted root access. If the network is running the name server, the host name for any one computer is entered twice: once as displayed by the hostname command (for example, hostname1) and once in fully qualified domain name format, with the domain name in uppercase letters (for example, hostname1.ABC.COM). access=client[:client]... Specifies that mount access is to be given to each listed client. The value of client can either be a host name or a netgroup (see netgroup(4) for details). For each value of client, exportfs verifies that client is present in the /etc/netgroup file or the /etc/hosts file, in that order. By default, any computer can mount an exported directory or file. If the value of client is a host name and if the network is running the name server, the host name is entered twice: once as the value displayed by the hostname command and once in fully qualified domain name format, with the domain name in uppercase letters (for example, hostname1.ABC.COM). -u Unexports all directories or files listed in /etc/exports if used with the -a option. If you do not use the -a option, but instead, supply one or more directory-or-file arguments, only the specified directories or files are unexported. -v Causes exportfs to display each directory or file as it is exported or unexported. DESCRIPTION exportfs makes a local directory or file available for mounting over the network by NFS clients. It is normally invoked when A/UX is restarted by the /etc/rc script. Directories and files that are currently exported are listed in the file /etc/xtab. 2 January 1992



exportfs(1M) exportfs(1M)
When a client has mounted a directory or file and the NFS server unexports it, access on the client is suspended until the NFS server exports it again. If you do not provide any arguments, exportfs displays a list of the currently exported directories. EXAMPLES Here is an example of an entry in the /etc/exports file: /usr/catman -access=:hostname1:hostname1.ABC.COM If you want to export a new directory or file, add the new entry to /etc/exports and then enter this command: exportfs directory-or-file If you want to remove an entry from /etc/exports, enter this command and then remove the entry from /etc/exports: exportfs -u directory-or-file If you want to change the way a file or directory is exported, make the change in /etc/exports and then enter these commands: exportfs -u directory-or-file exportfs directory-or-file If you want to re-export every entry as it is listed in the /etc/exports file, enter these commands: exportfs -a -u exportfs -a LIMITATIONS You cannot export a directory that is the parent of a currently exported directory if they are within the same file system. The same restriction is true for a sub- directory of a currently exported directory. For example, it is illegal to export both /usr and /usr/local if both directories reside in the same file system. FILES /etc/exports File of static export information /etc/netgroup File that defines network-wide permissions used for remote mounts, remote logins, and remote shells /etc/xtab File that stores the current state of exported January 1992 3



exportfs(1M) exportfs(1M)
directories /usr/etc/exportfs Executable file SEE ALSO exports(4), netgroup(4) in A/UX Programmer's Reference 4 January 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026