openXS
07-30-2004, 04:27 AM
I've a Dual Xeon with Fedora Core 1.
I just downloaded my MySQL databse in a .gz format. But the gz file is password protected.
How do I extract it or say how do I resotre the db as the file is password protected?
Any help greatly appreciated.
hostbox
07-30-2004, 06:51 AM
does tar xvf file.tar asks you for a password? If you don't have the password you can say goodbye or get a hacker. ;)
Paste what you typed and what was output. Neither tar nor gzip support passwords directly afaik.
openXS
07-30-2004, 07:56 AM
ah sorry! its a zip file (.zip)
Cirrostratus
07-30-2004, 08:34 AM
Try reading the man page.
man unzip
-P password
use password to decrypt encrypted zipfile entries (if any).
THIS IS INSECURE! Many multi-user operating systems provide
ways for any user to see the current command line of any other
user; even on stand-alone systems there is always the threat of
over-the-shoulder peeking. Storing the plaintext password as
part of a command line in an automated script is even worse.
Whenever possible, use the non-echoing, interactive prompt to
enter passwords. (And where security is truly important, use
strong encryption such as Pretty Good Privacy instead of the
relatively weak encryption provided by standard zipfile utili-
ties.)