3 nfs \- Sun network file system client
44 translates between the Sun network file system protocol (NFS)
45 and 9P, allowing 9P clients to mount file systems on NFS servers.
46 NFS servers comprise two separate services: a mount service used to
47 obtain the initial file handle, and a file service used to perform
48 actual file system operations.
49 The Sun port mapper service is typically used to find these two services.
50 If one address is given, it is taken to be the address of a port mapper service;
52 queries the port mapper to find the addresses
53 of the NFS mount service and file service.
54 If two addresses are given, the port mapper is bypassed;
56 is used as the address of the NFS mount service,
59 is used as the address of the file service.
64 print all 9P messages.
67 print all NFS messages.
70 print verbose information about session startup.
73 set the posted service file to have mode
75 which is assumed to be octal;
81 .BI /srv/ srvname \fR;
85 .B -u \fIpasswd\fR \fIgroup
86 translate user and group names using the
90 files, which are in the traditional Unix format.
91 The translation is used to present names for
97 The translation is also used to
98 choose the user and group credentials
99 to present for a user.
100 Without this option, users and groups are presented
101 as decimal numbers, and everyone attaches as uid \-1
103 on most Unix systems).
108 are test programs to perform port mapper and NFS mount RPCs.
110 are useful mainly to help debug problems with
116 option causes them to print all RPC messages sent and received.
119 queries a Sun RPC portmap server, which maps integer
120 (program, version, protocol) triples to port numbers.
121 Program and version are Sun RPC defined, while protocol
122 is typically TCP (6) or UDP (17).
131 .B set \fIprog\fP \fIvers\fP \fIproto\fP \fIport\fP
132 add an entry to (or replace an entry in) the map
134 .B unset \fIprog\fP \fIvers\fP \fIproto\fP \fIport\fP
135 remove an entry from the map
137 .B getport \fIprog\fP \fIvers\fP \fIproto\fP
138 look for an entry with \fIprog\fP, \fIvers\fP, \fIproto\fP
139 in the map, and return the corresponding port
141 The default command is
143 For running NFS over UDP, there must be an entry
144 for the NFS v3 mount daemon (100005, 3, 17) and the
145 NFS v3 server itself (100003, 3, 17).
148 queries a Sun NFS mount server, which authenticates (ha!)
149 connections and hands out file handles naming the root of
150 an exported file system. This handle is used as the basis
151 for a conversation with the NFS service daemon itself.
158 dump the export table;
159 each line is a path followed by a list of machines or groups
160 allowed to mount that path
163 attempt to acquire a file handle for \fIpath\fR.
164 the request has user and group id 1001 and
169 notify the mount daemon that a particular path is being
170 unmounted by the requesting system
173 notify the mount daemon that all paths mounted by the
174 requesting system are being unmounted
177 should also dump an export table, but typically
183 script to mount all the home directories served by
188 if(! test -f /srv/bopp)
189 nfs -p 666 -u /lib/ndb/1127.passwd /lib/ndb/1127.group bopp
190 unmount /n/bopp >[2]/dev/null
191 for(i in u0 u1 u2 u3 u4 u5 u6 u7 u8 u9)
192 mount -a /srv/bopp /n/bopp /$i
195 .B /sys/src/cmd/nfs.c
197 .B /sys/src/libsunrpc
202 The authentication employed by NFS is laughable.
203 The server simply trusts the uid, gid, and group list
204 presented by the client.
207 speaks only NFS version 3.
208 Older operating systems typically
209 have reasonable NFS version 2 servers
210 but crash when serving version 3.