pass: Unix password management

Pass is a password management system for Unix. You only need to remember one password to access a personal database of passwords for what ever you want. What made me shift toward this (as opposed to keepass for example) was the simplicity, the possibility to use autocompletion when trying to access passwords and the ability to use version control with Git.

Installation

sudo apt-get install pass
Setup

There are quite a few guides available, but the most comprehensive is here. This guide starts from scratch with implementing GPG keys. It also shows how to use pass, and how to use the same database on multiple systems. The only issue is that if you want to store your database in dropbox to sync with many devices for example, you need to change the directory that the database is stored in. So after installation, make sure you set the following environment variable before following the guide above (changing the directory to where you want the database to be):

export PASSWORD_STORE_DIR=~/Dropbox/.password-store

Note that when you restart, you will need to set this variable again. In order to set it permanently, make an .sh script in your /etc/profile.d directory (any *.sh script in this directory will be run at startup):

sudo vi /etc/profile.d/envvars.sh

enter your password, then paste the following (changing the directory to your own):

# put your personal env variables to load at startup here
export PASSWORD_STORE_DIR=~/Dropbox/.password-store

also, to make it easier to initialise with the gpg key, you can set the pass init command as an alias to remember your key id. Make a .bash_aliases file in your home directory if it doesn’t already exist with:

vi ~/.bash_aliases

then paste the following

alias passinit='pass init <your key>'

now whenever you startup your machine, you should be able to open a terminal and immediately get into pass by entering passinit

Sources

Info on using an alternate directory came from here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s