04-23-2018, 07:50 AM
hi
all settings took from here, everything works except for authorization
input of command:
yields the result:
these commands add a user and a password:
these commands add a user and a password too:
but the result in all cases is: attach
What did I do wrong?
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?