In this howto, we will configure autofs to auto-mount an NFS share, using a set of configuration files. These files are usually named using the convention auto., where can be anything as long as it matches an entry in auto.master and is valid for a file-name.
Autodata wikipedia full#
If the map file is not specified using a full local or network path, the Name Service Switch configuration will be used to locate the map, e.g.: /- auto.dataĪs indicated above, each autofs mount has its own map file.For example, the following line instructs autofs to create a mount-point at the place specified in auto.data: The mount-point entry in auto.master is always /. This entry in auto.master tells autofs to look in /etc/auto.smb and create mount-points in the /smb directory.ĭirect maps create a mount-point at the path specified in the relevant map file. For example, consider the following master map entry: Indirect maps, such as those in the auto.master file shown above, create-mount points as subdirectories inside the main mount-point. mount-point :] map Īutomount maps can be direct or indirect.# For details of the format look at autofs(5).īy default, all lines are commented out by using the # character.Įach of the lines in auto.master describes a mount and the location of its map. # This is an automounter map and it has the following format Here is the sample file provided by Ubuntu: Unless you have a good reason for changing this, leave it as the default. The master configuration file for autofs is /etc/auto.master by default. There are other ways to configure autofs on a network (see AutofsLDAP), but config files provide the simplest setup.
![autodata wikipedia autodata wikipedia](https://images.dealer.com/autodata/us/color/2021/USD10KIC111C0/KDG.jpg)
Install the autofs package either by clicking here or entering the following in a terminal window:Īutofs can be configured by editing configuration files.