simonclausen / dnscrypt-autoinstall

Automatic installation and configuration of DNSCrypt (on Debian + Redhat like systems). This script will install DNSCrypt and configure it to start on boot and use an optional dnscrypt service.
Other
224 stars 73 forks source link

Cannot create directory (Debian testing) #73

Closed gerroon closed 8 years ago

gerroon commented 8 years ago

gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 54A2 B889 2CC3 D6A5 97B9 2B6C 2106 27AA BA70 9FE1 Subkey fingerprint: 0C79 83A8 FD9A 104C 6231 72CB 62F2 5B59 2B6F 76DA /xxxxx/dnscrypt-autoinstall/libsodium-1.0.8 /xxxxx/dnscrypt-autoinstall /xxxxx checking build system type... mkdir: cannot create directory './dnscrypt-autoinstall/cg9021-426': No such file or directory mkdir: cannot create directory './dnscrypt-autoinstall/cg-9021': No such file or directory config.guess: cannot create a temporary directory in ./dnscrypt-autoinstall configure: error: cannot guess build type; you must specify one /xxxxx/dnscrypt-autoinstall /xxxxx % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

gerroon commented 8 years ago

Nevermind.

I had to run "sudo -u user" as root to make it work. Standard sudo does not work, at least it did not work for me.

AladW commented 8 years ago

As what user did you initially run the script, and in what directory?

gerroon commented 8 years ago

I initially run as my normal user`s sudo but that did not work if I remember right.

AladW commented 8 years ago

Yeah, the script itself calls sudo when it needs to due to #10. Running it directly with root privileges is a bad idea, not sure how that could even happen.

simonclausen commented 8 years ago

@AladW, any need to do anything further with this in your opinion?

AladW commented 8 years ago

Not sure what else there is to do here without further information, so this can be closed. Similar issues should be covered when #64 is implemented.