Htpasswd task failed

Hi Team,

Please let me know why my task failed. I am sharing my task screen-shots.
Steps which I have did :

  1. htpasswd -c /home/banner/webpass javed

  2. chown apache: /home/banner/webpass
    chmod 640 /home/banner/webpass

  3. vi /var/www/html/.htaccess
    Add following code into it
    AuthType Basic
    AuthName “Restricted Access”
    AuthUserFile /home/banner/webpass
    Require user javed

  4. copy file from jump host to documet root directory under itadmin folder.

Please anyone share your feedback for this task where i went wrong.

Thanks :slight_smile:

Hi @vijay.thakur0909

In your original answer you created the password file under /home/banner however you added /home/javed as path of the file in your htaccess file hence it failed.