Serve 9P from Unix. A fork/clone of https://bitbucket.org/plan9-from-bell-labs/u9fs/ dedicated to Jehanne development. http://jehanne.io
Go to file
Steven Stallion 6ae7e4b30a add .hgignore 2015-03-16 17:29:21 -05:00
.hgignore add .hgignore 2015-03-16 17:29:21 -05:00
LICENSE 20110512-2206 2011-05-12 22:06:54 +01:00
README 20110513-1242 2011-05-13 12:42:05 +01:00
authnone.c 20110512-2206 2011-05-12 22:06:54 +01:00
authp9any.c 20110512-2206 2011-05-12 22:06:54 +01:00
authrhosts.c 20110512-2206 2011-05-12 22:06:54 +01:00
convD2M.c 20110512-2206 2011-05-12 22:06:54 +01:00
convM2D.c 20110512-2206 2011-05-12 22:06:54 +01:00
convM2S.c 20110512-2206 2011-05-12 22:06:54 +01:00
convS2M.c 20110512-2206 2011-05-12 22:06:54 +01:00
cygwin.c 20110512-2206 2011-05-12 22:06:54 +01:00
des.c 20110512-2206 2011-05-12 22:06:54 +01:00
dirmodeconv.c 20110512-2206 2011-05-12 22:06:54 +01:00
doprint.c 20110512-2206 2011-05-12 22:06:54 +01:00
fcall.h 20110512-2206 2011-05-12 22:06:54 +01:00
fcallconv.c 20110512-2206 2011-05-12 22:06:54 +01:00
makefile 20110512-2206 2011-05-12 22:06:54 +01:00
oldfcall.c 20110512-2206 2011-05-12 22:06:54 +01:00
oldfcall.h 20110512-2206 2011-05-12 22:06:54 +01:00
plan9.h 20110512-2210 2011-05-12 22:10:52 +01:00
print.c 20110512-2206 2011-05-12 22:06:54 +01:00
random.c 20110512-2206 2011-05-12 22:06:54 +01:00
readn.c 20110512-2206 2011-05-12 22:06:54 +01:00
remotehost.c 20110512-2206 2011-05-12 22:06:54 +01:00
rune.c 20110512-2206 2011-05-12 22:06:54 +01:00
safecpy.c 20110512-2209 2011-05-12 22:09:50 +01:00
strecpy.c 20110512-2206 2011-05-12 22:06:54 +01:00
sun-inttypes.h 20110512-2206 2011-05-12 22:06:54 +01:00
tokenize.c 20110512-2206 2011-05-12 22:06:54 +01:00
u9fs.c fix chroot and default user behavior 2015-03-16 17:27:33 -05:00
u9fs.h 20110512-2206 2011-05-12 22:06:54 +01:00
u9fs.man 20110512-2213 2011-05-12 22:14:08 +01:00
u9fsauth.h 20110512-2206 2011-05-12 22:06:54 +01:00
utfrune.c 20110512-2206 2011-05-12 22:06:54 +01:00

README

U9fs runs on many POSIX-compatible systems, including Linux and MacOSX.
Currently, it must first be compiled. See the comments at the top of the makefile
for a few special instructions. Ordinarily, you should be able to type:

	make
to create an executable called u9fs.

See the manual page u9fs.man for details of options and arguments.

Unfortunately, installing the program to run automatically under inetd, xinetd or equivalent
is rather system-dependent. (MacOSX is an extreme case.) The rest of this file will list
recipes known so far.

[] Ubuntu 10.10 (and earlier) and 11.04, with xinetd and authrhosts
	I keep u9fs in a new directory /bin/9, but it could easily be in /usr/local/bin.
	It is not setuid. I use the following in /etc/xinetd.d/u9fs:
		service u9fs
		{
			socket_type	= stream
			user		= root
			instances	= UNLIMITED
			wait		= no
			server		= /bin/9/u9fs
			port = 564
		}
	It keeps the default log file in /tmp/u9fs.log.
	It's an internal machine, and I use rhosts authentication (which is the default):
	I list acceptable machines in /etc/hosts.equiv, and the server trusts what they send.
	-- charles.forsyth@gmail.com, May 2011

[] Debian 5.0 (and earlier), with inetd, and authp9any
	I use this configuration on several virtual servers.
	I keep u9fs in a new directory /bin/9. It is not setuid. I use the following in /etc/inetd.conf:
		u9fs stream tcp nowait root /bin/9/u9fs u9fs -a p9any
	I had to add the following to /etc/services:
		# Local services
		u9fs	564/tcp
	The machine is not an internal machine, and I use p9any authentication (usual Plan 9 variant).
	It takes the secrets from /etc/u9fs.key, which had better be well-protected.
	There are three lines: the secret; the authentication user ("bootes"); the authentication domain.
		-- charles.forsyth@gmail.com, May 2011

[] OpenBSD 4.3, with inetd, and authrhosts; same on FreeBSD 4.8(!)
	I use this configuration on an internal gateway.
	I keep u9fs in directory /bin/9. /etc/inetd.conf has the following line:
		p9fs        stream  tcp     nowait  root    /bin/9/u9fs u9fs
	The protocol name "p9fs" is already in /etc/services.
		-- charles.forsyth@gmail.com, May 2011