The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 02-18-2004
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
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.