Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

kwalletcli(1) [debian man page]

KWALLETCLI(1)						    BSD General Commands Manual 					     KWALLETCLI(1)

NAME
kwalletcli -- command line interface to the KDE Wallet SYNOPSIS
kwalletcli [-q] -hV kwalletcli [-q] -f folder -e entry [-P | -p password] DESCRIPTION
The kwalletcli utility is a command line interface to KWallet. It will only work if KDE is running (DCOP) and reachable (via X11). kwalletcli can be used to get password entries from the Wallet, or to write them there. The options are as follows: -e entry Define the key (entry) to use when accessing the Wallet. Mandatory. -f folder Set the folder to use when accessing the Wallet. Mandatory. -h Display the usage. -P Read the password to write from standard input. Currently limited to 65535 octets. -p password Write password into the designated location in the Wallet. -q Be more quiet. In combination with -V, do not display anything. -V Display the kwalletcli version information. Default mode of operation, that is, unless -P or -p are used, is to read the password from the Wallet and print it to standard output as-is, without any trailing newline. All input and output is assumed to be in UTF-8. The password string (whether read from standard input or command line) is now converted from ``possibly UTF-8 but binary transparent'' to standards-conformant UTF-8 for the Qt side, and back upon reading out. RETURN VALUES
The kwalletcli utility exits 0 on success or >0 if an error occurred: 1 The entry specified cannot be found (read access). 2 The usage was shown. 3 The Wallet could not be opened. May be a missing DCOP connection. Perhaps DISPLAY is not set. 4 The folder specified cannot be found (read access). 5 The folder specified cannot be opened. 6 The value to the key specified could not be retrieved. 8 An error occured trying to write the value. The exit codes 1 and 4, on reading, are not fatal; they merely indicate that the folder or entry specified does not exist. The other errors are fatal and may be used to indicate the user that the KWallet should not be used any more during the current session. ENVIRONMENT
DISPLAY The X11 display to use for communicating with the KDE Wallet. SEE ALSO
kwalletcli_getpin(1) AUTHORS
kwalletcli was written by Thorsten Glaser <tg@mirbsd.org> mostly for tarent GmbH. CAVEATS
Do not use -p password to store it, unless you absolutely must. It is a security risk, because the command line invocation is public infor- mation in a normal Unix environment. Use -P instead and provide the password on standard input. Beware of trailing newlines, especially outside of mksh(1) scripts! BUGS
If DISPLAY is not set, not valid, or kdeinit or kdeinit4 cannot start for other reasons, kwalletcli may not recover gracefully. In KDE 4 versions, this may even result in a Segmentation fault. The author does not know of a way to catch this early; patches are welcome. There is no way (yet) to set a wallet other than the default wallet. While this is a possible enhancement to the kwalletcli CLI, there is no feasible way to expose this functionality to the various front-ends, such as pinentry-kwallet(1), anyway, so the priority of fixing this is low. BSD
April 9, 2011 BSD

Check Out this Related Man Page

KWALLETCLI_GETPIN(1)					    BSD General Commands Manual 				      KWALLETCLI_GETPIN(1)

NAME
kwalletcli_getpin -- command line interface to pinentry SYNOPSIS
kwalletcli_getpin [-q] [-b | -m | -p prompt] [-E | -e errortext] [-N NoText] [-t desctext] [-Y YesText] DESCRIPTION
The kwalletcli_getpin utility is a shell wrapper speaking to pinentry using the Assuan protocol. It will ask the user for a passphrase and print it, without any trailing newline, to standard output. There are options for asking a boolean question or displaying a message. If PINENTRY is not empty but points to a non-existing or failing programme, pinentry is not called. Instead, xmessage(1) is used for boolean queries and messages if DISPLAY is set; otherwise, kwalletcli_getpin uses simple terminal I/O on GPG_TTY using stty(1) to disable echo of terminal input for passphrase queries. The options are as follows: -b Ask for a confirmation (boolean) instead of a passphrase. -E Unset a previously set error text. -E errtxt Set the error text to errtxt, displaying a dialogue box with a red X icon indicating that this is a retry question. -m Display a message (one-button query) instead of asking. -N NoText Use NoText instead of Cancel for the text of the abort button, if any. -p prompt Set the small descriptive text shown in front of the input field (``the Prompt'') to prompt. -q Be more quiet. -t desctxt Set the descriptive text (the input challenge) to desctxt. -Y YesText Use YesText instead of OK for the text of the confirm button. All input and output is assumed to be in UTF-8. RETURN VALUES
The kwalletcli_getpin utility exits 0 on success, 1 if the passphrase input was cancelled by the user, or >1 if an error occurred. Confirma- tion (boolean) error codes are 0 for Yes, 1 for No, or >1 if an error occurred. Messages return >0 if an error occurred, 0 otherwise. A summary of the error codes follows: 0 Read password successfully. Boolean question returned Yes/OK. 1 Boolean question returned No/Cancel. 2 Wrong command line syntax. 3 The process reading user input unexpectedly terminated or errored out. 4 Unexpected result reading from pinentry. 5 Unable to determine controlling tty, caller must set GPG_TTY. 6 Caught SIGHUP, SIGINT, SIGQUIT, SIGTRAP, SIGPIPE, or SIGTERM. ENVIRONMENT
DISPLAY If not set, pass current terminal information to pinentry. GPG_TERM Terminal type of the current tty. Defaults to the value of the environment variable TERM, or ``vt100'' if unset. GPG_TTY The current terminal, determined by tty(1) if unset. LC_CTYPE Passed to pinentry. Default: ``en_US.UTF-8'' LC_MESSAGES Passed to pinentry. Unset by default. PINENTRY The pinentry programme to use. Default: ``pinentry'' SEE ALSO
gpg-agent(1), kwalletcli(1), pinentry(1), stty(1), tset(1), tty(1) AUTHORS
kwalletcli_getpin was written by Thorsten Glaser <tg@mirbsd.org> mostly for tarent GmbH. CAVEATS
Some newer pinentry features, such as three-button operation or setting the window title, are not supported yet. BUGS
Some pinentry programmes may not support messages correctly and display them as boolean queries instead. Some implementations display labels with the wrong charset. Neither of these two problems is an issue in kwalletcli_getpin but a bug of the backend implementation. BSD
May 10, 2011 BSD
Man Page