B2_Command_Line_Tool icon indicating copy to clipboard operation
B2_Command_Line_Tool copied to clipboard

permission denied

Open perochak opened this issue 1 year ago • 2 comments

Hi

I am using tool like below

wget -q https://github.com/Backblaze/B2_Command_Line_Tool/releases/latest/download/b2-linux -O /usr/bin/backblaze chmod +x /usr/bin/backblaze

backblaze authorize-account xxx xxx

and it gives error

Failed to execv() /tmp/staticx-pDHABe/b2: Permission denied

Any help

perochak avatar Dec 15 '22 08:12 perochak

You are trying to run it on a system that doesn't allow the pre-packaged linux binary release to unpack and run it's temporary files in /tmp. You should either allow it to write to and and execute in /tmp or you should use a different release (for example the one from pip, which is a bit faster anyway).

ppolewicz avatar Dec 15 '22 14:12 ppolewicz

You could also recompile b2 with pyinstaller and use --runtime-tmpdir https://pyinstaller.org/en/v3.6/operating-mode.html?highlight=%2Ftmp#how-the-one-file-program-works

Depending on the CI pipeline, this should be possible. Just need to come up with a standard path for temporary files :(

jordantrizz avatar Jun 10 '23 05:06 jordantrizz