Permission denied when installing


#1

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 deb.globaleaks.org, but then I get the following result

install-globaleaks.sh: 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


#2
  1. are you making install-globaleaks.sh 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 install-globaleaks.sh

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

Fabio


#3

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:
wget https://deb.globaleaks.org/install-globaleaks.sh
chmod +x install-globaleaks.sh
./install-globaleaks.sh

I get the error I was talking about (install-globaleaks.sh: 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


#4

Can you execute the install-globaleaks.sh with the debugging information:

bash -x ./install-globaleaks.sh

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


#5

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


#6

try

wget https://deb.globaleaks.org/install-globaleaks.sh
chmod +x install-globaleaks.sh
bash -x ./install-globaleaks.sh


#7

it’s always the same response

After connecting to deb . globaleaks . org I get the error install-globaleaks.sh: Permission denied

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


#8

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

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

2018-08-23 15:17:06 (739 KB/s) - ‘install-globaleaks.sh’ 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 ?


#9

by moving to /tmp it executed without errors


#10

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?


#11

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


#12

Im getting Failed: Connection Refused.


#13

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


#14

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


#15

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


#16

Eh yes, you must execute the install-globaleaks.sh 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 https://slack.hermescenter.org where to interactively help you out! :slight_smile:

Fabio


#17

Dear Fabio

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