BookmarkSubscribeRSS Feed
Billybob73
Quartz | Level 8

Hi,

I wonder if it's possible to create a zip file with a password on a SAS Linux server.

 

Right now I have a process that first creates a CSV file on the SAS Linux server, then zips it and then sends it automatically to an e-mail receiver.

This process works and I'm satisfied about.

 

However, my company requires me to password protect the ZIP file ?

I know how this works on a SAS Windows server, but no idea how this works on UNIX / Linux.

 

Anybody ?

 

Thanks !!

Regards

Billy

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

"However, my company requires me to password protect the ZIP file ?" - this is because email is an unsafe, and unsecure method of transmitting data which I can only highly recommend you do not do.  Even password protecting the file will not help - the good old "if a hacker can hack and get the zip mail, they won't be able to intercept the next email with password" - scenario.  Its just a bad idea, and transfer might be corrupt etc.  Use an sftp site or secure web portal for data transfer (or reports), email is not the solution.

 

As for how you would add a password, you would need to be able to access the command line, and call the relevant program file directly, i.e. 7zip.exe with the parameters needed.

r_behata
Barite | Level 11

Have you tried this .

 

zipwpc -JP <pwd> <file_name>.zip <filename>

 

I am not sure if the zipwpc is a separate utility which has to be installed on Unix , but works fine for me.