Index: head/contrib/amd/amd/amd.8 =================================================================== --- head/contrib/amd/amd/amd.8 (revision 296193) +++ head/contrib/amd/amd/amd.8 (revision 296194) @@ -1,402 +1,409 @@ .\" .\" Copyright (c) 1997-2006 Erez Zadok .\" Copyright (c) 1989 Jan-Simon Pendry .\" Copyright (c) 1989 Imperial College of Science, Technology & Medicine .\" Copyright (c) 1989 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Jan-Simon Pendry at Imperial College, London. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgment: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" %W% (Berkeley) %G% .\" .\" $Id: amd.8,v 1.14.2.1 2006/01/02 18:48:23 ezk Exp $ .\" $FreeBSD$ .\" -.Dd January 2, 2006 +.Dd February 26, 2016 .Dt AMD 8 .Os .Sh NAME .Nm amd .Nd automatically mount file systems .Sh SYNOPSIS .Nm .Fl H .Nm .Op Fl F Ar conf_file .Nm .Op Fl nprvHS .Op Fl a Ar mount_point .Op Fl c Ar duration .Op Fl d Ar domain .Op Fl k Ar kernel-arch .Op Fl l Ar logfile .Op Fl o Ar op_sys_ver .Op Fl t Ar timeout.retransmit .Op Fl w Ar interval .Op Fl x Ar log-option .Op Fl y Ar YP-domain .Op Fl A Ar arch .Op Fl C Ar cluster-name .Op Fl D Ar option .Op Fl F Ar conf_file .Op Fl O Ar op_sys_name .Op Fl T Ar tag .Oo .Ar directory mapname .Op Fl map-options .Oc .Ar ... .Sh DESCRIPTION +.Bf -symbolic +This daemon is obsolete. +Users are advised to use +.Xr autofs 5 +instead. +.Ef +.Pp The .Nm utility is a daemon that automatically mounts file systems whenever a file or directory within that file system is accessed. File systems are automatically unmounted when they appear to be quiescent. .Pp The .Nm utility operates by attaching itself as an .Tn NFS server to each of the specified .Ar directories . Lookups within the specified directories are handled by .Nm , which uses the map defined by .Ar mapname to determine how to resolve the lookup. Generally, this will be a host name, some file system information and some mount options for the given file system. .Pp In the first form depicted above, .Nm will print a short help string. In the second form, if no options are specified, or if the .Fl F is used, .Nm will read configuration parameters from the file .Ar conf_file which defaults to .Pa /etc/amd.conf . The last form is described below. .Sh OPTIONS .Bl -tag -width indent .It Fl a Ar temporary-directory Specify an alternative location for the real mount points. The default is .Pa /.amd_mnt . .It Fl c Ar duration Specify a .Ar duration , in seconds, that a looked up name remains cached when not in use. The default is 5 minutes. .It Fl d Ar domain Specify the local domain name. If this option is not given the domain name is determined from the hostname. .It Fl k Ar kernel-arch Specifies the kernel architecture. This is used solely to set the ${karch} selector. .It Fl l Ar logfile Specify a logfile in which to record mount and unmount events. If .Ar logfile is the string .Dq Li syslog , then the log messages will be sent to the system log daemon by .Xr syslog 3 . The default syslog facility used is .Dv LOG_DAEMON . If you wish to change it, append its name to the log file name, delimited by a single colon. For example, if .Ar logfile is the string .Dq Li syslog:local7 then .Nm will log messages via .Xr syslog 3 using the .Dv LOG_LOCAL7 facility (if it exists on the system). .It Fl n Normalize hostnames. The name referred to by ${rhost} is normalized relative to the host database before being used. The effect is to translate aliases into .Dq official names. .It Fl o Ar op_sys_ver Override the compiled-in version number of the operating system. Useful when the built in version is not desired for backward compatibility reasons. For example, if the build in version is .Dq Li 2.5.1 , you can override it to .Dq Li 5.5.1 , and use older maps that were written with the latter in mind. .It Fl p Print PID. Outputs the process ID of .Nm to standard output where it can be saved into a file. .It Fl r Restart existing mounts. The .Nm utility will scan the mount file table to determine which file systems are currently mounted. Whenever one of these would have been auto-mounted, .Nm .Em inherits it. .It Fl t Ar timeout.retransmit Specify the NFS .Ar timeout interval, in tenths of a second, between .Tn NFS/RPC retries (for UDP only). The default is 0.8 seconds. The second value alters the retransmit counter, which defaults to 11 retransmissions. Both of these values are used by the kernel to communicate with amd. Useful defaults are supplied if either or both values are missing. .Pp The .Xr amd 8 utility relies on the kernel RPC retransmit mechanism to trigger mount retries. The values of these parameters change the overall retry interval. Too long an interval gives poor interactive response; too short an interval causes excessive retries. .It Fl v Version. Displays version and configuration information on standard error. .It Fl w Ar interval Specify an .Ar interval , in seconds, between attempts to dismount file systems that have exceeded their cached times. The default is 2 minutes. .It Fl x Ar options Specify run-time logging options. The options are a comma separated list chosen from: .Li fatal , error , user , warn , info , map , stats , all . .It Fl y Ar domain Specify an alternative .Tn NIS domain from which to fetch the .Tn NIS maps. The default is the system domain name. This option is ignored if .Tn NIS support is not available. .It Fl A Ar arch Specifies the OS architecture. This is used solely to set the ${arch} selector. .It Fl C Ar cluster-name Specify an alternative HP-UX cluster name to use. .It Fl D Ar option Select from a variety of debug options. Prefixing an option with the string .Dq Li no reverses the effect of that option. Options are cumulative. The most useful option is .Dq Li all . .Pp Since .Fl D is only used for debugging other options are not documented here: the current supported set of options is listed by the .Fl v option and a fuller description is available in the program source. .It Fl F Ar conf_file Specify an .Nm configuration file to use. See .Xr amd.conf 5 for description of this file's format. This configuration file is used to specify any options in lieu of typing many of them on the command line. The .Xr amd.conf 5 file includes directives for every command line option amd has, and many more that are only available via the configuration file facility. The configuration file specified by this option is processed after all other options had been processed, regardless of the actual location of this option on the command line. .It Fl H Print help and usage string. .It Fl O Ar op_sys_name Override the compiled-in name of the operating system. Useful when the built in name is not desired for backward compatibility reasons. For example, if the build in name is .Dq Li sunos5 , you can override it to .Dq Li sos5 and use older maps which were written with the latter in mind. .It Fl S Do not lock the running executable pages of .Nm into memory. To improve .Nm Ns 's performance, systems that support the .Xr plock 3 call, could lock the .Nm process into memory. This way there is less chance the operating system will schedule, page out, and swap the .Nm process as needed. This tends to improve .Nm Ns 's performance, at the cost of reserving the memory used by the .Nm process (making it unavailable for other processes). If this behavior is not desired, use the .Fl S option. .It Fl T Ar tag Specify a tag to use with .Xr amd.conf 5 . All map entries tagged with .Ar tag will be processed. Map entries that are not tagged are always processed. Map entries that are tagged with a tag other than .Ar tag will not be processed. .El .Sh FILES .Bl -tag -width ".Pa /etc/amd.conf" .It Pa /.amd_mnt directory under which file systems are dynamically mounted .It Pa /etc/amd.conf default configuration file .El .Sh CAVEATS Some care may be required when creating a mount map. .Pp Symbolic links on an .Tn NFS file system can be incredibly inefficient. In most implementations of .Tn NFS , their interpolations are not cached by the kernel and each time a symbolic link is encountered during a .Em lookuppn translation it costs an .Tn RPC call to the .Tn NFS server. It would appear that a large improvement in real-time performance could be gained by adding a cache somewhere. Replacing symlinks with a suitable incarnation of the auto-mounter results in a large real-time speedup, but also causes a large number of process context switches. .Pp A weird imagination is most useful to gain full advantage of all the features. .Sh SEE ALSO .Xr domainname 1 , .Xr hostname 1 , .Xr syslog 3 , .Xr amd.conf 5 , .Xr mtab 5 , .Xr amq 8 , .Xr mount 8 , .Xr umount 8 .Pp .Dq am-utils .Xr info 1 entry. .Rs .%A Erez Zadok .%B "Linux NFS and Automounter Administration" .%O ISBN 0-7821-2739-8 .%I Sybex .%D 2001 .Re .Pp .Pa http://www.am-utils.org/ .Rs .%T Amd \- The 4.4 BSD Automounter .Re .Sh HISTORY The .Nm utility first appeared in .Bx 4.4 . .Sh AUTHORS .An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk , Department of Computing, Imperial College, London, UK. .Pp .An Erez Zadok Aq ezk@cs.sunysb.edu , Computer Science Department, Stony Brook University, Stony Brook, New York, USA. .Pp Other authors and contributors to am-utils are listed in the .Pa AUTHORS file distributed with am-utils. Index: head/contrib/amd/amq/amq.8 =================================================================== --- head/contrib/amd/amq/amq.8 (revision 296193) +++ head/contrib/amd/amq/amq.8 (revision 296194) @@ -1,280 +1,287 @@ .\" .\" Copyright (c) 1997-2006 Erez Zadok .\" Copyright (c) 1990 Jan-Simon Pendry .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine .\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Jan-Simon Pendry at Imperial College, London. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgment: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" %W% (Berkeley) %G% .\" .\" $Id: amq.8,v 1.15.2.1 2006/01/02 18:48:24 ezk Exp $ .\" $FreeBSD$ .\" -.Dd January 2, 2006 +.Dd February 26, 2016 .Dt AMQ 8 .Os .Sh NAME .Nm amq .Nd automounter query tool .Sh SYNOPSIS .Nm .Op Fl fmpsvwHTU .Op Fl h Ar hostname .Op Fl l Ar log_file .Op Fl x Ar log_options .Op Fl D Ar debug_options .Op Fl P Ar program_number .Op Oo Fl u Oc Ar directory ... .Sh DESCRIPTION +.Bf -symbolic +This command is obsolete. +Users are advised to use +.Xr autofs 5 +instead. +.Ef +.Pp The .Nm utility provides a simple way of determining the current state of the .Xr amd 8 program. Communication is by .Tn RPC . Three modes of operation are supported by the current protocol. By default a list of mount points and auto-mounted file systems is output. An alternative host can be specified using the .Fl h option. .Pp If .Ar directory names are given, as output by default, then per file system information is displayed. .Sh OPTIONS .Bl -tag -width indent .It Fl f Ask the automounter to flush the internal caches and reload all the maps. .It Fl h Ar hostname Specify an alternate host to query. By default the local host is used. In an .Tn HP-UX cluster, the root server is queried by default, since that is the system on which the automounter is normally run. .It Fl l Ar log_file Tell .Xr amd 8 to use .Ar log_file as the log file name. For security reasons, this must be the same log file which .Xr amd 8 used when started. This option is therefore only useful to refresh .Nm amd Ns 's open file handle on the log file, so that it can be rotated and compressed via daily cron jobs. .It Fl m Ask the automounter to provide a list of mounted file systems, including the number of references to each file system and any error which occurred while mounting. .It Fl p Return the process ID of the remote or locally running .Xr amd 8 . Useful when you need to send a signal to the local .Xr amd 8 process, and would rather not have to search through the process table. This option is used in the .Pa ctl-amd script. .It Fl s Ask the automounter to provide system-wide mount statistics. .It Fl u Ask the automounter to unmount the file systems named in .Ar directory instead of providing information about them. Unmounts are requested, not forced. They merely cause the mounted file system to timeout, which will be picked up by .Nm amd Ns 's main scheduler thus causing the normal timeout action to be taken. .It Fl v Ask the automounter for its version information. This is a subset of the information output by .Xr amd 8 Ns 's .Fl v option. .It Fl w Translate a full pathname as returned by .Xr getcwd 3 into a short .Xr amd 8 pathname that goes through its mount points. This option requires that .Xr amd 8 is running. .It Fl x Ar log_options Ask the automounter to use the logging options specified in .Ar log_options from now on. .It Fl D Ar debug_options Ask the automounter to use the debugging options specified in .Ar debug_options from now on. .It Fl H Display short usage message. .It Fl P Ar program_number Contact an alternate running .Xr amd 8 that had registered itself on a different .Tn RPC .Ar program_number and apply all other operations to that instance of the automounter. This is useful when you run multiple copies of .Xr amd 8 , and need to manage each one separately. If not specified, .Nm will use the default program number for .Xr amd 8 , 300019. For security reasons, the only alternate program numbers .Xr amd 8 can use range from 300019 to 300029, inclusive. .It Fl T Contact .Xr amd 8 using the TCP transport only. Normally .Nm will try TCP, and if that failed, will try UDP. .It Fl U Contact .Xr amd 8 using UDP (connectionless) transport only. Normally .Nm will try TCP, and if that failed, will try UDP. .El .Sh FILES .Bl -tag -width ".Pa amq.x" -compact .It Pa amq.x .Tn RPC protocol description. .El .Sh CAVEATS The .Nm utility uses a Sun registered .Tn RPC program number (300019 decimal) which may not be in the .Xr rpc 5 database. .Pp If the TCP wrappers library is available, and the .Va use_tcpwrappers global .Xr amd.conf 5 option is set to .Dq Li yes , then .Xr amd 8 will verify that the host running .Nm is authorized to connect. The .Dq Li amd service name must be used in the .Pa /etc/hosts.allow and .Pa /etc/hosts.deny files. For example, to allow only localhost to connect to .Xr amd 8 , add this line to .Pa /etc/hosts.allow : .Pp .Dl "amd: localhost" .Pp and this line to .Pa /etc/hosts.deny : .Pp .Dl "amd: ALL" .Sh SEE ALSO .Xr amd.conf 5 , .Xr hosts_access 5 , .Xr amd 8 .Pp .Dq am-utils .Xr info 1 entry. .Rs .%A Erez Zadok .%B "Linux NFS and Automounter Administration" .%O ISBN 0-7821-2739-8 .%I Sybex .%D 2001 .Re .Pp .Pa http://www.am-utils.org/ .Rs .%T Amd \- The 4.4 BSD Automounter .Re .Sh HISTORY The .Nm utility first appeared in .Bx 4.4 . .Sh AUTHORS .An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk , Department of Computing, Imperial College, London, UK. .Pp .An Erez Zadok Aq ezk@cs.sunysb.edu , Computer Science Department, Stony Brook University, Stony Brook, New York, USA. .Pp Other authors and contributors to .Nm am-utils are listed in the .Pa AUTHORS file distributed with .Nm am-utils . Index: head/contrib/amd/amq/pawd.1 =================================================================== --- head/contrib/amd/amq/pawd.1 (revision 296193) +++ head/contrib/amd/amq/pawd.1 (revision 296194) @@ -1,109 +1,116 @@ .\" .\" Copyright (c) 1997-2006 Erez Zadok .\" Copyright (c) 1990 Jan-Simon Pendry .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine .\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Jan-Simon Pendry at Imperial College, London. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgment: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" %W% (Berkeley) %G% .\" .\" $Id: pawd.1,v 1.9.2.1 2006/01/02 18:48:24 ezk Exp $ .\" $FreeBSD$ .\" -.Dd January 2, 2006 +.Dd February 26, 2016 .Dt PAWD 1 .Os .Sh NAME .Nm pawd .Nd print automounter working directory .Sh SYNOPSIS .Nm .Op Ar path ... .Sh DESCRIPTION +.Bf -symbolic +This command is obsolete. +Users are advised to use +.Xr autofs 5 +instead. +.Ef +.Pp The .Nm utility is used to print the current working directory, adjusted to reflect proper paths that can be reused to go through the automounter for the shortest possible path. In particular, the path printed back does not include any of .Xr amd 8 Ns 's local mount points. Using them is unsafe, because .Xr amd 8 may unmount managed file systems from the mount points, and thus including them in paths may not always find the files within. .Pp Without any arguments, .Nm will print the automounter adjusted current working directory. With any number of arguments, it will print the adjusted .Ar path of each one of the arguments. .Sh SEE ALSO .Xr pwd 1 , .Xr amd 8 , .Xr amq 8 .Pp .Dq am-utils .Xr info 1 entry. .Rs .%A Erez Zadok .%B "Linux NFS and Automounter Administration" .%O ISBN 0-7821-2739-8 .%I Sybex .%D 2001 .Re .Pp .Pa http://www.am-utils.org/ .Rs .%T Amd \- The 4.4 BSD Automounter .Re .Sh HISTORY The .Nm utility first appeared in .Fx 3.0 . .Sh AUTHORS .An Erez Zadok Aq ezk@cs.sunysb.edu , Computer Science Department, Stony Brook University, Stony Brook, New York, USA. .Pp Other authors and contributors to am-utils are listed in the .Pa AUTHORS file distributed with am-utils. Index: head/contrib/amd/fixmount/fixmount.8 =================================================================== --- head/contrib/amd/fixmount/fixmount.8 (revision 296193) +++ head/contrib/amd/fixmount/fixmount.8 (revision 296194) @@ -1,214 +1,221 @@ .\" .\" Copyright (c) 1997-2006 Erez Zadok .\" Copyright (c) 1990 Jan-Simon Pendry .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine .\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Jan-Simon Pendry at Imperial College, London. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgment: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" %W% (Berkeley) %G% .\" .\" $Id: fixmount.8,v 1.12.2.1 2006/01/02 18:48:25 ezk Exp $ .\" $FreeBSD$ .\" -.Dd January 2, 2006 +.Dd February 26, 2016 .Dt FIXMOUNT 8 .Os .Sh NAME .Nm fixmount .Nd fix remote mount entries .Sh SYNOPSIS .Nm .Op Fl adervq .Op Fl h Ar name .Ar host ... .Sh DESCRIPTION +.Bf -symbolic +This command is obsolete. +Users are advised to use +.Xr autofs 5 +instead. +.Ef +.Pp The .Nm utility is a variant of .Xr showmount 8 that can delete bogus mount entries in remote .Xr mountd 8 daemons. The actions specified by the options are performed for each .Ar host in turn. .Sh OPTIONS .Bl -tag -width indent .It Fl a , d , e These options work as in .Xr showmount 8 except that only entries pertaining to the local host are printed. .It Fl r Removes those remote mount entries on .Ar host that do not correspond to current mounts, i.e., which are left-over from a crash or are the result of improper mount protocol. The actuality of mounts is verified using the entries in .Pa /etc/mtab . .It Fl v Verify remote mounts. Similar to .Fl r except that only a notification message is printed for each bogus entry found. The remote mount table is not changed. .It Fl A Issues a command to the remote mountd declaring that .Em all of its file systems have been unmounted. This should be used with caution, as it removes all remote mount entries pertaining to the local system, whether or not any file systems are still mounted locally. .It Fl q Be quiet. Suppresses error messages due to timeouts and .Dq Li "Program not registered" , i.e., due to remote hosts not supporting RPC or not running .Xr mountd 8 . .It Fl h Ar name Pretend the local hostname is .Ar name . This is useful after the local hostname has been changed and rmtab entries using the old name remain on a remote machine. Unfortunately, most mountd's will not be able to successfully handle removal of such entries, so this option is useful in combination with .Fl v only. .Pp This option also saves time as comparisons of remotely recorded and local hostnames by address are avoided. .El .Sh FILES .Bl -tag -width ".Pa /etc/rmtab" .It Pa /etc/mtab List of current mounts. .It Pa /etc/rmtab Backup file for remote mount entries on .Tn NFS server. .El .Sh SEE ALSO .Xr mtab 5 , .Xr rmtab 5 , .Xr mountd 8 , .Xr showmount 8 .Pp .Dq am-utils .Xr info 1 entry. .Rs .%A Erez Zadok .%B "Linux NFS and Automounter Administration" .%O ISBN 0-7821-2739-8 .%I Sybex .%D 2001 .Re .Pp .Pa http://www.am-utils.org/ .Rs .%T Amd \- The 4.4 BSD Automounter .Re .Sh HISTORY The .Nm utility appeared in .Fx 3.0 . .Sh AUTHORS .An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk , Department of Computing, Imperial College, London, UK. .Pp .An Erez Zadok Aq ezk@cs.columbia.edu , Department of Computer Science, Columbia University, New York, USA. .Pp .An Other authors and contributors to .Nm am-utils are listed in the .Pa AUTHORS file distributed with .Nm am-utils . .Sh AUTHORS .An Andreas Stolcke Aq stolcke@icsi.berkeley.edu .Pp .An Erez Zadok Aq ezk@cs.sunysb.edu , Computer Science Department, Stony Brook University, Stony Brook, New York, USA. .Pp Other authors and contributors to am-utils are listed in the .Pa AUTHORS file distributed with am-utils. .Sh BUGS No attempt is made to verify the information in .Pa /etc/mtab itself. .Pp Since swap file mounts are not recorded in .Pa /etc/mtab , a heuristic specific to SunOS is used to determine whether such a mount is actual (replacing the string .Dq Li swap with .Dq Li root and verifying the resulting path). .Pp Symbolic links on the server will cause the path in the remote entry to differ from the one in .Pa /etc/mtab . To catch those cases, a file system is also deemed mounted if its .Em local mount point is identical to the remote entry. I.e., on a SunOS diskless client, .Pa server:/export/share/sunos.4.1.1 is actually .Pa /usr/share . Since the local mount point is .Pa /usr/share as well this will be handled correctly. .Pp There is no way to clear a stale entry in a remote .Xr mountd 8 after the local hostname (or whatever reverse name resolution returns for it) has been changed. To take care of these cases, the remote .Pa /etc/rmtab file has to be edited and .Xr mountd 8 restarted. .Pp The RPC timeouts for .Xr mountd 8 calls can only be changed by recompiling. The defaults are 2 seconds for client handle creation and 5 seconds for RPC calls. Index: head/contrib/amd/fsinfo/fsinfo.8 =================================================================== --- head/contrib/amd/fsinfo/fsinfo.8 (revision 296193) +++ head/contrib/amd/fsinfo/fsinfo.8 (revision 296194) @@ -1,223 +1,230 @@ .\" .\" Copyright (c) 1997-2006 Erez Zadok .\" Copyright (c) 1993 Jan-Simon Pendry. .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgment: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" from: @(#)fsinfo.8 8.1 (Berkeley) 6/28/93 .\" $Id: fsinfo.8,v 1.13.2.1 2006/01/02 18:48:25 ezk Exp $ .\" $FreeBSD$ .\" -.Dd January 2, 2006 +.Dd February 26, 2016 .Dt FSINFO 8 .Os .Sh NAME .Nm fsinfo .Nd co-ordinate site-wide file system information .Sh SYNOPSIS .Nm .Op Fl qv .Op Fl a Ar autodir .Op Fl b Ar bootparams_prefix .Op Fl d Ar dumpsets_prefix .Op Fl e Ar exports_prefix .Op Fl f Ar fstabs_prefix .Op Fl h Ar hostname .Op Fl m Ar automounts_prefix .Op Fl I Ar dir .Oo .Fl D .Ar name Ns Op = Ns Ar string .Oc .Op Fl U Ar name .Ar config ... .Sh DESCRIPTION +.Bf -symbolic +This command is obsolete. +Users are advised to use +.Xr autofs 5 +instead. +.Ef +.Pp The .Nm utility takes a set of system configuration information, and generates a coordinated set of .Xr amd 8 , .Xr mount 8 and .Xr mountd 8 configuration files. .Pp The following options are available: .Bl -tag -width Fl .It Fl a Ar autodir Specifies the directory name in which to place the automounter's mount points. This defaults to .Pa /a . .It Fl b Ar bootparams_prefix Specifies the prefix for the .Pa bootparams file. If it is not given, then the file will not be generated. The file will be constructed for the destination machine and will be placed into a file named .Pa bootparams and prefixed by the .Ar bootparams_prefix string. The file generated contains a list of entries describing each diskless client that can boot from the destination machine. .It Fl d Ar dumpsets_prefix Specifies the prefix for the .Pa dumpsets file. If it is not specified, then the file will not be generated. The file will be for the destination machine and will be placed into a file named .Pa dumpsets prefixed by the .Ar dumpsets_prefix string. This file is for use by .Tn Imperial College's local backup system. .It Fl e Ar exports_prefix Defines the prefix for the .Pa exports files. If it is not given, then the file will not be generated. For each machine defined in the configuration files as having disks, and .Pa exports file is constructed and given a file name determined by the name of the machine, prefixed with the .Ar exports_prefix string. If a machine is defined as diskless, then no file will be created for it. The files contain entries for directories on the machine that may be exported to clients. .It Fl f Ar fstabs_prefix This defines the prefix for the .Pa fstab files. The files will only be created if this prefix is defined. For each machine defined in the configuration files, a .Pa fstab file is created with the file name determined by prefixing this .Ar fstabs_prefix string with the name of the machine. These files contain entries for file systems and partitions to mount at boot time. .It Fl h Ar hostname Defines the hostname of the destination machine to process for. If this is not specified, it defaults to the local machine name, as returned by .Xr gethostname 3 . .It Fl m Ar automounts_prefix Defines the prefix for the automounter files. The maps will only be produced if this option is specified. The mount maps suitable for the network defined by the configuration files will be placed into files with names calculated by prefixing the .Ar automounts_prefix string to the name of each map. .It Fl q Selects quite mode. Only error messages that are generated will be displayed. .It Fl v Selects verbose mode. When this is activated, more messages will be displayed, and all information discovered when performing the semantic analysis phase will be displayed. Each verbose message is output to the standard output on a line starting with a `#' character. .It Fl D Xo .Ar name Ns Op = Ns Ar string .Xc Defines a symbol .Ar name for the preprocessor when reading the configuration files. Equivalent to the .Em #define directive. .It Fl I Ar dir This option is passed into the preprocessor for the configuration files. It specifies directories in which to find include files. .It Fl U Ar name Removes and initial definition of the symbol .Ar name . Inverse of the .Fl D option. .It Ar config One or more configuration files to be passed as input to .Nm . .El .Pp The .Nm command is fully described in the document .%T "Amd - The 4.4BSD Automounter" . .Sh SEE ALSO .Xr amd 8 , .Xr mount 8 , .Xr mountd 8 .Pp .Dq am-utils .Xr info 1 entry. .Rs .%A Erez Zadok .%B "Linux NFS and Automounter Administration" .%O ISBN 0-7821-2739-8 .%I Sybex .%D 2001 .Re .Pp .Pa http://www.am-utils.org/ .Rs .%T Amd \- The 4.4 BSD Automounter .Re .Sh HISTORY The .Nm command first appeared in .Bx 4.4 . .Sh AUTHORS .An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk , Department of Computing, Imperial College, London, UK. .Pp .An Erez Zadok Aq ezk@cs.sunysb.edu , Computer Science Department, Stony Brook University, Stony Brook, New York, USA. .Pp Other authors and contributors to am-utils are listed in the .Pa AUTHORS file distributed with am-utils. Index: head/contrib/amd/hlfsd/hlfsd.8 =================================================================== --- head/contrib/amd/hlfsd/hlfsd.8 (revision 296193) +++ head/contrib/amd/hlfsd/hlfsd.8 (revision 296194) @@ -1,376 +1,383 @@ .\" .\" Copyright (c) 1997-2006 Erez Zadok .\" Copyright (c) 1989 Jan-Simon Pendry .\" Copyright (c) 1989 Imperial College of Science, Technology & Medicine .\" Copyright (c) 1989 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Jan-Simon Pendry at Imperial College, London. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgment: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" $Id: hlfsd.8,v 1.11.2.1 2006/01/02 18:48:25 ezk Exp $ .\" $FreeBSD$ .\" .\" HLFSD was written at Columbia University Computer Science Department, by .\" Erez Zadok and Alexander Dupuy .\" It is distributed under the same terms and conditions as AMD. .\" -.Dd January 2, 2006 +.Dd February 26, 2016 .Dt HLFSD 8 .Os .Sh NAME .Nm hlfsd .Nd home-link file system daemon .Sh SYNOPSIS .Nm .Op Fl fhnpvC .Op Fl a Ar alt_dir .Op Fl c Ar cache-interval .Op Fl g Ar group .Op Fl i Ar reload-interval .Op Fl l Ar logfile .Op Fl o Ar mount-options .Op Fl x Ar log-options .Op Fl D Ar debug-options .Op Fl P Ar password-file .Op Ar linkname Op Ar subdir .Sh DESCRIPTION +.Bf -symbolic +This daemon is obsolete. +Users are advised to use +.Xr autofs 5 +instead. +.Ef +.Pp The .Nm utility is a daemon which implements a file system containing a symbolic link to subdirectory within a user's home directory, depending on the user which accessed that link. It was primarily designed to redirect incoming mail to users' home directories, so that it can read from anywhere. .Pp The .Nm utility operates by mounting itself as an .Tn NFS server for the directory containing .Ar linkname , which defaults to .Pa /hlfs/home . Lookups within that directory are handled by .Nm , which uses the password map to determine how to resolve the lookup. The directory will be created if it does not already exist. The symbolic link will be to the accessing user's home directory, with .Ar subdir appended to it. If not specified, .Ar subdir defaults to .Pa .hlfsdir . This directory will also be created if it does not already exist. .Pp A .Dv SIGTERM sent to .Nm will cause it to shutdown. A .Dv SIGHUP will flush the internal caches, and reload the password map. It will also close and reopen the log file, to enable the original log file to be removed or rotated. A .Dv SIGUSR1 will cause it to dump its internal table of user IDs and home directories to the file .Pa /usr/tmp/hlfsd.dump.XXXXXX . .Sh OPTIONS .Bl -tag -width indent .It Fl a Ar alt_dir Alternate directory. The name of the directory to which the symbolic link returned by .Nm will point, if it cannot access the home directory of the user. This defaults to .Pa /var/hlfs . This directory will be created if it does not exist. It is expected that either users will read these files, or the system administrators will run a script to resend this .Dq lost mail to its owner. .It Fl c Ar cache-interval Caching interval. The .Nm utility will cache the validity of home directories for this interval, in seconds. Entries which have been verified within the last .Ar cache-interval seconds will not be verified again, since the operation could be expensive, and the entries are most likely still valid. After the interval has expired, .Nm will re-verify the validity of the user's home directory, and reset the cache time-counter. The default value for .Ar cache-interval is 300 seconds (5 minutes). .It Fl f Force fast startup. This option tells .Nm to skip startup-time consistency checks such as existence of mount directory, alternate spool directory, symlink to be hidden under the mount directory, their permissions and validity. .It Fl g Ar group Set the special group .Dv HLFS_GID to .Ar group . Programs such as .Xr comsat 8 , (which access the mailboxes of other users) must be setgid .Dv HLFS_GID to work properly. The default group is .Dq Li hlfs . If no group is provided, and there is no group .Dq Li hlfs , this feature is disabled. .It Fl h Help. Print a brief help message, and exit. .It Fl i Ar reload-interval Map-reloading interval. Each .Ar reload-interval seconds, .Nm will reload the password map. The .Nm utility needs the password map for the UIDs and home directory pathnames. The .Nm utility schedules a .Dv SIGALRM to reload the password maps. A .Dv SIGHUP sent to .Nm will force it to reload the maps immediately. The default value for .Ar reload-interval is 900 seconds (15 minutes). .It Fl l Ar logfile Specify a log file to which .Nm will record events. If .Ar logfile is the string .Dq Li syslog then the log messages will be sent to the system log daemon by .Xr syslog 3 , using the .Dv LOG_DAEMON facility. This is also the default. .It Fl n No verify. The .Nm utility will not verify the validity of the symbolic link it will be returning, or that the user's home directory contains sufficient disk-space for spooling. This can speed up .Nm at the cost of possibly returning symbolic links to home directories which are not currently accessible or are full. By default, .Nm validates the symbolic-link in the background. The .Fl n option overrides the meaning of the .Fl c option, since no caching is necessary. .It Fl o Ar mount-options Mount options. Mount options which .Nm will use to mount itself on top of .Ar dirname . By default, .Ar mount-options is set to .Dq Li ro . If the system supports symbolic-link caching, default options are set to .Dq Li ro,nocache . .It Fl p Print PID. Outputs the process ID of .Nm to standard output where it can be saved into a file. .It Fl v Version. Displays version information to standard error. .It Fl x Ar log-options Specify run-time logging options. The options are a comma separated list chosen from: .Li fatal , error , user , warn , info , map , stats , all . .It Fl C Force .Nm to run on systems that cannot turn off the NFS attribute-cache. Use of this option on those systems is discouraged, as it may result in loss or mis-delivery of mail. The option is ignored on systems that can turn off the attribute-cache. .It Fl D Ar log-options Select from a variety of debugging options. Prefixing an option with the string .Dq Li no reverses the effect of that option. Options are cumulative. The most useful option is .Dq Li all . Since this option is only used for debugging other options are not documented here. A fuller description is available in the program source. A .Dv SIGUSR1 sent to .Nm will cause it to dump its internal password map to the file .Pa /usr/tmp/hlfsd.dump.XXXXXX . .It Fl P Ar password-file Read the user-name, user-id, and home directory information from the file .Ar password-file . Normally, .Nm will use .Xr getpwent 3 to read the password database. This option allows you to override the default database, and is useful if you want to map users' mail files to a directory other than their home directory. Only the username, uid, and home-directory fields of the file .Ar password-file are read and checked. All other fields are ignored. The file .Ar password-file must otherwise be compliant with .Ux System 7 colon-delimited format .Xr passwd 5 . .El .Sh FILES .Bl -tag -width ".Pa /var/hlfs" .It Pa /hlfs directory under which .Nm mounts itself and manages the symbolic link .Pa home . .It Pa .hlfsdir default sub-directory in the user's home directory, to which the .Pa home symbolic link returned by .Nm points. .It Pa /var/hlfs directory to which .Pa home symbolic link returned by .Nm points if it is unable to verify the that user's home directory is accessible. .El .Sh SEE ALSO .Xr mail 1 , .Xr getgrent 3 , .Xr getpwent 3 , .Xr mtab 5 , .Xr passwd 5 , .Xr amd 8 , .Xr cron 8 , .Xr mount 8 , .Xr sendmail 8 , .Xr umount 8 .Rs .%T HLFSD: Delivering Email to Your $HOME .%B Proc. LISA-VII, The 7th Usenix System Administration Conference .%D November 1993 .Re .Pp .Dq am-utils .Xr info 1 entry. .Rs .%A Erez Zadok .%B "Linux NFS and Automounter Administration" .%O ISBN 0-7821-2739-8 .%I Sybex .%D 2001 .Re .Pp .Pa http://www.am-utils.org/ .Sh HISTORY The .Nm utility appeared in .Fx 3.0 . .Sh AUTHORS .An Erez Zadok Aq ezk@cs.sunysb.edu , Computer Science Department, Stony Brook University, Stony Brook, New York, USA. .Pp .An Alexander Dupuy Aq dupuy@smarts.com , System Management ARTS, White Plains, New York, USA. .Pp Other authors and contributors to am-utils are listed in the .Pa AUTHORS file distributed with am-utils. Index: head/contrib/amd/scripts/amd.conf.5 =================================================================== --- head/contrib/amd/scripts/amd.conf.5 (revision 296193) +++ head/contrib/amd/scripts/amd.conf.5 (revision 296194) @@ -1,1098 +1,1105 @@ .\" .\" Copyright (c) 1997-2006 Erez Zadok .\" Copyright (c) 1990 Jan-Simon Pendry .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine .\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Jan-Simon Pendry at Imperial College, London. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgment: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" %W% (Berkeley) %G% .\" .\" $Id: amd.conf.5,v 1.39.2.5 2006/04/21 01:12:04 ezk Exp $ .\" $FreeBSD$ .\" -.Dd April 21, 2006 +.Dd February 26, 2016 .Dt AMD.CONF 5 .Os .Sh NAME .Nm amd.conf .Nd .Xr amd 8 configuration file .Sh SYNOPSIS .Nm .Sh DESCRIPTION +.Bf -symbolic +This configuration file is obsolete. +Users are advised to use +.Xr autofs 5 +instead. +.Ef +.Pp The .Nm file is the configuration file for .Xr amd 8 , as part of the am-utils suite. .Pp The .Nm file contains runtime configuration information for the .Xr amd 8 automounter program. .Sh FILE FORMAT The file consists of sections and parameters. A section begins with the name of the section in square brackets and continues until the next section begins or the end of the file is reached. Sections contain parameters of the form .Dq Ar name No = Ar value . .Pp The file is line-based \[em] that is, each newline-terminated line represents either a comment, a section name or a parameter. No line-continuation syntax is available. .Pp Section, parameter names and their values are case sensitive. .Pp Only the first equals sign in a parameter is significant. Whitespace before or after the first equals sign is discarded. Leading, trailing and internal whitespace in section and parameter names is irrelevant. Leading and trailing whitespace in a parameter value is discarded. Internal whitespace within a parameter value is not allowed, unless the whole parameter value is quoted with double quotes as in .Dq Ar name No = Qq Li "some\ value" . .Pp Any line beginning with a pound sign (#) is ignored, as are lines containing only whitespace. .Pp The values following the equals sign in parameters are all either a string (no quotes needed if string does not include spaces) or a boolean, which may be given as .Dq Li yes/no . Case is significant in all values. Some items such as cache timeouts are numeric. .Sh SECTIONS .Ss "The [global] section" Parameters in this section either apply to .Nm amd as a whole, or to all other regular map sections which follow. There should be only one global section defined in one configuration file. .Pp It is highly recommended that this section be specified first in the configuration file. If it is not, then regular map sections which precede it will not use global values defined later. .Ss "Regular [/map] sections" Parameters in regular (non-global) sections apply to a single map entry. For example, if the map section .Bq Pa /homes is defined, then all parameters following it will be applied to the .Pa /homes .Nm amd Ns -managed mount point. .Sh PARAMETERS .Ss "Parameters common to all sections" These parameters can be specified either in the global or a map specific section. Entries specified in a map-specific section override the default value or one defined in the global section. If such a common parameter is specified only in the global section, it is applicable to all regular map sections that follow. .Bl -tag -width 4n .It Va browsable_dirs Pq string, default=no If .Dq Li yes , then .Nm amd Ns 's top-level mount points will be browsable to .Xr readdir 3 calls. This means you could run for example .Xr ls 1 and see what keys are available to mount in that directory. Not all entries are made visible to .Xr readdir 3 : the .Dq Li /default entry, wildcard entries, and those with a .Ql / in them are not included. If you specify .Dq Li full to this option, all but .Dq Li /default will be visible. Note that if you run a command which will attempt to .Xr stat 2 the entries, such as often done by .Dq Li "ls -l" or .Dq Li "ls -F" , .Xr amd 8 will attempt to mount .Em every entry in that map. This is often called a .Dq "mount storm" . .It Va map_defaults Pq string, default no empty This option sets a string to be used as the map's /defaults entry, overriding any /defaults specified in the map. This allows local users to override map defaults without modifying maps globally. .It Va map_options Pq string, default no options This option is the same as specifying map options on the command line to .Xr amd 8 , such as .Dq Li "cache:=all" . .It Va map_type Pq string, default search all map types If specified, .Xr amd 8 will initialize the map only for the type given. This is useful to avoid the default map search type used by .Xr amd 8 which takes longer and can have undesired side-effects such as initializing .Tn NIS even if not used. Possible values are: .Pp .Bl -tag -width ".Cm nisplus" -compact .It Cm exec executable maps .It Cm file plain files .It Cm hesiod Hesiod name service from MIT .It Cm ldap Lightweight Directory Access Protocol .It Cm ndbm (New) dbm style hash files .It Cm nis Network Information Services (version 2) .It Cm nisplus Network Information Services Plus (version 3) .It Cm passwd local password files .It Cm union union maps .El .It Va mount_type Pq string, default=nfs All .Xr amd 8 mount types default to .Tn NFS . That is, .Xr amd 8 is an .Tn NFS server on the map mount points, for the local host it is running on. If .Dq Li autofs is specified, .Xr amd 8 will be an autofs server for those mount points. .It Va autofs_use_lofs Pq string, default=yes When set to .Dq Li yes and using Autofs, .Xr amd 8 will use lofs-type (loopback) mounts for type:=link mounts. This has the advantage of mounting in place, and users get to the see the same pathname that they chdir'ed into. If this option is set to .Dq Li no , then .Xr amd 8 will use symlinks instead: that code is more tested, but negates autofs's big advantage of in-place mounts. .It Va search_path Pq string, default no search path This provides a (colon-delimited) search path for file maps. Using a search path, sites can allow for local map customizations and overrides, and can query distributed maps in several locations as needed. .It Va selectors_in_defaults Pq boolean, default=no If .Dq Li yes , then the /defaults entry of maps will search for and process any selectors before setting defaults for all other keys in that map. Useful when you want to set different options for a complete map based on some parameters. For example, you may want to better the NFS performance over slow slip-based networks as follows: .Bd -literal /defaults \\ wire==slip-net;opts:=intr,rsize=1024,wsize=1024 \\ wire!=slip-net;opts:=intr,rsize=8192,wsize=8192 .Ed Deprecated form: selectors_on_default .El .Ss "Parameters applicable to the global section only" .Bl -tag -width 4n .It Va arch Pq string, default to compiled in value Same as the .Fl A option to .Xr amd 8 . Allows you to override the value of the .Va arch .Xr amd 8 variable. .It Va auto_attrcache Pq numeric, default=0 Specify in seconds (or units of 0.1 seconds, depending on the OS), what is the (kernel-side) NFS attribute cache timeout for .Nm amd Ns 's own automount points. A value of 0 is supposed to turn off attribute caching, meaning that .Xr amd 8 will be consulted via a kernel-RPC each time someone stat()'s the mount point (which could be abused as a denial-of-service attack). Warning: some OSs are incapable of turning off the NFS attribute cache reliably. On such systems, .Nm amd may not work reliably under heavy load. See the .Pa README.attrcache document in the Am-utils distribution for more details. .It Va auto_dir Pq string, default= Ns Pa /a Same as the .Fl a option to .Xr amd 8 . This sets the private directory where .Nm amd will create sub-directories for its real mount points. .It Va cache_duration Pq numeric, default=300 Same as the .Fl c option to .Xr amd 8 . Sets the duration in seconds that looked-up or mounted map entries remain in the cache. .It Va cluster Pq string, default no cluster Same as the .Fl C option to .Xr amd 8 . Specifies the alternate .Tn HP-UX cluster to use. .It Va debug_mtab_file Pq string, default= Ns Pa /tmp/mnttab Path to mtab file that is used by .Xr amd 8 to store a list of mounted file systems during debug-mtab mode. This option only applies to systems that store mtab information on disk. .It Va debug_options Pq string, default no debug options Same as the .Fl D option to .Xr amd 8 . Specify any debugging options for .Xr amd 8 . Works only if am-utils was configured for debugging using the .Fl Fl enable-debug option. The .Cm mem option alone can be turned on via .Fl Fl enable-debug Ns = Ns Cm mem . Otherwise debugging options are ignored. Options are comma delimited, and can be preceded by the string .Dq Li no to negate their meaning. You can get the list of supported debugging options by running .Nm amd Fl v . Possible values are: .Pp .Bl -tag -width ".Cm xdrtrace" -compact .It Cm all all options .It Cm amq register for .Xr amq 8 .It Cm daemon enter daemon mode .It Cm fork fork server .It Cm full program trace .It Cm info info service specific debugging (hesiod, nis, etc.) .It Cm mem trace memory allocations .It Cm mtab use local .Pa ./mtab file .It Cm str debug string munging .It Cm test full debug but no daemon .It Cm trace trace protocol and NFS mount arguments .It Cm xdrtrace trace XDR routines .El .It Va dismount_interval Pq numeric, default=120 Same as the .Fl w option to .Xr amd 8 . Specify, in seconds, the time between attempts to dismount file systems that have exceeded their cached times. .It Va domain_strip Pq boolean, default=yes If .Dq Li yes , then the domain name part referred to by ${rhost} is stripped off. This is useful to keep logs and smaller. If .Dq Li no , then the domain name part is left changed. This is useful when using multiple domains with the same maps (as you may have hosts whose domain-stripped name is identical). .It Va exec_map_timeout Pq numeric, default=10 The timeout in seconds that .Xr amd 8 will wait for an executable map program before an answer is returned from that program (or script). This value should be set to as small as possible while still allowing normal replies to be returned before the timer expires, because during the time that the executable map program is queried, .Xr amd 8 is essentially waiting and is thus not responding to any other queries. .It Va forced_unmounts Pq boolean, default=no If set to .Dq Li yes , and the client OS supports forced or lazy unmounts, then .Xr amd 8 will attempt to use them if it gets any of three serious error conditions when trying to unmount an existing mount point or mount on top of one: .Er EIO , ESTALE , or .Er EBUSY . .Pp This could be useful to recover from serious conditions such as hardware failure of mounted disks, or NFS servers which are down permanently, were migrated, or changed their IP address. Only .Dq Li type:=toplvl mounts hung with .Er EBUSY are forcibly unmounted using this option, which is useful to recover from a hung .Xr amd 8 ) . .It Va full_os Pq string, default to compiled in value The full name of the operating system, along with its version. Allows you to override the compiled-in full name and version of the operating system. Useful when the compiled-in name is not desired. For example, the full operating system name on Linux comes up as .Dq Li linux , but you can override it to .Dq Li linux-2.2.5 . .It Va fully_qualified_hosts Pq string, default=no If .Dq Li yes , .Xr amd 8 will perform RPC authentication using fully-qualified host names. This is necessary for some systems, and especially when performing cross-domain mounting. For this function to work, the .Xr amd 8 variable ${hostd} is used, requiring that ${domain} not be null. .It Va hesiod_base Pq string, default=automount Specify the base name for hesiod maps. .It Va karch Pq string, default to karch of the system Same as the .Fl k option to .Xr amd 8 . Allows you to override the kernel-architecture of your system. Useful for example on Sun (Sparc) machines, where you can build one .Nm amd binary and run it on multiple machines, yet you want each one to get the correct .Va karch variable set (for example, sun4c, sun4m, sun4u, etc.) Note that if not specified, .Xr amd 8 will use .Xr uname 3 to figure out the kernel architecture of the machine. .It Va ldap_base Pq string, default not set Specify the base name for LDAP. This often includes LDAP-specific values such as country and organization. .It Va ldap_cache_maxmem Pq numeric, default=131072 Specify the maximum memory .Xr amd 8 should use to cache LDAP entries. .It Va ldap_cache_seconds Pq numeric, default=0 Specify the number of seconds to keep entries in the cache. .It Va ldap_hostports Pq string, default not set Specify the LDAP host and port values. .It Va ldap_proto_version Pq numeric, default=2 Specify the version of the LDAP protocol to use. .It Va local_domain Pq string, default no sub-domain Same as the .Fl d option to .Xr amd 8 . Specify the local domain name. If this option is not given the domain name is determined from the hostname by removing the first component of the fully-qualified host name. .It Va localhost_address Pq string, default to localhost or 127.0.0.1 Specify the name or IP address for .Xr amd 8 to use when connecting the sockets for the local NFS server and the RPC server. This defaults to 127.0.0.1 or whatever the host reports as its local address. This parameter is useful on hosts with multiple addresses where you want to force .Xr amd 8 to connect to a specific address. .It Va log_file Pq string, default= Ns Pa /dev/stderr Same as the .Fl l option to .Xr amd 8 . Specify a file name to log .Xr amd 8 events to. If the string .Pa /dev/stderr is specified, .Xr amd 8 will send its events to the standard error file descriptor. If the string .Pa syslog is given, .Xr amd 8 will record its events with the system logger .Xr syslogd 8 . The default syslog facility used is .Dv LOG_DAEMON . If you wish to change it, append its name to the log file name, delimited by a single colon. For example, if .Pa logfile is the string .Dq Li syslog:local7 then .Xr amd 8 will log messages via .Xr syslog 3 using the .Dv LOG_LOCAL7 facility (if it exists on the system). .It Va log_options Pq string, default no logging options Same as the .Fl x option to .Xr amd 8 . Specify any logging options for .Xr amd 8 . Options are comma delimited, and can be preceded by the string .Dq Li no to negate their meaning. The .Dq Li debug logging option is only available if am-utils was configured with .Fl Fl enable-debug . You can get the list of supported debugging and logging options by running .Nm amd Fl H . Possible values are: .Pp .Bl -tag -width ".Cm warning" -compact .It Cm all all messages .It Cm debug debug messages .It Cm error non-fatal system errors .It Cm fatal fatal errors .It Cm info information .It Cm map map errors .It Cm stats additional statistical information .It Cm user non-fatal user errors .It Cm warn warnings .It Cm warning warnings .El .It Va map_reload_interval Pq numeric, default=3600 The number of seconds that .Xr amd 8 will wait before it checks to see if any maps have changed at their source (NIS servers, LDAP servers, files, etc.). .Xr amd 8 will reload only those maps that have changed. .It Va nfs_allow_any_interface Pq string, default=no Normally .Xr amd 8 accepts local NFS packets only from 127.0.0.1. If this parameter is set to .Dq Li yes then .Xr amd 8 will accept local NFS packets from any local interface; this is useful on hosts that may have multiple interfaces where the system is forced to send all outgoing packets (even those bound to the same host) via an address other than 127.0.0.1. .It Va nfs_allow_insecure_port Pq string, default=no Normally .Xr amd 8 will refuse requests coming from unprivileged ports (i.e.\& ports >= 1024 on Unix systems), so that only privileged users and the kernel can send NFS requests to it. However, some kernels (certain versions of Darwin, MacOS X, and Linux) have bugs that cause them to use unprivileged ports in certain situations, which causes .Xr amd 8 to stop dead in its tracks. This parameter allows .Xr amd 8 to operate normally even on such systems, at the expense of a slight decrease in the security of its operations. If you see messages like .Dq Li "ignoring request from foo:1234, port not reserved" in your .Xr amd 8 log, try enabling this parameter and give it another go. .It Va nfs_proto Pq string, default to trying version tcp then udp By default, .Xr amd 8 tries TCP and then UDP. This option forces the overall .Tn NFS protocol used to TCP or UDP. It overrides what is in the .Xr amd 8 maps, and is useful when .Nm amd is compiled with NFSv3 support that may not be stable. With this option you can turn off the complete usage of NFSv3 dynamically (without having to recompile .Nm amd ) until such time as NFSv3 support is desired again. .It Va nfs_retransmit_counter Pq numeric, default=11 Same as the .Ar retransmit counter part of the .Fl t Ar timeout.retransmit option to .Xr amd 8 . Specifies the number of NFS retransmissions that the kernel will use to communicate with .Xr amd 8 . .It Va nfs_retransmit_counter_udp Pq numeric, default=11 Same as the .Va nfs_retransmit_counter option, but for all UDP mounts only. .It Va nfs_retransmit_counter_tcp Pq numeric, default=11 Same as the .Va nfs_retransmit_counter option, but for all TCP mounts only. .It Va nfs_retransmit_counter_toplvl Pq numeric, default=11 Same as the .Va nfs_retransmit_counter option, but only for .Nm amd Ns 's top-level UDP mounts. .It Va nfs_retry_interval Pq numeric, default=8 Same as the .Ar timeout interval part of the .Fl t Ar timeout.retransmit option to .Xr amd 8 . Specifies the .Tn NFS timeout interval, in .Em tenths of seconds, between NFS/RPC retries (for UDP and TCP). This is the value that the kernel will use to communicate with .Xr amd 8 . .Pp .Xr amd 8 relies on the kernel RPC retransmit mechanism to trigger mount retries. The values of the .Va nfs_retransmit_counter and the .Va nfs_retry_interval parameters change the overall retry interval. Too long an interval gives poor interactive response; too short an interval causes excessive retries. .It Va nfs_retry_interval_udp Pq numeric, default=8 Same as the .Va nfs_retry_interval option, but for all UDP mounts only. .It Va nfs_retry_interval_tcp Pq numeric, default=8 Same as the .It nfs_retry_interval option, but for all TCP mounts only. .It Va nfs_retry_interval_toplvl Pq numeric, default=8 Same as the .It nfs_retry_interval option, but only for .Nm amd Ns 's top-level UDP mounts. .It Va nfs_vers Pq numeric, default to trying version 3 then 2 By default, .Xr amd 8 tries version 3 and then version 2. This option forces the overall .Tn NFS protocol used to version 3 or 2. It overrides what is in the .Xr amd 8 maps, and is useful when .Nm amd is compiled with NFSv3 support that may not be stable. With this option you can turn off the complete usage of NFSv3 dynamically (without having to recompile .Nm amd ) until such time as NFSv3 support is desired again. .It Va nis_domain Pq string, default to local Tn NIS domain name Same as the .Fl y option to .Xr amd 8 . Specify an alternative .Tn NIS domain from which to fetch the .Tn NIS maps. The default is the system domain name. This option is ignored if .Tn NIS support is not available. .It Va normalize_hostnames Pq boolean, default=no Same as the .Fl n option to .Xr amd 8 . If .Dq Li yes , then the name referred to by .Va ${rhost} is normalized relative to the host database before being used. The effect is to translate aliases into .Dq official names. .It Va normalize_slashes Pq boolean, default=yes If .Dq Li yes , then .Xr amd 8 will condense all multiple .Ql / (slash) characters into one and remove all trailing slashes. If .Dq Li no , then .Xr amd 8 will not touch strings that may contain repeated or trailing slashes. The latter is sometimes useful with SMB mounts, which often require multiple slash characters in pathnames. .It Va os Pq string, default to compiled in value Same as the .Fl O option to .Xr amd 8 . Allows you to override the compiled-in name of the operating system. Useful when the built-in name is not desired for backward compatibility reasons. For example, if the build in name is .Dq Li sunos5 , you can override it to .Dq Li sos5 , and use older maps which were written with the latter in mind. .It Va osver Pq string, default to compiled in value Same as the .Fl o option to .Xr amd 8 . Overrides the compiled-in version number of the operating system. Useful when the built in version is not desired for backward compatibility reasons. For example, if the build in version is .Dq Li 2.5.1 , you can override it to .Dq Li 5.5.1 , and use older maps that were written with the latter in mind. .It Va pid_file Pq string, default= Ns Pa /dev/stdout Specify a file to store the process ID of the running daemon into. If not specified, .Xr amd 8 will print its process ID onto the standard output. Useful for killing .Xr amd 8 after it had run. Note that the PID of a running .Nm amd can also be retrieved via .Nm amq Fl p . This file is used only if the .Va print_pid option is on. .It Va plock Pq boolean, default=yes Same as the .Fl S option to .Xr amd 8 . If .Dq Li yes , lock the running executable pages of .Nm amd into memory. To improve .Nm amd Ns 's performance, systems that support the .Xr plock 3 or .Xr mlockall 2 call can lock the .Nm amd process into memory. This way there is less chance that the operating system will schedule, page out, and swap the .Nm amd process as needed. This improves .Nm amd Ns 's performance, at the cost of reserving the memory used by the .Nm amd process (making it unavailable for other processes). .It Va portmap_program Pq numeric, default=300019 Specify an alternate Port-mapper RPC program number, other than the official number. This is useful when running multiple .Nm amd processes. For example, you can run another .Xr amd 8 in .Dq test mode, without affecting the primary .Nm amd process in any way. For safety reasons, the alternate program numbers that can be specified must be in the range 300019-300029, inclusive. The .Xr amq 8 utility has an option .Fl P which can be used to specify an alternate program number of an .Nm amd to contact. In this way, .Nm amq can fully control any number of .Nm amd processes running on the same host. .It Va preferred_amq_port Pq numeric, default=0 Specify an alternate Port-mapper RPC port number for .Nm amd Ns 's .Xr amq 8 service. This is used for both UDP and TCP. Setting this value to 0 (or not defining it) will cause .Xr amd 8 to select an arbitrary port number. Setting the .Xr amq 8 RPC service port to a specific number is useful in firewalled or NAT'ed environments, where you need to know which port .Xr amd 8 will listen on. .It Va print_pid Pq boolean, default=no Same as the .Fl p option to .Xr amd 8 . If .Dq Li yes , .Nm amd will print its process ID upon starting. .It Va print_version Pq boolean, default=no Same as the .Fl v option to .Xr amd 8 , but the version prints and .Nm amd continues to run. If .Dq Li yes , .Nm amd will print its version information string, which includes some configuration and compilation values. .It Va restart_mounts Pq boolean, default=no Same as the .Fl r option to .Xr amd 8 . If .Dq Li yes , .Nm amd will scan the mount table to determine which file systems are currently mounted. Whenever one of these would have been auto-mounted, .Nm amd inherits it. .It Va show_statfs_entries Pq boolean, default=no If .Dq Li yes , then all maps which are browsable will also show the number of entries (keys) they have when .Xr df 1 runs. (This is accomplished by returning non-zero values to the .Xr statfs 2 system call.) .It Va truncate_log Pq boolean, default=no If .Dq Li yes , then the log file (if it is a regular file), will be truncated upon startup. .It Va unmount_on_exit Pq boolean, default=no If .Dq Li yes , then .Xr amd 8 will attempt to unmount all file systems which it knows about. Normally .Nm amd leaves all (esp.\& .Tn NFS ) mounted file systems intact. Note that .Nm amd does not know about file systems mounted before it starts up, unless the .Va restart_mounts option or .Fl r flag are used. .It Va use_tcpwrappers Pq boolean, default=yes If .Dq Li yes , then .Xr amd 8 will use the tcpd/libwrap tcpwrappers library (if available) to control access to .Nm amd via the .Pa /etc/hosts.allow and .Pa /etc/hosts.deny files. .It Va vendor Pq string, default to compiled in value The name of the vendor of the operating system. Overrides the compiled-in vendor name. Useful when the compiled-in name is not desired. For example, most Intel based systems set the vendor name to .Dq Li unknown , but you can set it to .Dq Li redhat . .El .Ss "Parameters applicable to regular map sections" .Bl -tag -width 4n .It Va map_name Pq string, must be specified Name of the map where the keys are located. .It Va tag Pq string, default no tag Each map entry in the configuration file can be tagged. If no tag is specified, that map section will always be processed by .Xr amd 8 . If it is specified, then .Nm amd will process the map if the .Fl T option was given to .Xr amd 8 , and the value given to that command-line option matches that in the map section. .El .Sh EXAMPLES Here is a real .Xr amd 8 configuration I use daily. .Bd -literal # GLOBAL OPTIONS SECTION [ global ] normalize_hostnames = no print_pid = no restart_mounts = yes auto_dir = /n log_file = /var/log/amd log_options = all #debug_options = all plock = no selectors_in_defaults = yes # config.guess picks up "sunos5" and I don't want to edit my maps yet os = sos5 # if you print_version after setting up "os", it will show it. print_version = no map_type = file search_path = /etc/amdmaps:/usr/lib/amd:/usr/local/AMD/lib browsable_dirs = yes # DEFINE AN AMD MOUNT POINT [ /u ] map_name = amd.u [ /proj ] map_name = amd.proj [ /src ] map_name = amd.src [ /misc ] map_name = amd.misc [ /import ] map_name = amd.import [ /tftpboot/.amd ] tag = tftpboot map_name = amd.tftpboot .Ed .Sh SEE ALSO .Xr hosts_access 5 , .Xr amd 8 , .Xr amq 8 .Pp .Dq am-utils .Xr info 1 entry. .Rs .%A Erez Zadok .%B "Linux NFS and Automounter Administration" .%O ISBN 0-7821-2739-8 .%I Sybex .%D 2001 .Re .Pp .Pa http://www.am-utils.org/ .Rs .%T Amd \- The 4.4 BSD Automounter .Re .Sh HISTORY The .Xr amd 8 utility first appeared in .Bx 4.4 . .Sh AUTHORS .An Erez Zadok Aq ezk@cs.sunysb.edu , Computer Science Department, Stony Brook University, Stony Brook, New York, USA. .Pp Other authors and contributors to am-utils are listed in the .Pa AUTHORS file distributed with am-utils. Index: head/contrib/amd/wire-test/wire-test.8 =================================================================== --- head/contrib/amd/wire-test/wire-test.8 (revision 296193) +++ head/contrib/amd/wire-test/wire-test.8 (revision 296194) @@ -1,108 +1,115 @@ .\" .\" Copyright (c) 1997-2006 Erez Zadok .\" Copyright (c) 1990 Jan-Simon Pendry .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine .\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Jan-Simon Pendry at Imperial College, London. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgment: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" %W% (Berkeley) %G% .\" .\" $Id: wire-test.8,v 1.10.2.1 2006/01/02 18:48:26 ezk Exp $ .\" $FreeBSD$ .\" -.Dd January 2, 2006 +.Dd February 26, 2016 .Dt WIRE-TEST 8 .Os .Sh NAME .Nm wire-test .Nd test your network interfaces and local IP address .Sh SYNOPSIS .Nm .Op Ar host .Sh DESCRIPTION +.Bf -symbolic +This command is obsolete. +Users are advised to use +.Xr autofs 5 +instead. +.Ef +.Pp The .Nm utility is used to find out what .Xr amd 8 thinks are the first two network interfaces and network names/numbers used, as well as the IP address used for .Xr amd 8 to NFS-mount itself. .Pp If .Ar host is specified, then .Nm will test for the working combinations of .Tn NFS protocol and version from the current client to the .Tn NFS server .Ar host . If not specified, .Ar host defaults to .Dq Li localhost . .Sh SEE ALSO .Xr amd 8 .Pp .Dq am-utils .Xr info 1 entry. .Rs .%A Erez Zadok .%B "Linux NFS and Automounter Administration" .%O ISBN 0-7821-2739-8 .%I Sybex .%D 2001 .Re .Pp .Pa http://www.am-utils.org/ .Rs .%T Amd \- The 4.4 BSD Automounter .Re .Sh HISTORY The .Nm utility appeared in .Fx 3.0 . .Sh AUTHORS .An Erez Zadok Aq ezk@cs.sunysb.edu , Computer Science Department, Stony Brook University, Stony Brook, New York, USA. .Pp Other authors and contributors to am-utils are listed in the .Pa AUTHORS file distributed with am-utils.