Unable to reset OpenLiteSpeed WebAdmin Console password


New Member
I've made multiple attempts via both /usr/local/lsws/admin/misc/admpass.sh and /usr/local/lsws/admin/misc/lsup.sh -a, always receiving the confirmation:
Administrator's username/password is updated successfully!
But attempting to log in produces an error:
Invalid credentials.
As per a suggestion on my StackOverflow post, I checked the hash via cat /usr/local/lsws/admin/conf/htpasswd before and after resetting, and it is changing, but still doesn't work on the WebAdmin login page.



May I know which OpenLiteSpeed version it is? And please raise a ticket with litespeed for support if you can reproduce it.



New Member
I just encountered the same issue with an OLS install on a Vagrant Bento/Ubuntu-18.04 box.
(I did a fresh install following these instructions: https://openlitespeed.org/kb/install-ols-from-litespeed-repositories/)

My server error log (/usr/local/lsws/logs/error.log) revealed permission problems:

[NOTICE] [(serverip):51533:HTTP2-45#_AdminVHost] [STDERR] PHP Warning: fopen(/usr/local/lsws/admin/conf/htpasswd): failed to open stream: Permission denied in /usr/local/lsws/admin/html.open/lib/CAuthorizer.php on line 227

Solution for me was to change/open up permissions for htpasswd from 600 to 644, i.e.

chmod 644 /usr/local/lsws/admin/conf/htpasswd


Active Member
Normal installation should be 600. But the own is lsadm/lsadm.
And lsadm should belong to two groups.

root@ubuntu-s-DDD:/usr/local/lsws/admin/conf# ll
total 76
drwxr-xr-x 2 lsadm lsadm 4096 May 11 13:41 ./
drwxr-xr-x 9 root root 4096 May 11 13:41 ../
-rw-r--r-- 1 lsadm lsadm 648 May 8 00:46 admin_config.conf
-rw-r--r-- 1 root root 648 May 11 13:41 admin_config.conf0
-r--r--r-- 1 root root 871 May 11 13:41 admin_config.conf0,v
-rw------- 1 lsadm lsadm 41 May 11 13:42 htpasswd
-rw------- 1 lsadm lsadm 529 May 8 00:46 jcryption_keypair
-rw-r--r-- 1 lsadm lsadm 38186 May 8 00:46 php.ini
-r-------- 1 lsadm lsadm 1257 May 11 13:41 webadmin.crt
-r-------- 1 lsadm lsadm 1675 May 11 13:41 webadmin.key
root@ubuntu-s-DDD:/usr/local/lsws/admin/conf# id lsadm
uid=997(lsadm) gid=998(lsadm) groups=998(lsadm),65534(nogroup)

Can you tell me how did you install it?