特殊:Badtitle/NS100:Autofs/zh:修订间差异
第4行: | 第4行: | ||
{{Languages|UbuntuHelp:Autofs}} | {{Languages|UbuntuHelp:Autofs}} | ||
== 引言 == | == 引言 == | ||
Automount是当前流行的将目录挂载到网络上的方式。这是迄今为止最容易管理和节省带宽的解决方案。 | |||
通过这个指南,文件的安装和配置将自动完成。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 == | == Installation == |
2009年3月6日 (五) 23:03的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Autofs }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/af | • {{#if: UbuntuHelp:Autofs|Afrikaans| [[::Autofs/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/ar | • {{#if: UbuntuHelp:Autofs|العربية| [[::Autofs/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/az | • {{#if: UbuntuHelp:Autofs|azərbaycanca| [[::Autofs/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/bcc | • {{#if: UbuntuHelp:Autofs|جهلسری بلوچی| [[::Autofs/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/bg | • {{#if: UbuntuHelp:Autofs|български| [[::Autofs/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/br | • {{#if: UbuntuHelp:Autofs|brezhoneg| [[::Autofs/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/ca | • {{#if: UbuntuHelp:Autofs|català| [[::Autofs/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/cs | • {{#if: UbuntuHelp:Autofs|čeština| [[::Autofs/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/de | • {{#if: UbuntuHelp:Autofs|Deutsch| [[::Autofs/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/el | • {{#if: UbuntuHelp:Autofs|Ελληνικά| [[::Autofs/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/es | • {{#if: UbuntuHelp:Autofs|español| [[::Autofs/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/fa | • {{#if: UbuntuHelp:Autofs|فارسی| [[::Autofs/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/fi | • {{#if: UbuntuHelp:Autofs|suomi| [[::Autofs/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/fr | • {{#if: UbuntuHelp:Autofs|français| [[::Autofs/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/gu | • {{#if: UbuntuHelp:Autofs|ગુજરાતી| [[::Autofs/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/he | • {{#if: UbuntuHelp:Autofs|עברית| [[::Autofs/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/hu | • {{#if: UbuntuHelp:Autofs|magyar| [[::Autofs/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/id | • {{#if: UbuntuHelp:Autofs|Bahasa Indonesia| [[::Autofs/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/it | • {{#if: UbuntuHelp:Autofs|italiano| [[::Autofs/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/ja | • {{#if: UbuntuHelp:Autofs|日本語| [[::Autofs/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/ko | • {{#if: UbuntuHelp:Autofs|한국어| [[::Autofs/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/ksh | • {{#if: UbuntuHelp:Autofs|Ripoarisch| [[::Autofs/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/mr | • {{#if: UbuntuHelp:Autofs|मराठी| [[::Autofs/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/ms | • {{#if: UbuntuHelp:Autofs|Bahasa Melayu| [[::Autofs/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/nl | • {{#if: UbuntuHelp:Autofs|Nederlands| [[::Autofs/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/no | • {{#if: UbuntuHelp:Autofs|norsk| [[::Autofs/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/oc | • {{#if: UbuntuHelp:Autofs|occitan| [[::Autofs/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/pl | • {{#if: UbuntuHelp:Autofs|polski| [[::Autofs/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/pt | • {{#if: UbuntuHelp:Autofs|português| [[::Autofs/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/ro | • {{#if: UbuntuHelp:Autofs|română| [[::Autofs/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/ru | • {{#if: UbuntuHelp:Autofs|русский| [[::Autofs/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/si | • {{#if: UbuntuHelp:Autofs|සිංහල| [[::Autofs/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/sq | • {{#if: UbuntuHelp:Autofs|shqip| [[::Autofs/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/sr | • {{#if: UbuntuHelp:Autofs|српски / srpski| [[::Autofs/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/sv | • {{#if: UbuntuHelp:Autofs|svenska| [[::Autofs/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/th | • {{#if: UbuntuHelp:Autofs|ไทย| [[::Autofs/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/tr | • {{#if: UbuntuHelp:Autofs|Türkçe| [[::Autofs/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/vi | • {{#if: UbuntuHelp:Autofs|Tiếng Việt| [[::Autofs/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/yue | • {{#if: UbuntuHelp:Autofs|粵語| [[::Autofs/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/zh | • {{#if: UbuntuHelp:Autofs|中文| [[::Autofs/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/zh-hans | • {{#if: UbuntuHelp:Autofs|中文(简体)| [[::Autofs/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs/zh}}/zh-hant | • {{#if: UbuntuHelp:Autofs|中文(繁體)| [[::Autofs/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Autofs|:Autofs/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Autofs/zh/zh | | {{#ifexist: Autofs/zh/zh | | {{#ifeq: {{#titleparts:Autofs/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Autofs/zh|1|-1|}} | zh | | }}
引言
Automount是当前流行的将目录挂载到网络上的方式。这是迄今为止最容易管理和节省带宽的解决方案。 通过这个指南,文件的安装和配置将自动完成。It is not used a lot anymore, but AutofsLDAP is very usefull and based on this one. In small business environement, this howto can be usefull.
Installation
Install the following packages: 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