LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Recommendations for a Password Manager on Slackware (https://www.linuxquestions.org/questions/slackware-14/recommendations-for-a-password-manager-on-slackware-4175710053/)

random_guy 03-27-2022 10:24 PM

Recommendations for a Password Manager on Slackware
 
I'm looking for recommendations for a stand-alone password manager for Slackware.

The most common I've seen around the web are:
- KeepassXC
- Buttercup
- Bitwarden
- LastPass

Keepass and Lastpass are the only two I've heard about over the years but never used to date.

Any recommendations/comments would be greatly appreciated.

TIA

truepatriot76 03-27-2022 11:48 PM

I've used KeePass and KeePassXC - currently using the latter (on current). Both do the job. The one thing that I like about KeePassXC, and why I settled on it - it doesn't require mono.

ponce 03-28-2022 12:29 AM

password-store (homepage).

ozanbaba 03-28-2022 12:36 AM

I personally use Bitwarden [1]. It is good and has apps for major systems you can get. However, it is a client - server system and that's definitely not standalone.


[1] Actually I use unofficial rust implementation called vaultgarden. I run it on my server and access it from my machines. It is small and can use sqlite as DB hence it is quite well fitting for small users like me.
https://github.com/dani-garcia/vaultwarden

pan64 03-28-2022 01:54 AM

You can easily try them. Or do you want to use what I like? (keepassxc)

uiopqwerty 03-28-2022 02:57 AM

I can't recommend password-store highly enough. Along with having a sane structure, having excellent autocompletion, and being effectively future-proof (password-store is basically a porcelain for gpg and git), it's also got a dmenu interface, a Firefox plugin, an Emacs package, third-party Android and iOS apps, and a host of community-maintained plugins - OTP, tomb, various tools to migrate passwords from other databases, the Firefox plugin as mentioned ... It leverages git for version control, so you can go back in time to see e.g. old removed passwords you didn't realise you still needed, and you can distribute your repository easily using the same tools you would with git. If you want to maintain a password manager on both your computer and phone without passing KeePass files around, this is a great way of doing it. I've had my password-store on my laptop, home server, and iPhone for about 3 years now.

I think the only thing that can really be said against it is that the database might leak metadata about your online profile, since the database is really just a directory structure under $HOME/.password-store with encrypted files named whatever you like - it effectively lists all your online accounts if you use it in that way, and anyone with a copy of these files can see this in plain text. There are plenty of ways to work around this though, including encrypting your HDD at rest and locking your computer when you're away from it, or by using pass-tomb to encrypt the entire database and only unlock it for time-limited intervals while you're using it. Also, although in principle it would work great for team-based arrangements since it's so easy to distribute, since it's really just a git repository you can't realistically revoke access for anyone, so I would never honestly suggest it for that. It's awesome for personal use though.

Edit: also I use KeePassXC at work just because I’ve been using it for 5+ years and it works very well, but as I mentioned it doesn’t lend itself to my own workflow with computer and mobile device

Richard Cranium 03-28-2022 03:06 AM

Quote:

Originally Posted by uiopqwerty (Post 6342058)
I can't recommend password-store highly enough.

I'm not quoting everything that you had written, but what you had written was enough for me to take a look. Thanks!

ponce 03-28-2022 03:11 AM

Quote:

Originally Posted by uiopqwerty (Post 6342058)
I think the only thing that can really be said against it is that the database might leak metadata about your online profile, since the database is really just a directory structure under $HOME/.password-store with encrypted files named whatever you like - it effectively lists all your online accounts if you use it in that way, and anyone with a copy of these files can see this in plain text. There are plenty of ways to work around this though

here I insert my online accounts (or others too) as multi-line (-m), with the name of the online service as the store ("Facebook", for example), the account name as the first line and the password as the second line: this way very little will leak if you publish the git repository somewhere public...

knet 03-28-2022 03:23 AM

KeepassXC. Thanks for the password-store suggestions.

kjhambrick 03-28-2022 03:54 AM

Thanks all.

I've installed Alien Bob's keepassxc-2.6.6-x86_64-1alien.txz mostly for the keepass-cli

Looks like there is more to look at :)

-- kjh

Thom1b 03-28-2022 04:31 AM

I use KeePassXC, keepassxc-browser plugin for firefox, KeePass DX on Android.

uiopqwerty 03-28-2022 05:29 AM

Quote:

Originally Posted by ponce (Post 6342061)
here I insert my online accounts (or others too) as multi-line (-m), with the name of the online service as the store ("Facebook", for example), the account name as the first line and the password as the second line: this way very little will leak if you publish the git repository somewhere public...

I do something similar, and for me this arrangement is fine - honestly I treat my personal laptop as pure convenience, so if someone has my laptop and I’m logged in then my gpg-agent already has my password saved … otherwise they’re not going to be getting their hands on my keys or password, and I’m not too concerned about leaked metadata because it’s kept offline (some people use Gitlab or GitHub to store their password store, which with a strong key is safe enough I suppose but still feels insane to me even if you have a private repository - I just have it on any home server).

montagdude 03-28-2022 07:40 AM

Quote:

Originally Posted by ponce (Post 6342030)

This is what I use too. Only problem is that it relies on xclip to copy password to the clipboard, which doesn't work on Wayland. Anyone know if there is a solution to that?

0XBF 03-28-2022 11:05 AM

Quote:

Originally Posted by ponce (Post 6342061)
here I insert my online accounts (or others too) as multi-line (-m), with the name of the online service as the store ("Facebook", for example), the account name as the first line and the password as the second line: this way very little will leak if you publish the git repository somewhere public...

