![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running UNIX commands remotely in Windows box from Unix box – avoid entering password | D.kalpana | UNIX for Dummies Questions & Answers | 1 | 04-20-2007 05:24 AM |
| File password protection/encryption | rdudejr | AIX | 2 | 07-09-2006 06:43 PM |
| copy files without password in script | jwala | Shell Programming and Scripting | 0 | 02-12-2006 01:10 PM |
| Directories and Files Protection in Apache Server | crazycelicagts | UNIX for Dummies Questions & Answers | 2 | 07-24-2002 01:44 PM |
| Virus Protection for Unix Web Servers | Karen Stone | Security | 2 | 01-08-2002 05:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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? |
|
||||
|
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. |
|
|||||
|
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. |
|
||||
|
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? |
|
||||
|
if it is more then 1 file.
gzip then encrypt. if it is 1 file just encrypt. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|