Want to create a directory for storing personnal sensitive information,(openSuSe)
Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Want to create a directory for storing personnal sensitive information,(openSuSe)
I want to create a directory for storing personnal sensitive information like usernames and passwords. I also want this information to be encrypted and only decrypted by entering a security code which should be determined by me. I'm using linux - openSuSe and i want do it at the CLI(Level 3).
Thanks for your help.
Last edited by edmondgyampoh; 05-18-2009 at 08:20 AM.
Hmm, there are some types of real-time encrypted filing systems available, but IMO they are not trivial (for a casual user) to impliment or get going. In certain situations or power-loss scenarios they can even be dangerous, becoming undecryptable (ever!) or unusable.
IMO the easiest, quickest way to reliably encrypt or decrypt sensitive data is to simply use the p7zip archiver. It was a quite powerful encryption feature you can use, and is reasonably user friendly.
I. e. what I'd do is to simply tar the directory, then 7zip it up, encrypting with a password. For casual use, that should be more then secure. Note, this is of course a MANUAL way to do it. However, it is very simple to do it this way, and safer, than doing it on the fly on an encrypted filing system. If you, for example, forget to tar/7zip encrypt the folder, it will be "in the clear" and thus a security risk. If you absolutely must have on the fly encryption, you -will- need a real encrypted filing system though.
In the most basic way, how do i simply create the directory for storing these sensitive information and how do i get them stored. Lets reserve the encryption for now. I will be glad if u can help me with specific commands to use. Thanks.
It's not as easy as to create an encrypted directory.
You can encrypt individual files if you want, but to encrypt the files automatically on a given directory you need to create an encrypted filesystem. A way to do it, if you don't want to toy with partitions, is to create a loopback file. This process is described here:
SuSE's YaST2 partitioner can create an encrypted file for you and add an entry for it to fstab. You need the pass phrase to mount it via a loop back device. You can mount it inside your home directory. Add the "noauto" option to defer mounting it when the computer boots up if there is more than one user.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.