Unrar doesn't prompt for password

Questions about applications and software
Forum rules
Before you post please read this

Unrar doesn't prompt for password

Postby mike.balut on Wed Aug 17, 2011 6:42 pm

Ok, when I try to right click on a password protect rar file, I just get the CRC error right away...never prompted for a password. I searched but apparently no one else has this issues? Any help appreciated.
mike.balut
Level 1
Level 1
 
Posts: 4
Joined: Wed Aug 17, 2011 6:32 pm

Linux Mint is funded by ads and donations.
 

Re: Unrar doesn't prompt for password

Postby xenopeek on Thu Aug 18, 2011 1:53 am

Try running unrar from the terminal. There is a -p switch to set the password to use. So basically:
Code: Select all
unrar e -ppassword file

where password is your password, and file the name of the .rar file. This should unrar to current directory. If this also gives CRC error, something is wrong with the file.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Unrar doesn't prompt for password

Postby ThistleWeb on Thu Aug 18, 2011 4:27 am

There's also a difference between varieties or rar file. It's an ever changing format that targets paid archive Winrar on Windows. There is a free and non-free version of unrar in the repos. The non-free one includes more formats that it can read and uncompress. There may be times where the file has been created in the latest version of Winrar and no Linux unrar will recognize it yet. Those could show themselves in silly things like not prompting for a password.
Crivens!
User avatar
ThistleWeb
Level 5
Level 5
 
Posts: 900
Joined: Fri Mar 25, 2011 9:59 am
Location: Scotland

Re: Unrar doesn't prompt for password

Postby mike.balut on Fri Aug 19, 2011 8:21 am

Vincent Vermeulen wrote:Try running unrar from the terminal. There is a -p switch to set the password to use. So basically:
Code: Select all
unrar e -ppassword file

where password is your password, and file the name of the .rar file. This should unrar to current directory. If this also gives CRC error, something is wrong with the file.


thanks, I've used that command, it was my lazy half who just wants to right click!

and it's not the file, it does it for all password protected rar's....I did read that this is a bug and the newer release fixes it, but it's not in the repos
mike.balut
Level 1
Level 1
 
Posts: 4
Joined: Wed Aug 17, 2011 6:32 pm

Re: Unrar doesn't prompt for password

Postby Ellwood on Tue Feb 14, 2012 1:10 pm

I think there is a problem somewhere because I've just come from ubuntu 10.04 where I've been able to open a header encrypted rar file with file-roller or with mc.

On LMDE I do

rar a -p test *png

and I am able to open de file test.rar with file-roller, mc or xarchiver.

But if I do

rar a -hp test *png

I am only able to deal with test.rar on the command line because file-roller, mc or xarchiver won't be able to open it. I think there is something wrong somewhere, I don't know what can it be. In older linux it worked, looks wrong to me that it stopped working.
Ellwood
Level 1
Level 1
 
Posts: 24
Joined: Mon Feb 13, 2012 9:28 am

Re: Unrar doesn't prompt for password

Postby gosa on Wed Feb 15, 2012 4:07 am

I've also noticed this problem (with not getting the option of entering any password).

For me this seems to happen if I try to extract multiple password-protected files where some of them has different passwords:

File 1 - unprotected (extracts without problem)
File 2 - password "xy" (extracts without problem)
File 3 - password "yz" (error)

It's like the program tries to use the last password used, and when that one doesn't match the next file it returns an error instead of offering the option of entering a new password. This is usually "reset" by rebooting, but that is kind of inconvenient at times.

I kind of gave up and downloaded 7-zip portable instead that I'm running through wine. (I have a whole folder with my preferred portable windows apps, with menu entry and all)
gosa
Level 4
Level 4
 
Posts: 304
Joined: Mon Nov 01, 2010 5:12 am
Location: Spain

Re: Unrar doesn't prompt for password

Postby Ellwood on Wed Feb 15, 2012 6:13 am

I've just tested:

The file test.rar produced on LMDE is opened without any problem on Ubuntu 10.04 using file-roller even when the RAR version is older on 10.04.
Ellwood
Level 1
Level 1
 
Posts: 24
Joined: Mon Feb 13, 2012 9:28 am

Re: Unrar doesn't prompt for password

Postby Ellwood on Wed Feb 15, 2012 6:30 am

gosa wrote:I kind of gave up and downloaded 7-zip portable instead that I'm running through wine. (I have a whole folder with my preferred portable windows apps, with menu entry and all)


I've tried it but right now it is not possible to install wine on LMDE.
Ellwood
Level 1
Level 1
 
Posts: 24
Joined: Mon Feb 13, 2012 9:28 am

Re: Unrar doesn't prompt for password

Postby gosa on Wed Feb 15, 2012 8:11 am

Ellwood wrote:
gosa wrote:I kind of gave up and downloaded 7-zip portable instead that I'm running through wine. (I have a whole folder with my preferred portable windows apps, with menu entry and all)


I've tried it but right now it is not possible to install wine on LMDE.


- No?

The post by lmdeman in this thread works perfectly for me running LMDE with UP3:
http://forums.linuxmint.com/viewtopic.php?f=190&t=76928#p447869
gosa
Level 4
Level 4
 
