[SOLVED] Unraid Admin Pw not accepted - Forgot pw steps do not resolve issue -


Recommended Posts

The Facts. 

 

When to login one day. PW failed. I use a PW manager. Thought maybe my PW manager was corrupted. Checked backup. PW was correct. 

 

Followed the steps listed in Password Recovery. Issues persists. 

 

After following these above steps. Unraid login UI presents the following errors 

 

Warning: file(/etc/nginx/htpasswd): failed to open stream: No such file or directory in /usr/local/emhttp/login.php on line 23

Warning: Invalid argument supplied for foreach() in /usr/local/emhttp/login.php on line 23

 

SSH into the server with ROOT and null as PW. 

nano /usr/local/emhttp/login.php

 

line 23 

 

foreach (file('/etc/nginx/htpasswd') as $strCredentials)

 

/etc/nginx/htpasswd -  no such file or directory.

ls -a  - nope

find: ‘htpasswd’: No such file or directory

 

 it looks like I lost/destroyed/corrupted this file somehow. 

 

Final attempt - from the console on the server login as ROOT - "passwd" - change root PW... PW accepted. Restart. Issue persists.

 

Possible Solutions. 

 

  • Create a new install on a new USB.. My current usb is about 5 years old. I have not researched what the effects of this would be. 
  • Darsy Posted March 5, 2020 https://forums.unraid.net/topic/88712-i-cant-login/ (highly unrecommended by admin team... however does work). 
  • Create the htpasswd file directly on the USB. Not sure what this would entail
  • Change line 23 to point to a different dir. Unsure of the ramifications 

 

Side Note - Did not solve problem

   

 

 

Thanks in advance... Open to all helpful suggestions, comments, and/or questions.

 

Edited by icarus44_zer0
updated troubleshooting steps
Link to comment
  • JorgeB changed the title to [SOLVED] Unraid Admin Pw not accepted - Forgot pw steps do not resolve issue -

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.