Gekko Forum
authorization - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Support (https://forum.gekko.wizb.it/forum-19.html)
+--- Thread: authorization (/thread-56878.html)



authorization - emelyanko - 04-23-2018

hi

all settings took from here, everything works except for authorization

input of command:
Code:
printf "emelyan:`openssl passwd -apr1`\n" >> /etc/nginx/.htpasswd

yields the result:
Quote:Password: 
Verifying - Password: 
-bash: /etc/nginx/.htpasswd: Permission denied


these commands add a user and a password:
Code:
sudo sh -c "echo -n 'username:' >> /etc/nginx/.htpasswd"
sudo sh -c "openssl passwd -apr1 >> /etc/nginx/.htpasswd"

these commands add a user and a password too:

Code:
sudo htpasswd -c /etc/nginx/.htpasswd username
sudo htpasswd /etc/nginx/.htpasswd another_user

but the result in all cases is: attach

What did I do wrong?