Posts: 304
Joined: Mon Nov 01, 2010 5:12 am
Location: Spain

Re: Unrar doesn't prompt for password

Postby Ellwood on Wed Feb 15, 2012 9:01 am

gosa wrote:
Ellwood wrote:
gosa wrote:I kind of gave up and downloaded 7-zip portable instead that I'm running through wine. (I have a whole folder with my preferred portable windows apps, with menu entry and all)


I've tried it but right now it is not possible to install wine on LMDE.


- No?

The post by lmdeman in this thread works perfectly for me running LMDE with UP3:
http://forums.linuxmint.com/viewtopic.php?f=190&t=76928#p447869


I've got it. Just downloaded the source, compiled and installed it. That is a good thing about LMDE, everything I tried to gets compiled easily.
Ellwood
Level 1
Level 1
 
Posts: 24
Joined: Mon Feb 13, 2012 9:28 am

[SOLVED] Unrar doesn't prompt for password

Postby Ellwood on Sat Feb 18, 2012 5:48 am

Here is my solution:


sudo aptitude update

sudo aptitude upgrade

sudo aptitude purge rar unrar

wget http://ftp.uk.debian.org/debian/pool/no ... 1_i386.deb

sudo dpkg -i rar_3.9.3-1_i386.deb

sudo aptitude hold rar


The downloaded RAR is the one from Squeeze.

file-roller will work again as you planed.
Last edited by Ellwood on Tue Feb 21, 2012 3:25 pm, edited 1 time in total.
Ellwood
Level 1
Level 1
 
Posts: 24
Joined: Mon Feb 13, 2012 9:28 am

Re: [SOLVED] Unrar doesn't prompt for password

Postby dragangavri on Sun Feb 19, 2012 3:16 pm

Ellwood wrote:Here is my solution:


sudo aptitude update

sudo aptitude upgrade

sudo aptitude purge rar unrar

wget http://ftp.uk.debian.org/debian/pool/no ... 1_i386.deb

sudo dpkg -i rar_3.9.3-1_i386.deb

sudo aptitude hold rar


The downloaded RAR is the one from Squeeze.

file-roller will work again as you planed.


I noticed that File-Roller can not handle password protected rar archives any more, but it was not a big deal because I use Krusader (yeas, I'm under Gnome but I like Krusader) and Krusader had no such problem. Seems strange because both File-Roller and Krusader use same unrar program, but sometimes computers behave in strange way.

I followed your solution and find myself in trouble. I just purged Unrar when noticed that you're referring to commercial Rar program. I don't won't shareware on my LMDE so I reinstalled Unrar-free by Synaptic. To my surprise File-Roller started working properly but Krusader can not unrar archives no more, no matter are they password protected or not. He just gives an error: invalid option –y.

Now I'm confused: Do not know how to tell to krusader how to unpack. Reinstalling Krusader is an option but probably will not help. Maybe update pack 4 will bring Krusader 2.4.0?
dragangavri
Level 1
Level 1
 
Posts: 2
Joined: Sun Feb 19, 2012 3:10 pm

Re: [SOLVED] Unrar doesn't prompt for password

Postby Ellwood on Mon Feb 20, 2012 3:53 pm

dragangavri wrote:I noticed that File-Roller can not handle password protected rar archives any more, but it was not a big deal because I use Krusader (yeas, I'm under Gnome but I like Krusader) and Krusader had no such problem. Seems strange because both File-Roller and Krusader use same unrar program, but sometimes computers behave in strange way.

I followed your solution and find myself in trouble. I just purged Unrar when noticed that you're referring to commercial Rar program. I don't won't shareware on my LMDE so I reinstalled Unrar-free by Synaptic. To my surprise File-Roller started working properly but Krusader can not unrar archives no more, no matter are they password protected or not. He just gives an error: invalid option –y.

Now I'm confused: Do not know how to tell to krusader how to unpack. Reinstalling Krusader is an option but probably will not help. Maybe update pack 4 will bring Krusader 2.4.0?


I gave you an Idea that worked for me. With the same Idea instead using RAR from Squeeze you could use Unrar-free from Squeeze.

I wouldn't hesitate to reinstall, to reconfigure, to purge and reinstall again, etc, anything that could fix it, above all because LMDE is mainly Debian Testing and we are the testers.

It is true that aptitude deals with the dependencies differently, some say more efficiently but I think that in a Testing environment it can give you some surprises too, anyway Aptitude is may favourite installer and I'll keep using it.
Ellwood
Level 1
Level 1
 
Posts: 24
Joined: Mon Feb 13, 2012 9:28 am

Re: Unrar doesn't prompt for password

Postby dragangavri on Mon Feb 20, 2012 5:41 pm

Usually, I don't mind reinstalling, purging or whatever, I mean, what can possibly goes wrong besides totally ruining whole system ;-) Only, it may not be a proper moment: I hope that update pack will come soon and major updates may fix system. They may broke thing or two but most of the time they are improvement.
dragangavri
Level 1
Level 1
 
Posts: 2
Joined: Sun Feb 19, 2012 3:10 pm

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 5 guests