exports(5) File Formats Manual exports(5) exports - NFS /etc/exports NFS NFS. . . exportfs(8) mountd(8) . exports SunOS. . . . ("-") . . . ("#") . . . . exportfs -ra NFS. NFS : single host IPv4 IPv6. IPv6 /etc/exports . IP networks IP () . IP address/netmask . `/255.255.252.0' `/22' IPv4 10 . IPv6 . IP DNS . wildcards * ?? [ ]. exports *.cs.foo.edu cs.foo.edu. cs.foo.edu. netgroups NIS @group. . (-). anonymous * ( wildcard ) . - . ( ) . RPCSEC_GSS "gss/krb5" "gss/krb5i" "gss/krb5p" rpcsec_gss. 2.6.23 "sec=": sec= sec= . sys (-- ) krb5 ( ) krb5i ( ) krb5p ( ). : . sec= . sec= sec= . ro rw no_root_squash root_squash all_squash. NFS RPC-with-TLS ( RFC 9289) RPC . NFS (VPN) ssh . RPC-with-TLS tlshd . RPC-with-TLS . RPC-with-TLS . sec=sys. xprtsec= . : none . tls RPC-with-TLS ( ) . x.509 . mtls RPC-with-TLS . x.509 . RPC-with-TLS xprtsec= xprtsec=none:tls:mtls. . exportfs : secure gss IPPORT_RESERVED (1024). . insecure. (: ( 4.17) gss .) rw NFS . . ro. async NFS NFS ( ). ( ) . sync ( async ). nfs-utils 1.0.0 async . 1.0.0 sync async . no_wdelay async . NFS . . NFS no_wdelay . wdelay. nohide IRIX NFS. . . "". nohide . NFS - - inode. nohide . netgroup . . NFSv2 NFSv3 hide. NFSv4. NFSv4 . NFSv4. crossmnt nohide crossmnt. "B" "A" crossmnt "A" "nohide" B. nohide . crossmnt . crossmnt fsid=. crossmnt. crossmnt . nocrossmnt crossmnt . . subtree_check . NFS ( ) ( ). subtree_check. " " (filehandle) . ( ). (root) no_root_squash ( ) . . (home directory) . ( /usr /var) . no_subtree_check. 1.1.0 nfs-utils subtree_check. 1.1.0 no_subtree_check . exports. exportfs . sign_fh (filehandles) . (hash) . NFSv3 . insecure_locks no_auth_nlm ( ) NFS ( NLM). NFS . . NFS NFS . . NLM auth_nlm secure_locks. mountpoint=path mp . ( mountpoint mp) . . . ( mountpoint=/path mp=/path) . fsid=num|root|uuid NFS . UUID ( ) ( ). UUIDs NFS . fsid=. NFSv4 . fsid=root fsid=0 . UUID 32 . 2.6.20 UUID fsid . UUID . nordirplus READDIRPLUS. READDIRPLUS NFS NFS3ERR_NOTSUPP READDIR. NFSv3 . refer=path@host[+host][:path@host[+host]] . ( mount --bind /path /path .) NFSv4 . "refer=". replicas=path@host[+host][:path@host[+host]] . ( .) pnfs pNFS NFSv4.1 pNFS. pNFS / . no_pnfs. security_label NFSv4.2 ( SELinux). . . reexport=auto-fsidnum|predefined-fsidnum NFS. NFS NFS fsid . crossmnt fsid . . fsid NFS . fsid SQLite. auto-fsidnum fsid . predefined-fsidnum fsid . 5.19 . reexport= fsids fsids . fsid SQLite. . predefined-fsidnum auto-fsidnum . nfsd uid gid NFS RPC. . uids gids . . (root) NFS. uid 0 : uid nobody. ( 'root squashing') no_root_squash. exportfs uid gid 65534 (squashed). anonuid anongid. uid all_squash. : root_squash uid/gid 0 uid/gid . uids gids bin staff. no_root_squash (root squashing). . all_squash uids gids . FTP NFS . no_all_squash . anonuid anongid uid gid . PC/NFS . /home/joe uid 150 ( joe). . NFS : . . subtree_check . . security_label security_label sec= NFSv4 . . /etc/exports exportfs /etc/exports.d . .exports . . /etc/exports # sample /etc/exports file / master(rw) trusty(rw,no_root_squash) /projects proj*.local.domain(rw) /usr *.local.domain(ro) @trusted(rw) /home/joe pc001(rw,all_squash,anonuid=150,anongid=100) /pub *(ro,insecure,all_squash) /srv/www -sync,rw server @trusted @external(ro) /foo 2001:db8:9:e54::/64(rw) 192.0.2.0/24(rw) /build buildhost[0-9].local.domain(rw) master trusty. uids trusty. ( `@trusted'). PC/NFS . 5 FTP nobody. insecure NFS NFS. 'server' `@trusted' `@external' `sync'. IPv6 IPv4 . . /etc/exports /etc/exports.d exportfs(8) netgroup(5) mountd(8) nfsd(8) showmount(8) tlshd(8). 3 . . : . 31 2009 exports(5)