个人工具

“UbuntuHelp:Autofs/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
引言
Installation
第7行: 第7行:
 
通过这个指南,文件的安装和配置将自动完成。它并不是经常使用, 但 [[UbuntuHelp:AutofsLDAP|AutofsLDAP]] 是非常有用和基础的,特别是在小型企业环境下,这个指南是有益的。
 
通过这个指南,文件的安装和配置将自动完成。它并不是经常使用, 但 [[UbuntuHelp:AutofsLDAP|AutofsLDAP]] 是非常有用和基础的,特别是在小型企业环境下,这个指南是有益的。
  
== Installation ==
+
== 安装 ==
Install the following packages: <code><nowiki>autofs</nowiki></code> (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]])
+
安装如下软件包: <code><nowiki>autofs</nowiki></code> (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]])
 +
 
 
== Configuration ==
 
== Configuration ==
 
For configuring autofs, you have to edit <code><nowiki>/etc/default/auto.master</nowiki></code> file. Here is the sample file provided by Ubuntu:
 
For configuring autofs, you have to edit <code><nowiki>/etc/default/auto.master</nowiki></code> file. Here is the sample file provided by Ubuntu:

2009年3月6日 (五) 23:10的版本

引言

Automount是当前流行的将目录挂载到网络上的方式。这是迄今为止最容易管理和节省带宽的解决方案。 通过这个指南,文件的安装和配置将自动完成。它并不是经常使用, 但 AutofsLDAP 是非常有用和基础的,特别是在小型企业环境下,这个指南是有益的。

安装

安装如下软件包: autofs (see InstallingSoftware)

Configuration

For configuring autofs, you have to edit /etc/default/auto.master file. Here is the sample file provided by Ubuntu:

#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc   /etc/auto.misc --timeout=60
#/smb   /etc/auto.smb
#/misc  /etc/auto.misc
#/net    /etc/auto.net

As you see, by default, all is commented out. Each mount point is associated with another configuration file. Most of them are now useless (now modern desktop have automount feature with hal & co). This would be usefull for light desktop. /net and /smb are still usefull. In Unix world, /net enable automounting distant file system exported by NFS. For example, if you have a server named fileserver with a NFS export directory called /export (see NFSServerHowTo for how to setup a such server), you can mount it by typing in a shell command line cd /net/fileserver/export. In an environment with NFS file servers, such automount can be usefull. For /smb mount point, function the same way but is for SMB file systems (if you need to authenticate for acceding the SMB share, the automatic way will not function). Uncomenting /net and /smb is a good solution. You can add your own mount point with your own options in /etc/auto.master to suit your needs. After entering your changes, run the following command to have them taken into account:

sudo /etc/init.d/autofs reload