File: pwsafe.1.in

package info (click to toggle)
pwsafe 0.2.0-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 656 kB
  • ctags: 399
  • sloc: sh: 3,580; cpp: 3,090; makefile: 59
file content (187 lines) | stat: -rw-r--r-- 5,676 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
.\" hey, Emacs:   -*- nroff -*-
.\" pwsafe is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\" 
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\" 
.\" You should have received a copy of the GNU General Public License
.\" along with this program; see the file COPYING.  If not, write to
.\" the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
.\" 
.\" Please update the above date whenever this man page is modified.
.\" 
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins (default)
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.TH "PWSAFE" "1" "@VERSION@" "Nicolas S. Dade <ndade@nsd.dyndns.org>" ""
.SH "NAME"
pwsafe \- commandline password database utility compatible with Counterpane's Passwordsafe
.SH "SYNOPSIS"
.B pwsafe
.RI [options]
.RI command
.RI [arg]
.SH "DESCRIPTION"
\fBpwsafe\fP manipulates Counterpane Passwordsafe username/password databases.
.PP 
It is compatible with Counterpane Passwordsafe 1.9.x and 2.0 databases.
.SH "COMMANDS"
\fBpwsafe\fP accepts the following commands:
.TP 
.B  \-\-createdb
Create a new database.
.TP 
.B  \-\-exportdb
Export database as text.
.TP 
.B  \-\-mergedb=DATABASE_FILE
Merge DATABASE_FILE into database. Common entries are merged interactively.
.TP 
.B  \-\-passwd
Change the database's passphrase.
.TP 
.B  \-\-list[=REGEX]
List all [matching] entries in database.
.BR 
If \-u or \-p is given then REGEX must match only one entry, and only the requested field(s) are emitted.
.TP 
.B  \-a, \-\-add[=NAME]
Add an entry to database.
.TP 
.B  \-e, \-\-edit=REGEX
Edit an entry.
.TP 
.B  \-\-delete=NAME
Delete an entry from database.
.TP 
If no command is given, an interactive mode is entered.
.SH "OPTIONS"
\fBpwsafe\fP accepts the following options:
.TP 
.B  \-f, \-\-file=DATABASE_FILE
Specify the database to manipulate. Default is $HOME/.pwsafe.dat
.TP 
.B  \-\-dbversion=[1|2]
Specify the database's version. Default is 2.
.TP 
.B  \-I, \-\-case
REGEX is case\-sensative. Any uppercase character in REGEX implies \-\-case.
.TP 
.B  \-l
Show login and notes in list output.
.TP 
.B  \-u, \-\-username
Show username of listed account(s).
.TP 
.B  \-p, \-\-password
Show password of listed accounts(s).
.TP 
.B  \-E, \-\-echo
Force echo'ing of entry to stdout. This is selected by default if $DISPLAY is not set.
.TP 
.B  \-o, \-\-output=FILE
Redirect username and password output to FILE. Implies \-\-echo.
.TP 
.B  \-x, \-\-xclip
Force copying of username and password to X clipboard. This is selected by default if $DISPLAY is set.
.TP 
.B  \-d, \-\-display=XDISPLAY
Override $DISPLAY. Implies \-\-xclip.
.TP 
.B  \-s, \-\-selection={Primary,Secondary,Clipboard,Both}
Select the X selection effected. Default is Both primary and clipboard. Implies \-\-xclip.
.TP 
.B  \-G, \-\-ignore=NAME@HOST
Add NAME to windows or hosts that do not receive the selection. If just NAME is given it matches any host, and if just @HOST is given it matches any name.
.TP 
.B  \-v, \-\-verbose
Print more information.
.TP 
.B  \-q, \-\-quiet
Print less information. In fact, print only exactly what was requested.
.TP 
.B  \-h, \-\-help
Show summary of options.
.TP 
.B  \-V, \-\-version
Show version of program.

.SH "ENVIRONMENT"
.TP 
PWSAFE_DATABASE
Default database file. If this is a relative path it is assumed to be relative to $HOME. Defaults to ".pwsafe.dat". Overridden by \-f.
.TP 
PWSAFE_DEFAULT_USER
Default user. Defaults to $USER or $LOGNAME.
.TP 
PWSAFE_IGNORE
Overrides built\-in \-\-ignore list. \-\-ignore overrides. Format is a list of \-\-ignore arguments, seperated by colons (':').
.TP 
HOME
Used to locate the default database "~/.pwsafe.dat" and default RANDFILE "~/.rnd".
.TP 
RANDFILE
Used to locate the random number generator entropy pool file. Defaults to "$HOME/.rnd".
.SH "FILES"
.TP 
~/.pwsafe.dat
The password database.
.TP 
~/.pwsafe.dat~
Backup of database.
.TP 
~/.rnd
Random number generator's entropy pool.
.SH "WARNINGS"
Use a good password for your database.

Don't use pwsafe over telnet or from untrusted terminals.

To seed RANDFILE decently, do something like
.br 
   md5sum /var/log/* >~/.rnd
.SH "EXAMPLES"
For those who can't read the rest of this file:
.BR 
.TP 
Create $HOME/.pwsafe.dat.

pwsafe \-\-createdb
.TP 
Add an entry named 'test'.

pwsafe \-a test
.TP 
Copy username and password of 'test' to console or X clipboard & primary selection.

pwsafe \-up test
.TP 
Upgrade a version passwordsafe version 1.7 database to version 2.0 (we do this by merging it with itself, but specifying version 2 output)

pwsafe \-\-mergedb $HOME/.pwsafe.dat \-\-dbversion 2
.SH "AUTHOR"
Nicolas S. Dade <ndade@nsd.dyndns.org>.
.SH "REPORTING BUGS"
Report bugs to <ndade@nsd.dyndns.org>.
.SH "COPYRIGHT"
Copyright (c) 2004\-2005 Nicolas S. Dade.

This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A  PARTICULAR PURPOSE.
.SH "SEE ALSO"
http://nsd.dyndns.org/pwsafe/
.br 
http://passwordsafe.sourceforge.net/,
http://www.counterpane.com/