NAME
pass-tomb — A pass(1) extension that helps to keep the whole tree of password encrypted inside a tomb(1)
SYNOPSIS
pass tomb [options…] gpgid…
pass open [options…]
pass close [options…]
pass timer [options…]
DESCRIPTION
Due to the structure of pass(1), file- and directory names are not encrypted in the password store. pass tomb provides a convenient solution to put your password store in a tomb(1) and then keep your password tree encrypted when you are not using it.
It uses the same GPG key to encrypt passwords and tomb, therefore you don’t need to manage more key or secret. Moreover, you can ask pass-tomb to automatically close your store after a given time.
The new workflow is the following:
- Create a password tomb with pass tomb. It creates a new tomb and opens it in ~/.password-store. Then it initializes the password repository with the same GPG key.
- Use pass as usual.
- When finished close the password tomb: pass close.
- To use pass again, you need to open the password tomb: pass open.
COMMAND
pass tomb [ –no-init, -n ] [ –timer=time, -T time ] [ –path=subfolder, -p subfolder ] [–force, -f] [–size=size, -s size] gpg-id…
Create and initialize a new password tomb. This command must be run first, before a password store can be used.
- gpg-id
Refer to the encryption key of both passwords and tomb. Multiple gpg-ids may be specified, in order to encrypt the tomb and each password with multiple ids.
--path=subfolder,-p subfolderSpecific password tomb using gpg-id or a set of gpg-ids is assigned for that specific subfolder of the password store.
--=subfolder, -p subfolder
--no-init,-nDo not initialize the password store. By default, pass-tomb initializes the password store with the same key(s) it generated the tomb. The purpose of this option is to let the user free to initialize the password store with a different key or set of keys.
--timer=time,-T timeClose the password store automatically systemd timer after a given time. This time will be saved in the .timer file present in the store.
--force,-fForce the password store to be mounted or created even if a plain text swap is present. Make sure you know what you are doing if you force an operation.
--size,-sSpecify the tomb size in MB.
pass open [–tomb=tomb, -t tomb] [–key=key, -k key] [ –timer=time, -T time ] [–force, -f] [subfolder]
Open a password tomb. If a .timer file is present in the store, a systemd timer will be initialized.
- subfolder
The password store will be opened in the subfolder.
--timer=time,-T timeClose the store automatically closed using a systemd timer after a given time. If a ‘.time’ file was already present in the store, this time will be updated. Multiple timer can be used in the same time.
--force,-fForce the password store to be mounted or created even if a plain text swap is present. Make sure you know what you are doing if you force an operation.
--tomb,-tSpecify the path to the password tomb.
--key,-kSpecify the path to the password tomb key.
pass close [store]
Close a password tomb.
- store
If store is specified, pass close will try to close this store.
pass timer [store]
Show timer status.
- store
If store is specified, pass timer will show the status for this store.
OPTIONS
-n,--no-initDo not initialize the password store
-T,--timerClose the store after a given time
-p,--pathCreate the store for that specific subfolder
-t,--tombSpecify the tomb file to open
-k,--keySpecify the tomb key to open the store
-s,--sizeSpecify the tomb size in MB
-f,--forceForce the tomb operations (i.e. even if swap is active)
-q,--quietBe quiet
-v,--verboseBe verbose
-d,--debugPrint tomb debug messages
--unsafeSpeed up tomb creation (for testing purposes only)
-V,--versionShow version information
-h,--helpShow usage message.
EXAMPLES
Create a new password tomb
zx2c4@laptop ~ $ pass tomb Jason@zx2c4.com
(*) Your password tomb has been created and opened in ~/.password-store.
(*) Password store initialised for Jason@zx2c4.com.
. Your tomb is: ~/.password.tomb
. Your tomb key is: ~/.password.key.tomb
. You can now use pass as usual.
. When finished, close the password tomb using 'pass close'.Open a password tomb
zx2c4@laptop ~ $ pass open
(*) Your password tomb has been opened in ~/.password-store.
. You can now use pass as usual.
. When finished, close the password tomb using 'pass close'.Close a password tomb
zx2c4@laptop ~ $ pass close
(*) Your password tomb has been closed.
. Your passwords remain present in ~/.password.tomb.Create a new password tomb and set a timer
zx2c4@laptop ~ $ pass tomb Jason@zx2c4.com --timer=1h
(*) Your password tomb has been created and opened in ~/.password-store.
(*) Password store initialised for Jason@zx2c4.com.
. Your tomb is: ~/.password.tomb
. Your tomb key is: ~/.password.key.tomb
. You can now use pass as usual.
. This password store will be closed in 1h
zx2c4@laptop ~ $ pass open
(*) Your password tomb has been opened in ~/.password-store.
. You can now use pass as usual.
. This password store will be closed in 1hOpen a password tomb and set a timer
zx2c4@laptop ~ $ pass open
(*) Your password tomb has been opened in ~/.password-store.
. You can now use pass as usual.
. This password store will be closed in 10minENVIRONMENT VARIABLES
- PASSWORD_STORE_TOMB
Path to tomb executable
- PASSWORD_STORE_TOMB_FILE
Path to the password tomb, by default ~/.password.tomb
- PASSWORD_STORE_TOMB_KEY
Path to the password tomb key file by default ~/.password.key.tomb
- PASSWORD_STORE_TOMB_SIZE
Password tomb size in MB, by default 10
SEE ALSO
pass(1), tomb(1), pass-import(1), pass-update(1), pass-audit(1), pass-otp(1)