Here the solution
tayobello I know it's old, but here the solution for need:
Finding .htusers.php file in
cd /var/www/22222/htdocs/files/config
Now you can check the .htusers.php file
ls -a
Generate MD5 string as the temporary password
echo -n "yourPassword" | md5sum
ff85305ab86ceff0f59877358928d81d -
Copy the string except dash (-).
Edit .htusers.php file
nano .htusers.php
Replace the highlighted part with your MD5 string and save the file:
<?php
// ensure this file is being included by a parent file
if( !defined( 'JEXEC' ) && !defined( 'VALID_MOS' ) ) die( 'Restricted access' );
$GLOBALS["users"]=array(
array('admin','$2a$08$XUBUWATb7lFNxiu2/FfvPuNedIqJ/hN8YIoV5Uo5OI8T6ulnMr6ci','/var/www','http://localhost'$
);
?>