DebianThis forum is for the discussion of Debian Linux.
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.
Yes, he did say that. But was it really what he meant? Be aware that LQ is frequented by many for whom English is not their native langauge... And translators, especially the online ones, aren't very accurate to translate the intention of someone's question.... And then there's the peculiarities of langauge itself: the word code has different meanings in different langauges and can even have multiple meanings in some langauges, depending on the context.
If you think "code" in the context of encode and decode, then it implies that the OP does want to encrypt the directory. I normally use gpg for this type of thing, but afaik it will only work with files not directories. So perhaps:
Code:
tar czf programs.tar.gz /home/linux/programs
gpg --encrypt programs.tar.gz
Of course you'd have to set up gpg first, and it may not be what the OP wants since presumably "programs" has executables in it that the OP may want to run.
How about simply making the /home/linux/programs not readable by others? Eg.
Code:
chmod -R og-r /home/linux/programs
There are also probably gui tools that will do what the user wants... for example I seem to recall ubunbtu making a big song and dance some time ago about encrypted home directories.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.