Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-27-2013, 10:17 AM   #1
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Rep: Reputation: 13
Password File, No Not That One.


I want to create a password file so I'm not using the same password for each site. What options do I have to secure it?

Ideally I'd like to have just a text file, encrypted, so when I read it I need to enter the password and then immediately it encrypts itself again so to read it again I have to type in the password again.

Other security ideas for this file would be great. Thanks
Old 06-27-2013, 10:19 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
You've not said a thing about what these passwords are for. Site? Are we talking abuot a website access? htaccess?? throw us a bone please.
Old 06-27-2013, 10:30 AM   #3
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
Of course! My apologies! Passwords for Websites.
Old 06-27-2013, 10:42 AM   #4
Registered: Jan 2006
Distribution: Slackware
Posts: 841

Rep: Reputation: 165Reputation: 165
I suggest you look at KeePassX. It's handles the automatic encryption for you. You can keep one database or multiple, as many as you need. You can define subgroups in each database to separate passwords into different categories, such as email, web forums, banking, or whatever is meaningful to you.

It can also generate strong passwords for you of any length you like using one of its built-in character group selections, or using a custom set of parameters you define. You can bring up any entry and copy the password from it with ctrl+c and paste it into a form. Use ctrl+b for the username. It copies it into your clipboard so you can paste it somewhere, then it deletes it from your clipboard later after a time interval you can specify in the settings.

There is also an autotyping capability you can set up for each web site login form where you need to enter a username and password, and it will type in the username and password for you without using the clipboard and while employing some obfuscating tactics to make it less vulnerable to key loggers.

Overall, it's much more flexible than a simple encrypted text file, takes less effort to maintain, and may even be more secure.

Last edited by Z038; 06-27-2013 at 10:44 AM.
Old 06-30-2013, 08:38 PM   #5
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,406

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
Another vote for KeepassX.
FYI its based off a version called Keepass that runs on MS, so if you use MS at work, you can use the 'same' tool.

Last edited by chrism01; 07-01-2013 at 07:21 PM. Reason: typo
Old 06-30-2013, 09:11 PM   #6
Senior Member
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 279Reputation: 279Reputation: 279
Both KeePassX and KeePass will run on Linux. There are also other password managers available. They're designed for the task you want, and would be much easier to use than an encrypted text file. But if you insist on a text file, gpg will do the job, as well as some other encryption tools. You have lots of choices for this, but my choice would be a password manager, probably either KeePassX or KeePass. You could also use LastPass in Firefox or Iceweasel, and that works well enough, but it only works in the browser, so you need it open anytime you need a password. If all you need are passwords for websites, then LastPass may be good enough. It doesn't require a new package install, it's just an addon for your browser.

Last edited by sgosnell; 06-30-2013 at 09:13 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change password using a script file and text file? hayloiuy Linux - Newbie 5 06-27-2011 01:13 AM
How to use key file instead of password for LUKS encrypted file systems? lucmove Linux - Security 2 06-30-2009 09:17 AM
password file roAder Slackware 2 02-28-2005 06:08 PM
password file juno Linux - General 13 10-04-2002 09:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration