summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-08-22 12:01:55 +0200
committerErich Eckner <git@eckner.net>2016-08-22 12:01:55 +0200
commit284d560c946a3623d3841c5078666a42fb43a427 (patch)
treecdb41d3156bc20c377ba34aa80771e8dfcf1570c
parent7c668b20b62452f02b6be8159520e4e682f402cb (diff)
downloadpasswort-tresor-0.0.tar.xz
manpage erstelltv0.0
-rw-r--r--passwort-tresor.1.in58
-rw-r--r--passwort-tresor.in2
2 files changed, 25 insertions, 35 deletions
diff --git a/passwort-tresor.1.in b/passwort-tresor.1.in
index bdfb929..1f0abf2 100644
--- a/passwort-tresor.1.in
+++ b/passwort-tresor.1.in
@@ -1,52 +1,42 @@
-.TH sendmailadvanced 1 "" "sendmailadvanced #VERSION#" ""
+.TH passwort-tresor 1 "" "passwort-tresor #VERSION#" ""
.SH NAME
-sendmailadvanced \- wrapper for sendmail which encrypts and generates stamps
+passwort-tresor \- wrapper for gpg to store passwords (and other text)
.SH SYNOPSIS
-\fBsendmailadvanced [options]\fP
+\fBpasswort-tresor [options]\fP
.SH DESCRIPTION
-\fBsendmailadvanced\fP encrypts emails and generates stamps either in situ or in a pipe. For that it uses \fBhashcash\fP and \fBgnupg\fP.
+\fBpasswort-tresor\fP stores/retreives encrypted passwords (and other text) in/from a file and saves/checks a checksum. For that it uses \fBgnupg\fP.
.SH OPTIONS
.TP
-.B "\-h, \-\-hook"
-Activate specified hook.
+.B "\-b, \-\-blind $blindheit"
+Schwere der Fehler, die ignoriert werden:
+0 - keine, 1 - falsche Prüfsumme/Signatur, nicht schreibbare Summendatei, 2 - nicht lesbare Summendatei, 3 - Fehler beim Ver-/Entschlüsseln, Fehler beim Speichern
.TP
-.B "\-i, \-\-inline"
-Enhance email file in situ.
-\fB\-\-inline \-\fP has the same effect as option \fB\-t\fP.
-Conflicts with \fB\-t, \-\-no\-inline\fP.
+.B "\-d, \-\-datei $datei"
+die verschlüsselte Datei
.TP
-.B "\-t, \-\-no\-inline"
-Enhance email from stdin to stdout.
-Conflicts with \fB\-i, \-\-inline\fP.
+.B "\-g, \-\-grep"
+nach einem Passwort suchen und das Ergebnis in die Zwischenablage kopieren
.TP
-.B "\-e, \-\-[no\-]encrypt"
-Do (not) encrypt.
-.TP
-.B "\-s, \-\-[no\-]stamp"
-Do (not) stamp.
+.B "\-s, \-\-summe"
+die Prüfsummendatei
.SH CONFIGURATION
-The configfile \fB#ETCDIR#/sendmailadvanced.conf\fP is a bash script, which defines the following variables and routines:
-.TP
-.B "gpg_recipient"
-default recipient to encrypt to
+Die Konfigdatei \fB#ETCDIR#/passwort-tresor.konf\fP ist ein bash-Skript, welches die folgenden Variablen definiert:
.TP
-.B "hashcash_bits"
-stamp value
+.B "schluessel"
+der Schlüssel, mit dem verschlüsselt und signiert werden soll und dessen Signatur erwartet wird
.TP
-.B "body_header_hook"
-routine printing things to put into head of (body of) email.
-Parameter \fB$1\fP was given on the console via \fB--hook $1\fP.
+.B "standardDatei"
+die Datei, welche standardmäßig angewählt ist
.TP
-.B "body_footer_hook"
-routine printing things to put into foot of email.
-Parameter \fB$1\fP was given on the console via \fB--hook $1\fP.
+.B "summenVerzeichnis"
+Verzeichnis, in dem die Prüfsummen gespeichert werden
.SH FILES
.TP
-.B "#BINDIR#/sendmailadvanced"
-program file
+.B "#BINDIR#/passwort-tresor"
+Programmdatei
.TP
-.B "#ETCDIR#/sendmailadvanced.conf"
-contains configuration
+.B "#ETCDIR#/passwort-tresor.konf"
+beinhaltet die Konfiguration
.SH AUTHOR
.nf
Erich Eckner <opensource at eckner dot net>
diff --git a/passwort-tresor.in b/passwort-tresor.in
index 40826c3..3a78211 100644
--- a/passwort-tresor.in
+++ b/passwort-tresor.in
@@ -140,7 +140,7 @@ gpg --status-fd 1 -o "${tmpDir}/output" -d "${tmpDir}/original" \
2> "${tmpDir}/fehlermeldungen" \
> "${tmpDir}/status"
-beiFehlerBeenden 2
+beiFehlerBeenden 3
grep -q "VALIDSIG ${schluessel} \(.* \)\?${schluessel}\$" "${tmpDir}/status"