Linux remove password from rar files

linuxpasswordsrar

I have some password protected .rar files. I have the password. I want to remove the password from my files. I mean I want .rar files with the same name without password.

My Linux OS has unrar and rar packages installed.

Is it possible to do it with a single line script?!

Thanks

Best Answer

Some answers you could find here, which are generally sound. And the very popular answer is also here. You have to decompress and then recompress into a new RAR file. Then simply delete the old encrypted file and you've got yourself a fresh new RAR package without the unneeded password.

Create a new unprotected RAR file (e.g. containing an empty folder), then open the old protected one. Now drag the files into the new unprotected RAR. No extracting needed.

Or you can open the archive then rightclick on the file and choose "set default password" and then enter the password, this way you will never have to enter the password again anytime you want to open the file.

Related Question