Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > tar.gz file with password

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-01-2005   #1 (permalink)
Just Joined!
 
Join Date: Apr 2005
Posts: 1
tar.gz file with password

Code:
# tar cf file.tar file
# gz -9 file.tar
that's the command when compressing file to tar.gz format but it CAN NOT archieving file with password, not like when i used winzip or winrar in windows os. so, how to compressing file to tar.gz format but with password.

and how to do it in tar.bz2 format (compressing file to tar.bz2 with password) ?

thank for the help
moron is offline  


Reply With Quote
Old 06-01-2005   #2 (permalink)
Linux Engineer
 
Join Date: Aug 2004
Posts: 826
gz isn't a command on my computer, though it might be on yours. To gzip a file do
Code:
$ gzip file.tar
and to bzip2 it do
Code:
$ bzip2 file.tar
There shouldn't be a password required to compress a file.
sether is offline   Reply With Quote
Old 06-02-2005   #3 (permalink)
Just Joined!
 
Join Date: Feb 2005
Location: Noplace Interesting
Posts: 76
It seems like you're trying to encrypt the archive with a password. Try-
gpg -c <file_name>
gpg should ask you for a passphrase (aka password).
To decrypt->
gpg <file_name>.gpg
Again gpg, will ask you for a passphrase to decrypt the file.
Oh, and to make .bz2 files try
tar -cjvf <output_file> <input_file>
Chromatic Distortion is offline   Reply With Quote
Old 06-02-2005   #4 (permalink)
Linux Engineer
 
Join Date: Aug 2004
Posts: 826
Oh, oops, I forgot about the password thing.

/me runs and hides
sether is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:46 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2