Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SRV(4)			   Kernel Interfaces Manual			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  connection  in  the  current
       name space (see intro(4)) as srvname (default address).

       The  -a option causes srv to post a pre-authenticated connection	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  authenti-
       cation.	 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 service 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
       /usr/local/plan9/bin/9fs

SEE ALSO
       dial(3),	intro(4), netfiles(1)

									SRV(4)

NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | SOURCE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=srv&sektion=4&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help