]> git.armaanb.net Git - opendoas.git/blob - README.md
Update README to match status of PAM integration.
[opendoas.git] / README.md
1 # OpenDoas: a portable version of OpenBSD's `doas` command
2
3 `doas` is a minimal replacement for the venerable `sudo`. It was
4 initially [written by Ted Unangst](http://www.tedunangst.com/flak/post/doas)
5 of the OpenBSD project to provide 95% of the features of `sudo` with a
6 fraction of the codebase.
7
8 This is still a work in progress! Please do not deploy yet in a critical
9 environment! Of note, `doas` semantics may yet change, and I haven't
10 performed even a trivial security audit of my additions.
11
12 ## Building and installing
13
14 Building `doas` should be just a simple `make` away.
15
16 The included makefile also has an installation target. Installation
17 requires root access to properly set the executable permissions. You'll
18 also need to install a `doas.conf` file:
19
20 ```
21 make && sudo make install
22 echo "permit :admin" | sudo tee /etc/doas.conf
23 ```
24
25 Oh the irony, using `sudo` to install `doas`!
26
27 ## About the port
28
29 As much as possible I've attempted to stick to `doas` as tedu desired
30 it. As things stand it's essentially just code lifted from OpenBSD with
31 PAM based authentication glommed on to it.
32
33 I've used cvsync and git-cvsimport to retain the history of the core
34 source files. I may choose to go back and do the same with some of the
35 compatibility functions (such as reallocarray.c).
36
37 I have found it necessary to make some fixes to the codebase. One was
38 a segfault due to differences in yacc/bison, others were just minor
39 fixes to warnings. Once this appears stable, I may try to upstream some
40 of these.
41
42 Currently, this is only tested on MacOSX 10.10 with Clang. My next goal
43 is support for Fedora Linux as well. Contributions gladly accepted. ;-)
44
45 ## Copyright
46
47 All code from OpenBSD is licensed under the BSD license, please see
48 individual files for details as the specific text varies from file to
49 file.
50
51 All code I've written is licensed with the 2-clause BSD.