SRV(4) SRV(4) NAME srv, 9fs - start network file service SYNOPSIS srv [ -an ] [ -k keypattern ] address [ srvname ] 9fs system DESCRIPTION Srv dials the given address and initializes the connection to serve the 9P protocol. It then posts the resulting con- nection in the current name space (see intro(4)) as srvname (default address). The -a option causes srv to post a pre-authenticated connec- tion to the file system aname (by default, the empty string; see attach(9p)). The -n option causes srv to reject authentication attempts by clients, useful if the remote server is known not to require authentication. Srv authenticates over the 9P connection to establish a valid auth fid. Keypattern, if specified, is used to select the key used for authentication. Client attach requests are rewritten to use the specified aname and auth fid. The 9fs command executes the srv necessary to make available the files of system. 9fs recognizes some special names, such as sources to make the file server sources.cs.bell-labs.com available as ser- vice sources. 9fs is an rc(1) script; examine it to see what local conventions apply. EXAMPLES List the root directory on sources: 9fs sources 9p ls sources Mount a remote file server bootes on Linux using the kernel 9P mount driver, with srv handling authentication: srv -a sources.cs.bell-labs.com sources sudo mount -t 9p -o trans=unix,uname=$USER,dfltuid=`id -u`,dfltgid=`id -g` `namespace`/sources /n/sources SOURCE /usr/local/plan9/src/cmd/srv.c Page 1 Plan 9 (printed 12/22/24) SRV(4) SRV(4) /usr/local/plan9/bin/9fs SEE ALSO dial(3), intro(4), netfiles(1) Page 2 Plan 9 (printed 12/22/24)