nfsserver, portmapper, pcnfsd – NFS service|
aux/nfsserver [ rpc–options... ] [ nfs–options... ]|
aux/pcnfsd [ rpc–options... ]
aux/portmapper [ rpc–options... ]
These programs collectively provide NFS access to Plan 9 file
servers. Nfsserver, pcnfsd, and portmapper run on a Plan 9 CPU
server, and should be started in that order. All users on client
machines have the access privileges of the Plan 9 user none. Currently
only NFS version 2 is served.
–r Reject: answer all RPC requests by returning the AUTH_TOOWEAK error.
–v Verbose: show all RPC calls and internal program state, including 9P messages. (In any case, the program creates a file /srv/name.chat where name is that of the program; echoing 1 or 0 into this file sets or clears the –v flag dynamically.)
–D Debug: show all RPC messages (at a lower level than –v). This flag may be repeated to get more detail.
–C Turn off caching: do not answer RPC requests using the RPC reply cache.
–a addrSet up NFS service for the 9P server at network address addr.
–f file Set up NFS service for the 9P server at file (typically an entry in /srv).
–n Do not allow per–user authentication (default and mandatory).
–c file File contains the uid/gid map configuration. It is read at startup and subsequently every hour (or if c is echoed into /srv/nfsserver.chat). Blank lines or lines beginning with # are ignored; lines beginning with ! are executed as commands; otherwise lines contain four fields separated by white space:
–t Listen for incoming TCP calls, rather than UDP calls.
A simple /lib/ndb/nfs might contain:
.+ [^.]+\.cvrd\.hall\.edu /n/ivy/etc/passwd /n/ivy/etc/group
/etc/mount –o soft,intr eduardo:yoshimi /n/yoshimi
/lib/ndb/nfs List of uid/gid maps.|
/sys/log/nfs Log file.
It would be nice to provide authentication for users, but Unix
systems provide too low a level of security to be trusted in a
Plan 9 world.|
RFC1057, RPC: Remote Procedure Call Protocol Specification, Version 2, describes Sun's RPC protocol.
RFC1094, NFS: Network File System Protocol Specification, describes NFS version 2.
RFC1813, NFS Version 3 Protocol Specification.
RFC3530, Network File System (NFS) version 4 Protocol.