Permission denied when installing


Hello everyone. I am new to Global Leaks. I am trying to install on server, but after running the command for installation on the terminal It connects to, but then I get the following result Permission denied

What could this depend on? Any insights? What information do you need to help me find a solution?

Thank you a lot for your help

  1. are you making executable by “chmod +x” before executing it?

  2. If so, could you send a debug printout by issuing the command and pasting the output here:
    bash -x

  3. Which exact version of operating system are you using?



Hello Fabio

By your name I assume you are Italian. If so let me know and we can speak in Italian (I’m Italian myself)

To answer your questions, from the documentation it says to use these lines of code:
chmod +x

I get the error I was talking about ( Permission denied) after executing the first line of code, and therefore BEFORE executing the command chmod +x

Server: Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-121-generic x86_64)

I hope you can give me some insight

Thank you


Can you execute the with the debugging information:

bash -x ./

Then report here the output so we can debug it?

Btw, it’s useful to uses Ubuntu 18.04 LTS rather than 16.04, as we’re looking forward the new LTS ubuntu


If I try to execute bash -x ./ it says No such file or directory



chmod +x
bash -x ./


it’s always the same response

After connecting to deb . globaleaks . org I get the error Permission denied

and then after that (when it tries to execute chmod +x I get the message Cannot write to ‘’ (Success), and it therefore does not even try to execute the bash code


Just tested that the server is fine:
–2018-08-23 15:17:05--
Resolving (…
Connecting to (||:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 51564 (50K) [text/plain]
Saving to: ‘’

100%[========================================================================================>] 51,564 --.-K/s in 0.07s

2018-08-23 15:17:06 (739 KB/s) - ‘’ saved [51564/51564]

So there’s a local problem on your computer, where you don’t have writing permission in the folder you are executing the command line.

Try to move to /tmp/ and re-execute ?


by moving to /tmp it executed without errors


Does this mean that I can consider it to be installed? or was this just a test to make sure that the problem was with permissions?


There surely was a problem with the permission of the “current work directory” where you was downloading the installation script.

Btw if it’s installed successfully or not, it’s the output of installation script to tell you.

You can also check by the debian packaging command:
dpkg -l | grep -i globaleaks

That way you can see if it’s installed into the system


Im getting Failed: Connection Refused.


@taipo: the server is currently under maintenance, will be back online by the end of the morning.


@taipo: the server is back up working! thank for your patience!


now, if I move to tmp folds I am able to install, but when I execute the command ./
I get an error message: Error: GlobaLeaks install script must be run by root


Eh yes, you must execute the script as root or under sudo, because it must install debian packages.
Would you try to first su to root or execute with sudo?

Then if you wish join slack where to interactively help you out! :slight_smile:



Dear Fabio

Thank you for all your time. I was finally able to resolve the issue. It was a problem of permissions indeed.