authorization
#1
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?


Attached Files
.png   screen.png (Size: 164.51 KB / Downloads: 8)
  Reply


Messages In This Thread
authorization - by emelyanko - 04-23-2018, 07:50 AM

Forum Jump:


Users browsing this thread: