auto.master

AUTO.MASTER(5)                                                 File Formats Manual                                                 AUTO.MASTER(5)



NAME
       auto.master - Master Map for automounter

DESCRIPTION
       The auto.master map is consulted to set up automount managed mount points when the autofs(8) script is invoked or the automount(8) program
       is run. Each line describes a mount point and refers to an autofs map describing file systems to be mounted under the mount point.

       The default location of the master map is /etc/auto.master but an alternate name may be given on the command line when running  the  auto‐
       mounter  and  the  default  master map may changed by setting the MASTER_MAP_NAME configuration variable in /etc/sysconfig/autofs.  If the
       master map name has no path then the system Name Service Switch configuration will be consulted and each of the sources searched  in  line
       with the rules given in the Name Service Switch configuration.

       Access to mounts in maps is governed by a key.

       For direct maps the mount point is always specified as:

       /-

       and the key used within the direct map is the full path to the mount point. The direct map may have multiple entries in the master map.

       For indirect maps access is by using the path scheme:

       /mount-point/key

       where  mount-point  is one of the entries listed in the master map. The key is a single directory component and is matched against entries
       in the map given in the entry (See autofs(5)).

       Additionally, a map may be included from its source as if it were itself present in the master map  by  including  a  line  of  the  form:
       + [maptype,format:]map[options]  and automount(8) will process the map according to the specification described below for map entries. In‐
       direct map entries must be unique in the master map so second and subsequent entries for an indirect mount  point  are  ignored  by  auto‐
       mount(8).

FORMAT
       Master  map  entries  have three fields separated by an arbitrary number of spaces or tabs. Lines beginning with # are comments. The first
       field is the mount point described above and the second field is the name of the map to be consulted for the mount point followed  by  the
       third field which contains options to be applied to all entries in the map.

       The format of a master map entry is:

       mount-point [map-type[,format]:]map [options]

       mount-point
              Base  location for the autofs filesystem to be mounted.  For indirect maps this directory will be created (as with mkdir -p) and is
              removed when the autofs filesystem is umounted.

       map-type
              Type of map used for this mount point.  The following are valid map types:

              file   The map is a regular text file.

              program
                     The map is an executable program, which is passed a key on the command line and returns an  entry  (everything  besides  the
                     key) on stdout if successful.

              yp     The map is a NIS (YP) database.

              nisplus
                     The map is a NIS+ database.

              hesiod The map is a hesiod database whose filsys entries are used for maps.

              ldap or ldaps
                     The map is stored in an LDAP directory. If ldaps is used the appropriate certificate must be configured in the LDAP client.

              multi  This  map  type allows the specification of multiple maps separated by "--". These maps are searched in order to resolve key
                     lookups.

              dir    This map type can be used at + master map including notation. The contents of files under given directory  are  included  to
                     the mas
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值