Yep, I also use password-store with multiline entries. I like to keep my security questions/answers in multiline entries for logins that require it also. When pulling passwords in something like firefox, only the password line gets auto-filled after unlocking the password-store entry. Still need to open a terminal to unlock it that way for viewing the other lines stored in the entry.

The 'generate' command is nice to produce secure passwords also.

0XBF 03-28-2022 11:13 AM

Quote:

Originally Posted by montagdude (Post 6342108)
This is what I use too. Only problem is that it relies on xclip to copy password to the clipboard, which doesn't work on Wayland. Anyone know if there is a solution to that?

It's supposed to use 'wl-clipboard' on wayland. I'm not sure if that's included in Slackware though.

You can see that the password-store.sh script checks if wayland is running and defaults to commands from wl-clipboard, if its found on the system. This commit shows the relevant code: https://git.zx2c4.com/password-store...edf5938219a9b7

Edit: Doesn't appear to be in Slackware. I guess it could be added as an optional dependency to the slackbuilds.org build of password-store.

random_guy 03-29-2022 09:26 AM

Thanks everyone for the recommendations and comments. I hadn't heard about password-store,will look into it. I also downloaded the KeepassXC AppImage from the website to try it out. It's pretty functional and certainly looks like it will do the job.

Thom1b 03-29-2022 10:06 AM

Quote:

Originally Posted by random_guy (Post 6342422)
I also downloaded the KeepassXC AppImage from the website to try it out. It's pretty functional and certainly looks like it will do the job.

keepassxc with ssh agent support and ssh forwarding is heaven :)

0XBF 05-23-2022 08:27 AM

Quote:

Originally Posted by 0XBF (Post 6342167)
It's supposed to use 'wl-clipboard' on wayland. I'm not sure if that's included in Slackware though.

You can see that the password-store.sh script checks if wayland is running and defaults to commands from wl-clipboard, if its found on the system. This commit shows the relevant code: https://git.zx2c4.com/password-store...edf5938219a9b7

Edit: Doesn't appear to be in Slackware. I guess it could be added as an optional dependency to the slackbuilds.org build of password-store.

I know this thread was from a couple months ago, but I wanted to point out that wl-clipboard is on slackbuilds.org now: https://slackbuilds.org/repository/1...h=wl-clipboard

password-store will work in wayland after installing that package. The password-store readme should also be updated by next weekend to mention wl-clipboard is needed for wayland.

Happy slackin

drgibbon 05-23-2022 08:38 AM

Quote:

Originally Posted by montagdude (Post 6342108)
This is what I use too. Only problem is that it relies on xclip to copy password to the clipboard, which doesn't work on Wayland. Anyone know if there is a solution to that?

Another option is to skip the clipboard entirely with dmenu, or `passmenu --type`. For entering most passwords, I bind a key to:
Code:

passmenu --type -fn 'Liberation Mono-24' -p "pass: "

chrisretusn 05-23-2022 10:33 AM

1 Attachment(s)
I have been using KeePass for a long time. It has a lot of features. My favorite is Password profiles. Quite a few sites I use have very specific password requirements.

Example:
Code:

The PASSWORD must:

    be 9 to 30 characters in length
    contain at least one UPPERCASE letter (A-Z)
    contain at least one lowercase letter (a-z)
    contain at least one number (0-9)
    contain at least one of the following special characters: # @ $ ^ ! * + = _ %
    change at least four characters from the previous Password

The PASSWORD CANNOT:

    contain spaces
    be one of your 5 previous passwords

Your PASSWORD will expire in 150 days.

Most of the above can be met with most password managers with generic settings, the problem is with special characters. KeePass Special Characters are:
Code:

!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
As you can see, only a few of those are allowed. So I created a password profile that take care of this. See attached screenshot.

The draw back to KeePass is it needs mono installed. For me that is not a problem. I also use an Android App called Keepass2Andriod that works with KeePass to files. I have the password file in the cloud so I can access it via all of my devices. Using a password profile for the picky password sites make life simple. When I need to change my password, I select the profile needed and a new password is generated that fits the requirement.

zeebra 05-23-2022 03:50 PM

Quote:

Originally Posted by random_guy (Post 6342014)
I'm looking for recommendations for a stand-alone password manager for Slackware.

I never really liked the idea of storing all your passwords in one program.

Kwallet is included with KDE, but I always personally disable it.

drgibbon 05-23-2022 11:26 PM

Quote:

Originally Posted by zeebra (Post 6355941)
I never really liked the idea of storing all your passwords in one program.

That's one nice thing about pass (password-store on SBo), it's just a frontend to GPG-encrypted text files.

pan64 05-24-2022 12:13 AM

Quote:

Originally Posted by zeebra (Post 6355941)
I never really liked the idea of storing all your passwords in one program.

Yes, I [almost] totally agree with it. But now I have more that 100 different users/passwords to different webshops, sites.... and all the passwords are generated and all the usernames and passwords are different. So there is no way to remember them.

chrisretusn 05-25-2022 02:53 AM

Quote:

Originally Posted by zeebra (Post 6355941)
I never really liked the idea of storing all your passwords in one program.

Kwallet is included with KDE, but I always personally disable it.

I don't use Kwallet either.

I used to think the same back when only a few password were needed. These days with 244 unique password in my password database. It is not a simple task to maintain these. A password manager greatly simplifies this task. The passwords are stored in a encrypted database that is separate from the program. In my case by using KeePass there are alternative programs that can read this database. I use two separate programs, one for the computer one for my cell phones. Programs are compatible with the database. Backups of database is mandatory (my opinion). If key files are being used, multiple back up copies of the key file is a must. Loose the key file and all is lost with out a back up copy. I learned this the hard way a long time ago.


All times are GMT -5. The time now is 10:05 PM.