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.
I have been researching the possibility of using the Zip -e command in Linux to encrypt and compress a file with success. I am trying to find out if there is a script or someone can help me create one that i can run to automate password protection and compression of an entire directory. Please someone help me, it would be greatly appreciated and would help me get out of a big protection problem at the workplace. Thanks.
as far as i know the limitation on the files is 2gb for ZIP encryption. Is there a way to bypass that limit?
I'm really looking for a way to tar, zip or rar a directory with password protection. I've tried to no avail with the ZIP utility as one employees backups are around 3gb and everyone else's being around 900mb and two others 1.5gb.
I'm looking for a hint that can help me with this issue. I'm very familiar with many parts of linux shell scripting, but perl scripting and others like it i am not. If someone has a solution using one of these languages, i would be more than happy to learn.
what other compression archiver supports encryption? I've been trying to look up gzip or tar and can't find any info on encrypting.
rar and 7zip support encryptions. Both are available for linux. 7zip is opensource, rar is not.
Quote:
Originally Posted by jedilost1
Unfortunately i am not familiar with gpg,
It is never too late to learn. Google for GnuPG tutorial or gpg tutorial. Also there is "The GNU Privacy Handbook"(also available as pdf somewhere) which explains how to use it.
tar -cjf - /export/PrimeView/Staff | gpg -c --output backup.tar.bz2.gpg
thank you so much for the help..
Is there a windows utility that could help me decrypt and get this information back. Plus, what is the code to untar in linux?
It seems to be working though, you guys are the best.
thanks man the command worked
i would get an integrity error though when i used it
these are exact error msgs
bzip2: (stdin): trailing garbage after EOF ignored
gpg: WARNING: message was not integrity protected
tar: Child died with signal 13
tar: Error exit delayed from previous errors
Does anyone know how to integrity protect a gpg encrypted file?
I keep getting this message once i decrypt the archive file
Quote:
gpg: WARNING: message was not integrity protected
i'm sorry i've found out that this message comes out only when not using a public key for encryption, the -c makes it a conventional encryption and supposedly this is a normal message when using it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.