Write a structure to the data file which specifies the iterations and
[pwmd.git] / doc / pwmd.1
blob981e45c69351a3b9e545f485fc60d428fea29a56
1 .\" This program is free software; you can redistribute it and/or modify
2 .\" it under the terms of the GNU General Public License as published by
3 .\" the Free Software Foundation; either version 2 of the License, or
4 .\" (at your option) any later version.
5 .\" 
6 .\" This program is distributed in the hope that it will be useful,
7 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
8 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9 .\" GNU General Public License for more details.
10 .\" 
11 .\" You should have received a copy of the GNU General Public License
12 .\" along with this program; if not, write to the Free Software
13 .\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
14 .de URL
15 \\$2 \(laURL: \\$1 \(ra\\$3
17 .if \n[.g] .mso www.tmac
18 .TH PWMD 1 "13 Jan 2007" "Password Manager Daemon" "Password Manager Daemon"
19 .SH NAME
21 pwmd \- local socket data server
22 .SH SYNOPSIS
23 .B pwmd
24 [\-hv] [\-f <rcfile>]
26 .SH DESCRIPTION
27 .B pwmd
28 is a daemon that listens for connections on a local socket. Clients connect to
29 the server and can get or modify "account" data. The word "account" is just a
30 placeholder for the element describing and item. But what the data actually is
31 can be anything. The data is stored in an AES encrypted XML file.
33 .SH OPTIONS
34 .TP
35 .I "\-f rcfile"
36 Specify an alternate configuration file. The default is \fB~/.pwmdrc\fR.
37 .TP
38 .I "\-v"
39 Version information.
40 .TP
41 .I "\-h"
42 Help text.
44 .SH CONFIGURATION FILE
45 Blank lines and lines beginning with '#' are ignored. The file requires a
46 group of options named "default". Groups are declared with [groupname]. Only
47 the group "default" will be used. If the first character of a string value is
48 a tilde, it will be expanded to your home directory.
49 .TP
50 .I "socket_path=<string>"
51 Listen on the specified socket. The default is \fB~/.pwmd/socket\fR.
52 .TP
53 .I "data_directory=<string>"
54 Where
55 .B pwmd
56 should store and retrieve data files. The default is \fB~/.pwmd\fR.
57 .TP
58 .I "disable_mlockall=<boolean>"
59 If set to "true" then
60 .B pwmd
61 wont call
62 .BR mlockall (2).
63 If you have resource limits beyond your control and
64 .B pwmd
65 is taking to much physical memory then this option may help at the cost of
66 security. The data might be swapped to virtual memory and later recovered.
67 Reguardless of this option
68 .BR mlock (2)
69 will still be used for the file cache. The default is \fBfalse\fR.
70 .TP
71 .I "cache_size=<integer>"
72 Specfies the size of the file cache. Must be in multiples of your systems
73 \fBPAGE_SIZE\fR. The default is one page which on Linux-x86 is 4096 bytes or
74 78 files.
75 .TP
76 .I "log_path=<string>"
77 Logs informational messages to the specified file. The default is
78 \fB~/.pwmd/.log\fR.
79 .TP
80 .I "enable_logging=<boolean>"
81 Enable or disable logging to \fBlog_path\fR. The default is \fBfalse\fR.
82 .TP
83 .I "iterations=<integer>"
84 The number of times to encrypt the data. A value of 10000 or more will make
85 dictionary attacks very slow depending on the CPU. The default is 0.
86 .TP
87 .I "cache_push=<list>"
88 A list of filenames separated by commas that will be pushed into the file
89 cache upon startup.
90 .B pwmd
91 will ask for the key for each file specified. The default is none.
92 .SH SIGNALS
93 .TP
94 .B SIGHUP
95 Clears the entire file cache. If there are any clients connected, a key will
96 be required for the next OPEN or SAVE command.
98 .SH FILES
99 .TP
100 .B ~/.pwmdrc
101 Default configuration file.
103 .B ~/.pwmd
104 Default data directory.
106 .B ~/.pwmd/socket
107 Default listening socket.
109 .B /dev/shm/pwmd.<uid>
110 On Linux, and maybe other systems, where the file cache is stored for the
111 duration of the daemon. If your
112 .BR mmap (2)
113 supports MAP_ANONYMOUS with MAP_SHARED then no file will need to be created.
115 .SH AUTHOR
116 Ben Kibbey <bjk@luxsci.net>
118 .URL "http://bjk.sourceforge.net/pwmd/" "PWMD Homepage" .
120 .SH "SEE ALSO"
121 .BR shm_open (2),
122 .BR mlock (2),
123 .BR mlockall (2),
124 .BR libxml (3) ,
125 .BR mmap (2)