个人工具
登录
查看“UbuntuHelp:Autofs”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Autofs”的源代码
来自Ubuntu中文
←
UbuntuHelp:Autofs
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Autofs}} {{Languages|UbuntuHelp:Autofs}} == Introduction == Automount is the modern way to mount directories over a network. It is far much easier to manage and are more economic in bandwith. In this howto, installation and configuration of a files based configuration autofs will be presented. It is not used a lot anymore, but [[UbuntuHelp:AutofsLDAP|AutofsLDAP]] is very usefull and based on this one. In small business environement, this howto can be usefull. == Installation == Install the following packages: <code><nowiki>autofs</nowiki></code> (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]) == 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: <pre><nowiki> # # $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 </nowiki></pre> 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. <code><nowiki>/net</nowiki></code> and <code><nowiki>/smb</nowiki></code> are still usefull. 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. 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. You can add your own mount point with your own options in <code><nowiki>/etc/auto.master</nowiki></code> to suit your needs. After entering your changes, run the following command to have them taken into account: <pre><nowiki>sudo /etc/init.d/autofs reload </nowiki></pre> [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Autofs
。