特殊:Badtitle/NS100:Autofs:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第5行: | 第5行: | ||
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. | 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 == | == Installation == | ||
Install the following packages: < | Install the following packages: <pre><nowiki>autofs</nowiki></pre> (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]) | ||
== Configuration == | == Configuration == | ||
For configuring autofs, you have to edit < | For configuring autofs, you have to edit <pre><nowiki>/etc/default/auto.master</nowiki></pre> file. Here is the sample file provided by Ubuntu: | ||
<pre><nowiki> | <pre><nowiki> | ||
# | # | ||
第21行: | 第21行: | ||
#/net /etc/auto.net | #/net /etc/auto.net | ||
</nowiki></pre> | </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. < | 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. <pre><nowiki>/net</nowiki></pre> and <pre><nowiki>/smb</nowiki></pre> are still usefull. | ||
In Unix world, < | In Unix world, <pre><nowiki>/net</nowiki></pre> enable automounting distant file system exported by NFS. For example, if you have a server named <pre><nowiki>fileserver</nowiki></pre> with a NFS export directory called <pre><nowiki>/export</nowiki></pre> (see [[UbuntuHelp:NFSServerHowTo|NFSServerHowTo]] for how to setup a such server), you can mount it by typing in a shell command line <pre><nowiki>cd /net/fileserver/export</nowiki></pre>. In an environment with NFS file servers, such automount can be usefull. | ||
For < | For <pre><nowiki>/smb</nowiki></pre> 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 < | Uncomenting <pre><nowiki>/net</nowiki></pre> and <pre><nowiki>/smb</nowiki></pre> is a good solution. | ||
You can add your own mount point with your own options in < | You can add your own mount point with your own options in <pre><nowiki>/etc/auto.master</nowiki></pre> to suit your needs. | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年12月6日 (四) 10:15的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Autofs }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/af | • {{#if: UbuntuHelp:Autofs|Afrikaans| [[::Autofs/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ar | • {{#if: UbuntuHelp:Autofs|العربية| [[::Autofs/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/az | • {{#if: UbuntuHelp:Autofs|azərbaycanca| [[::Autofs/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/bcc | • {{#if: UbuntuHelp:Autofs|جهلسری بلوچی| [[::Autofs/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/bg | • {{#if: UbuntuHelp:Autofs|български| [[::Autofs/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/br | • {{#if: UbuntuHelp:Autofs|brezhoneg| [[::Autofs/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ca | • {{#if: UbuntuHelp:Autofs|català| [[::Autofs/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/cs | • {{#if: UbuntuHelp:Autofs|čeština| [[::Autofs/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/de | • {{#if: UbuntuHelp:Autofs|Deutsch| [[::Autofs/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/el | • {{#if: UbuntuHelp:Autofs|Ελληνικά| [[::Autofs/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/es | • {{#if: UbuntuHelp:Autofs|español| [[::Autofs/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/fa | • {{#if: UbuntuHelp:Autofs|فارسی| [[::Autofs/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/fi | • {{#if: UbuntuHelp:Autofs|suomi| [[::Autofs/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/fr | • {{#if: UbuntuHelp:Autofs|français| [[::Autofs/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/gu | • {{#if: UbuntuHelp:Autofs|ગુજરાતી| [[::Autofs/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/he | • {{#if: UbuntuHelp:Autofs|עברית| [[::Autofs/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/hu | • {{#if: UbuntuHelp:Autofs|magyar| [[::Autofs/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/id | • {{#if: UbuntuHelp:Autofs|Bahasa Indonesia| [[::Autofs/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/it | • {{#if: UbuntuHelp:Autofs|italiano| [[::Autofs/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ja | • {{#if: UbuntuHelp:Autofs|日本語| [[::Autofs/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ko | • {{#if: UbuntuHelp:Autofs|한국어| [[::Autofs/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ksh | • {{#if: UbuntuHelp:Autofs|Ripoarisch| [[::Autofs/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/mr | • {{#if: UbuntuHelp:Autofs|मराठी| [[::Autofs/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ms | • {{#if: UbuntuHelp:Autofs|Bahasa Melayu| [[::Autofs/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/nl | • {{#if: UbuntuHelp:Autofs|Nederlands| [[::Autofs/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/no | • {{#if: UbuntuHelp:Autofs|norsk| [[::Autofs/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/oc | • {{#if: UbuntuHelp:Autofs|occitan| [[::Autofs/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/pl | • {{#if: UbuntuHelp:Autofs|polski| [[::Autofs/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/pt | • {{#if: UbuntuHelp:Autofs|português| [[::Autofs/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ro | • {{#if: UbuntuHelp:Autofs|română| [[::Autofs/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/ru | • {{#if: UbuntuHelp:Autofs|русский| [[::Autofs/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/si | • {{#if: UbuntuHelp:Autofs|සිංහල| [[::Autofs/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/sq | • {{#if: UbuntuHelp:Autofs|shqip| [[::Autofs/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/sr | • {{#if: UbuntuHelp:Autofs|српски / srpski| [[::Autofs/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/sv | • {{#if: UbuntuHelp:Autofs|svenska| [[::Autofs/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/th | • {{#if: UbuntuHelp:Autofs|ไทย| [[::Autofs/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/tr | • {{#if: UbuntuHelp:Autofs|Türkçe| [[::Autofs/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/vi | • {{#if: UbuntuHelp:Autofs|Tiếng Việt| [[::Autofs/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/yue | • {{#if: UbuntuHelp:Autofs|粵語| [[::Autofs/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/zh | • {{#if: UbuntuHelp:Autofs|中文| [[::Autofs/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/zh-hans | • {{#if: UbuntuHelp:Autofs|中文(简体)| [[::Autofs/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Autofs | UbuntuHelp:Autofs | {{#if: | :}}Autofs}}/zh-hant | • {{#if: UbuntuHelp:Autofs|中文(繁體)| [[::Autofs/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Autofs|:Autofs|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Autofs/zh | | {{#ifexist: Autofs/zh | | {{#ifeq: {{#titleparts:Autofs|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Autofs|1|-1|}} | zh | | }}
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 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.