Jump to content
Sign in to follow this  
Raptor2k

Unraid 6.7.2: Unzip password protected zip files

4 posts in this topic Last Reply

Recommended Posts

Hello,

 

i want to unzip my keyfile which i downloaded from a remote ftp server. But unfortunately i got an error:

 

root@nas:~# unzip keyfile.zip
Archive:  keyfile.zip
   skipping: keyfile                 need PK compat. v5.1 (can do v4.6)

I assume that i need to upgrade the program unzip to version 5.1?

But i do not know how to upgrade or install a new program inside my unraid container.

(i also wanted to use p7zip but failed)

 

Acces is gained via Putty / Bash.

 

Thanks for your answers and help.

 

Kind regards

Raptor2k ;)

Share this post


Link to post
On 9/10/2019 at 4:50 PM, Squid said:

NerdPack plugin

Ah great this works.

 

so i have added a new line in my "go" config. But can you or somebody help me why the server only downloads the 7z file and do not extract it at startup?

 

Go file with my censored logins / passwords (censored "xxx"):

Quote

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &
ethtool -s eth0 wol g

wget --user=xxxx --password='xxx' ftp://xxx/keyfile.7z  -O /root/keyfile.7z
sleep 10
7z e keyfile.7z -pxxx

By the way inside the unraid terminal or with putty the line to extract the 7z works flawlessly.

 

Thx for your answers.

Kind regards

Raptor2k

Share this post


Link to post

omg  i achieved it:

 

I have to give the 7z script the exact path for extracting:

 

Here for the community my solution:

 

Script for go File "Download encrypted keyfile, extract it on unraid server"

Quote

wget --user=xxx --password='xxx' ftp://xxx/keyfile.7z  -O /root/keyfile.7z
sleep 1
7z e /root/keyfile.7z -xxx -O/root/

 

Edited by Raptor2k

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this