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.
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.
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
15 \\$2 \(laURL: \\$1 \(ra\\$3
17 .if \n[.g] .mso www.tmac
18 .TH PWMD 1 "22 Nov 2007" "Password Manager Client" "Password Manager Client"
21 pwmc \- send commands to pwmd
24 [\-hvX] [\-E] [\-s <socket>] [\-a [\-P <pinentry_path>] [\-D <display>] [\-T
25 <tty>] [\-N <term>] [\-t <seconds>] | \-p <password>] [\-S] [\-d <descriptor>]
32 client for \fBpwmd\fR. Commands are read line-by-line from stdin until an EOF
33 occurs. Element content or value set with the STORE command that contains
34 either newline or tab characters should be base64 encoded. The
36 utility can do this and can make the base64 encoded string on one line
37 with the 'base64 -A' switch.
42 Disable showing of status messages from the server. By default they are
46 Exit after a command failure.
49 Connect to the specified socket. The default is \fB~/.pwmd/socket\fR.
54 for password retrieval.
59 program. \fBlibpwmd\fP defaults to \fI@pinentry_path@\fP.
62 The pinentry display to use.
65 The full path of the tty for pinentry to use.
68 The terminal type for pinentry to use. This is required when using
72 isn't attached to a terminal.
75 When opening a file and a password is required,
77 will timeout after the specified amount of seconds. When saving a file and a
78 password is required, no timeout will be used even if specified.
81 Use the specified password.
84 Send the SAVE command after EOF.
87 Writes the results of successful commands to the specified file descriptor.
88 This may be needed if your using pinentry to retrieve a password but
89 redirecting command results.
98 To list the available accounts and use
102 echo list | pwmc -a filename
105 To store an element path and save the file afterwards:
107 echo -e 'store isp\\tsmtp\\thostname\\tsomehost.com' | pwmc -S filename
110 Clear the file cache for a single file:
112 echo 'clearcache filename' | pwmc
115 Multiple commands in one instance:
117 echo -e 'get isp\\tsmtp\\thostname\\nget isp\\tusername' | pwmc filename
120 Base 64 encoded content:
122 echo -e 'store blah\\tstuff\\t'`cat file | openssl base64 -A` | pwmc filename
124 Then to get the content:
126 echo -e 'get blah\\tstuff' | pwmc filename | openssl base64 -d -A
132 Default socket to connect to.
135 Default location of the pinentry binary.
139 Ben Kibbey <bjk@luxsci.net>
141 .URL "http://bjk.sourceforge.net/pwmd/" "PWMD Homepage" .