⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exports.5nfs

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 5NFS
字号:
.\" SCCSID: @(#)exports.5nfs	3.4	8/5/88.TH exports 5nfs.SH Nameexports \- defines NFS file systems to be exported.SH Syntax.B /etc/exports.SH Description.NXR "NFS file system" "accessing remotely".NXR "exports file" "format".NXAM "mountd daemon" "exports file"The .PN /etc/exportsfile describes the local file systems and directoriesthat can be mounted byremote hosts through the use of the NFS protocol.The.PN exports file can also be used to restrict access to a particular set of remotesystems.The.PN mountrequest daemon .MS mountd 8nfsaccesses the.PN exportsfile each time it receives a mount request from an NFS client..PPEach entry in the .PN /etc/exports file consists of a file system or directoryname followed by an optional list of options oran optional list of identifiers or both. The identifiers define which remote hosts can mount that particular file systemor directory..\" By convention,.\" each file system name must be explicitly defined starting.\" at the root directory of the file system.The identifiers listed beside the name of each file system or directory can be either host names or YP netgroups names.  When the.PN mountddaemon receives a mount request from a client,it searches for a match in the list of identifiers, first by checkingthe client host name with the host name identifiersand second by checking the client host name in a YP netgroups.When it finds a match,.PN mountdmakes that file system or directory available to the requesting client..PPThe exports file format is defined as follows:.EXpathname [-r=#] [-o] [identifier_1 identifier_2 ... identifier_n].EEor.EX#anything.EE.TP 15.PN pathname : Name of a mounted local file system or a directory of amounted local file system . The .PN pathname must begin in column 1..TP.I options: .RS 15.IP \-r=# 8Map client superuser access to uid #.  If you want toallow client superusers access to the file system ordirectory with the same permissions as a local superuser, use .PN \-r=0 .Use .PN \-r=0 only if you trust the superuser onthe client system.  The default is .PN \-r=2 ,which maps a client superuser to nobody.  This limits access to world readable files..IP \-oExport file system or directory read-only..IPThe options can be applied to both file system and directory entries in .PN /etc/exports ..RE.TP 15.I identifiers:Host names or netgroups, or both, separated by white space, that specify the access list for this export.  Host names can optionallycontain the local BIND domain name.  For more information on BIND,see the \fIGuide to the BIND/Hesiod Service\fP.NTIf no hosts or netgroups are specified, the .PN mount daemon exports this file system or directory to anyone requesting it..NE.PPA number sign (#) anywhere in the line marks a comment that extends to the end of that line..PPA whitespace character in the left-most position of a line indicates a continuation line..PPEach file system that you want to allow clients to mount must beexplicitly defined.  Exporting only the root (/) will not allow clientsto mount .PN /usr .  Exporting only .PN /usr will not allow clients to mount.PN /usr/local , if it is a file system.  .PPDuplicate directory entries are not allowed.  The first entry is validand following duplicates are ignored..PPDesired export options must be explicitly specified for each exportedresource: file system or directory.  If a file system and subdirectories within it are exported, the options associated with the file system are not ``inherited''.  You do not need to export an entire file system to allow clients to mount subdirectories within it..PPThe access list associated with each exported resource identifies whichclients can mount that resource with the specified options.  Forexample, you can export an entire file system read-only, with a subdirectory within it exported read-write to a subset of clients.If a client that is not identified in the export access list of a directory attempts to mount it, then access is checked against the closest exportedancestor.  If mount access is allowed at a higher level in the directorytree of the file system, the export options associated with the successful match will be in effect..PPIf you are concerned with nfs security, all ufs file systems exportedvia nfs should be ufs mounted with the .PN nodevoption. All ufs file systems exported via nfs with the .PN \-r=0option specifiedin the .PN /etc/exportsfile should be ufs mounted withthe .PN nosuid option..SH Examples.EX 0/usr alpha beta         # export /usr to hosts alpha and beta, client                          superuser maps to uid \-2 and read\-write                          access is permitted/usr/staff/doe clients  # export directory to hosts in netgroup clients/usr/man/man1 \-o        # export directory read\-only to everyone/usr/local \-r=0 beta    # export file system to beta, superuser                          on beta maps to local superuser (uid=0).EE.SH Files.PN /etc/exports.SH See Alsohosts(5), mountd(8nfs), netgroup(5yp).br\fIGuide to the BIND/Hesiod Service\fP.br\fIIntroduction to Networking and Distributed System Services\fP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -