Does unix has password protection for zip files?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Does unix has password protection for zip files?
# 1  
Old 02-18-2004
Question Does unix has password protection for zip files?

How to set password in zip files under unix?

There are password protection available in various os.
Does unix has password protection for zip files?

Is zip and gzip command has it?
# 2  
Old 02-18-2004
a better way to "protect" a zip file would be to change is permissions. search here for "file permissions" and you will get lots of examples, and different methods to accomplish your goal.

a password protected zip file, like in windows would be a bad idea in a unix OS. this is for two main reasons that i can think of. one, the password protection would depend upon the program you are using to access the zip file. so, write a program that dosnt honor the password protection. two, is that it would muck up the whole unix way of doing things. at the command line, every common utility is designed to take input, and give ouput. so every command can work together (using a pipe |, for example) in a shell script. if someone had a script that unzipped a zip file, having it password protected would mess up the whole thing.

so anyway, my point is: use the built in security measures that unix OSs have.
# 3  
Old 02-19-2004
Question Is there Password Protection in gzip.

Is there Password Protection in gzip.
# 4  
Old 02-19-2004
There is nothing worse than impatience.
Quote:
Is there Password Protection in gzip.
I think you failed to understand the point of view expressed. So, for my 2 cents, I will tell you to RTM. Read the man pages and you will have your answer.
man gzip
# 5  
Old 02-19-2004
p, you never responded to your other post either, so I'd guess this is just another homework question?

It usually is when someone refuses to look at the possibilities and requires something to be done only one way. If it irritates you at all to read this, then please explain why you need things this way so badly.
# 6  
Old 02-19-2004
Hi ALL,

Thanks for the replies.

I think, I 'm not clear in my question.

Let me try again.


gzip doesn't support password protection.

But to set password protected, unix has crypt , pgp, gpg and so on.

I just require how does those encrytion can be done in gzip.

As a way like on guzip or gzip -d , I can get a password request prompt and thus decrypt the file.

Is this can be done?
Or
Do I need to go with encrypt & gzip and gunzip & decrypt?
# 7  
Old 02-19-2004
if it is more then 1 file.

gzip then encrypt.

if it is 1 file just encrypt.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

HP-UNIX How to zip/compress files in a folder?

Environment: HP-Unix Operating System B.11.31 U ia64 I have a folder with around 2000 files. There are some files which sizes are more than 8 GB. I need to compress all the files in the folder into a single file, so that I can transfer the file. I tried with tar command, but the tar... (8 Replies)
Discussion started by: Siva SQL
8 Replies

2. Shell Programming and Scripting

How to create zip/gz/tar files for if the files are older than particular days in UNIX or Linux?

I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also? I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies

3. UNIX for Dummies Questions & Answers

password protect a CSV file: better solution than ZIP password?

Hi We send *.csv with sensitive data to our customers. Our customers open those files with Excel. A new requirement is that we password protect those CSV files. I thought to pack them with ZIP and assign a password to the archive. But Solaris 10 can't encrypt ZIP files. $ zip -P... (12 Replies)
Discussion started by: slashdotweenie
12 Replies

4. Shell Programming and Scripting

Password protection in unix

How to create a file in UNIX which is password protected ? Thanks and Regards, Neeraj (5 Replies)
Discussion started by: neeraj617
5 Replies

5. Shell Programming and Scripting

uuencode - .csv file password protection

HI, Can we add password protection for attachment of .CSV file in below command or any alternative solution. uuencode ../reports/gtsa_lmt_pb_rfs_daily.txt gtsa_lmt_pb_rfs_daily-$FILDTE.csv |mailx -s "gtsa_lmt_pb_rfs_daily" $MAILTO Many thanks regards, Sampath (4 Replies)
Discussion started by: Sampath.Rachcha
4 Replies

6. Shell Programming and Scripting

Password Protection using Term::ReadKey

Hi Friends, I execute a perl script with password as input but i wish not to print the password when i give the input. Instead when i provide the password it could be shown as "****" instead of original password. I know we can use Term::ReadKey or IO::Prompt for this, but just wanted to know if... (0 Replies)
Discussion started by: nmattam
0 Replies

7. UNIX for Dummies Questions & Answers

Zip file with password protection

I am trying to zip a file with password protection. I have read all or atleast most of the threads on the website, but couldn't come up with a solution. I am running ZIP version 2.3 on HP-UX but I dont see the -P (password) option. I read somewhere that free versions of zip don't come with... (5 Replies)
Discussion started by: pintu
5 Replies

8. Shell Programming and Scripting

Unix Zip files

I'm novice to unix I have a zip file on unix this zip files contains n dat files and n pdf files. how to find out how many files are in the zip file (n+n, seprate counts of dat files and pdf files) how can i assign each and every filename to a variable. Any help would be greatly... (1 Reply)
Discussion started by: ramky79
1 Replies

9. UNIX for Dummies Questions & Answers

Syntaxt to zip a file with password protection

Hi Experts, I am an SAP ABAP developer and compleatly stranger to unix and I need a help to extend a small peice of code. Our requirement is to zip a file with password protection in a specified directory. Following is the code I am using to zip a file ZZZZ.TXT. Here YYYY = is the path... (3 Replies)
Discussion started by: veeru4all
3 Replies

10. AIX

File password protection/encryption

Can it be done? Ive read in a few places that the crypt program no longer exists on AIX...if its do-able please tell me how. (2 Replies)
Discussion started by: rdudejr
2 Replies
Login or Register to Ask a Question