Unrar: Fixing permissions

Get help, report and discuss bugs.
Post Reply
pinn
Posts: 3
Joined: 01 Dec 2018, 09:05

Unrar: Fixing permissions

Post by pinn » 12 Jan 2019, 10:45

Hi,

Running on debian and since install have been getting the following errors:

WARNING Sat Jan 12 2019 10:42:22 Direct unpack for Txxxxx failed
ERROR Sat Jan 12 2019 10:42:22 Unrar error code: 254
ERROR Sat Jan 12 2019 10:42:22 Unrar: Could not start /opt/nzbget/unrar: Permission denied
WARNING Sat Jan 12 2019 10:42:22 Unrar: Fixing permissions for/opt/nzbget/unrar

I had this same build installed previously and followed same set up instructions (from here: https://discourse.osmc.tv/t/how-to-inst ... y-pi/71601) so unsure what is going on.

Any help would be greatly appreciated.

Ta

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: Unrar: Fixing permissions

Post by sanderj » 12 Jan 2019, 17:16

From the shell / command line, run:

Code: Select all

/opt/nzbget/unrar
... what is the result?

what is the output of

Code: Select all

ls -al /opt/nzbget/unrar

pinn
Posts: 3
Joined: 01 Dec 2018, 09:05

Re: Unrar: Fixing permissions

Post by pinn » 12 Jan 2019, 17:35

/opt/nzbget/unrar
= -bash: /opt/nzbget/unrar: Permission denied

osmc@htpc:~$ ls -al /opt/nzbget/unrar
-rwxr-x--- 1 1001 1001 721984 Jun 6 2018 /opt/nzbget/unrar

So it appears I don't have the required remission as the error msg suggested - how could I change this? - sorry complete noob with linux

Thanks

edit -

think I got it

sudo chown -R osmc:osmc /opt/nzbget/unrar
now I get the following when running /opt/nzbget/unrar
UNRAR 5.50 freeware Copyright (c) 1993-2017 Alexander Roshal

Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>

<Commands>
e Extract files without archived paths
l[t[a],b] List archive contents [technical[all], bare]
p Print file to stdout
t Test archive files
v[t[a],b] Verbosely list archive contents [technical[all],bare]
x Extract files with full path

<Switches>
- Stop switches scanning
@[+] Disable [enable] file lists
ad Append archive name to destination path
ag[format] Generate archive name using the current date
ai Ignore file attributes
ap<path> Set path inside archive
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
id[c,d,p,q] Disable messages
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
n<file> Additionally filter included files
n@ Read additional filter masks from stdin
n@<list> Read additional filter masks from list file
o[+|-] Set the overwrite mode
ol[a] Process symbolic links as the link [absolute paths]
or Rename files automatically
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
sc<chr>[obj] Specify the character set
sl<size> Process files with size less than specified
sm<size> Process files with size more than specified
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts[m|c|a] Save or restore file time (modification, creation, access)
u Update files
v List all volumes
ver[n] File version control
vp Pause before each volume
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files listed in specified list file
y Assume Yes on all queries

sanderj
Posts: 184
Joined: 10 Feb 2014, 21:46

Re: Unrar: Fixing permissions

Post by sanderj » 12 Jan 2019, 19:52

Looks good.

Does it work now from nzbget?

pinn
Posts: 3
Joined: 01 Dec 2018, 09:05

Re: Unrar: Fixing permissions

Post by pinn » 12 Jan 2019, 20:24

Yeah, seems sorted. Cheers!

Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests