Blob


1 # kamid -- 9p file server daemon
3 kamid is a FREE, easy-to-use and portable implementation of a 9p file
4 server daemon for UNIX-like systems.
7 ## Building
9 When building from a release tarball:
11 $ ./configure
12 $ make
13 # make install # eventually
15 to build from a git checkout:
17 $ ./autogen.sh
18 $ ./configure
19 $ make
22 ## Usage
24 In order to run, the `_kamid` user must exists, with `/var/empty` as
25 home directory. A valid configuration file `/etc/kamid.conf` is also
26 needed. kamid must be started with root privileges.
28 A sample configuration file:
30 ```
31 # /etc/kamid.conf
32 pki localhost cert "/etc/ssl/localhost.crt"
33 pki localhost key "/etc/ssl/private/localhost.key"
35 table users { "SHA256:..." => "op" }
37 listen on localhost port 1337 tls pki localhost auth <users>
38 ```
41 ## Testing
43 The regression suite uses sudo (or doas) because it needs root
44 privileges for certain operations. To run the test suite:
46 $ make test
48 The regression are written using a custom DSL, ninepscript.
49 `contrib/9ps-mode.el` is the major mode for Emacs.
51 There's another regression suite written in common lisp in
52 `regress/lisp/9p-test`; it depends on other lisp libraries available
53 through quicklisp. Make sure to have sbcl and the relevant lisp
54 dependencies installed, then run
56 $ make HAVE_LISP=yes test
59 ## License
61 kamid is released under a BSD-like license. The bulk of the code is
62 under the ISC license, but some file are BSD2 or BSD3.
64 `regress/lisp/9p-test/` (the common lisp regression suite) is released
65 under the GNU GPLv3+.