特殊:Badtitle/NS100:Autofs/zh:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Makemile留言 | 贡献
Makemile留言 | 贡献
第25行: 第25行:
#/net    /etc/auto.net
#/net    /etc/auto.net
</nowiki></pre>
</nowiki></pre>
在默认情况下,如你所见,每个挂载点都与其他的配置文件有联系。它们中的大部分现在还没用(hal & co公司提供有现代桌面自动挂载的功能).。这将对轻型桌面系统有益。<code><nowiki>/net</nowiki></code> and <code><nowiki>/smb</nowiki></code> are still usefull.
在默认情况下,如你所见,每个挂载点都与其他的配置文件有联系。它们中的大部分现在还没用(hal & co公司提供有现代桌面自动挂载的功能).。这将对轻型桌面系统有益。<code><nowiki>/net</nowiki></code><code><nowiki>/smb</nowiki></code>仍然是可用的。
In Unix world, <code><nowiki>/net</nowiki></code> enable automounting distant file system exported by NFS. For example, if you have a server named <code><nowiki>fileserver</nowiki></code> with a NFS export directory called <code><nowiki>/export</nowiki></code> (see [[UbuntuHelp:NFSServerHowTo|NFSServerHowTo]] for how to setup a such server), you can mount it by typing in a shell command line <code><nowiki>cd /net/fileserver/export</nowiki></code>. In an environment with NFS file servers, such automount can be usefull.
在Unix世界里, <code><nowiki>/net</nowiki></code> enable automounting distant file system exported by NFS. For example, if you have a server named <code><nowiki>fileserver</nowiki></code> with a NFS export directory called <code><nowiki>/export</nowiki></code> (see [[UbuntuHelp:NFSServerHowTo|NFSServerHowTo]] for how to setup a such server), you can mount it by typing in a shell command line <code><nowiki>cd /net/fileserver/export</nowiki></code>. In an environment with NFS file servers, such automount can be usefull.
For <code><nowiki>/smb</nowiki></code> 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).
For <code><nowiki>/smb</nowiki></code> 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 <code><nowiki>/net</nowiki></code> and <code><nowiki>/smb</nowiki></code> is a good solution.   
Uncomenting <code><nowiki>/net</nowiki></code> and <code><nowiki>/smb</nowiki></code> is a good solution.   

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

{{#ifexist: :Autofs/zh/zh | | {{#ifexist: Autofs/zh/zh | | {{#ifeq: {{#titleparts:Autofs/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Autofs/zh|1|-1|}} | zh | | }}

引言

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

安装

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

配置

为了能够自动配置,你需要编辑/etc/default/auto.master 文件. 以下是由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

在默认情况下,如你所见,每个挂载点都与其他的配置文件有联系。它们中的大部分现在还没用(hal & co公司提供有现代桌面自动挂载的功能).。这将对轻型桌面系统有益。/net/smb仍然是可用的。 在Unix世界里, /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