luca2 Posted April 23, 2017 Share Posted April 23, 2017 Hi, as I wrote in the title I lost my unraid password. I still do have a detailed list of my hard drives (array, cache, etc...) and how they are assigned. I guess the only option left for me is to do a fresh install, right? Pls , let me know if I can do anything else. Rgds. Quote Link to comment
BRiT Posted April 23, 2017 Share Posted April 23, 2017 (edited) I think there may be a FAQ for this, but there are other means. You might be able to plug the USB drive into another computer and then bring up an editor (such as Notepad++) on the following file: /boot/config/shadow On the first line you should see something such as: root:$&$&%*1112233484847648DHD$%.:15477:0:99999:7::: You can try changing that line to the following, essentially delete the content between the first and second semi-colons: root::15477:0:99999:7::: That might make the root user no longer have a password. Save the file, eject the USB Flash Drive, plug in to your unRAID server and try booting. Edited December 11, 2019 by BRiT 1 Quote Link to comment
JorgeB Posted April 23, 2017 Share Posted April 23, 2017 4 minutes ago, BRiT said: I think there may be a FAQ for this It's not in the FAQ, maybe it should? 1 Quote Link to comment
luca2 Posted April 23, 2017 Author Share Posted April 23, 2017 20 minutes ago, BRiT said: I think there may be a FAQ for this, but there are other means. You might be able to plug the USB drive into another computer and then bring up an editor (such as Notepad++) on the following file: /boot/config/shadow On the first line you should see something such as: root:$&$&%*1112233484847648DHD$%.:15477:0:99999:7::: You can try changing that line to the following, essentially delete the content between the first and second semi-colons: root:15477:0:99999:7::: That might make the root user no longer have a password. Save the file, eject the USB Flash Drive, plug in to your unRAID server and try booting. Thx Brit! That worked exactly as you described. Rgds. Quote Link to comment
adoucette Posted October 18, 2018 Share Posted October 18, 2018 Thanks Brit I just had this problem as well -- mis-placed root user password after I had changed it. The method Brit described above does work, but I did need to leave two semicolons after root (vice one), and the value between the 2nd and 3rd semicolons was different (so I left it as it was). root::17810:0:99999:7::: Hope this helps Quote Link to comment
Dstubbs28 Posted January 22, 2019 Share Posted January 22, 2019 So, someone I suggested to use unraid misplaced his root password and told me about this. Please fix this, as it should not be that easy to gain full access to your entire server. Quote Link to comment
itimpi Posted January 22, 2019 Share Posted January 22, 2019 Unraid is not intended to be secured against those who have physical access to the server. You can (if you want) encrypt the data stored on your drives for additional security but I do not believe the majority of Unraid users bother with this. Quote Link to comment
Dabbner Posted April 26, 2019 Share Posted April 26, 2019 Thanks! this worked perfectly for me, allowing me to rescue an unraid box that had been in storage for over a year... adoucette's comment about the double :: applied to my situation... hope this helps others... Quote Link to comment
Aviv Posted December 11, 2019 Share Posted December 11, 2019 Worked for me just now 🙂 Same as @Dabbner was saying, double :: applied to my situation. Quote Link to comment
realdiel Posted June 2, 2022 Share Posted June 2, 2022 (edited) I misplaced my root password and tried these steps, but still can't login from the web GUI: I get this error when attempting to login with a password for root whether I delete those three files, or edit the shadow file: "Warning: file(/etc/nginx/htpasswd): failed to open stream: No such file or directory in /usr/local/emhttp/login.php on line 85 Warning: Invalid argument supplied for foreach() in /usr/local/emhttp/login.php on line 85" Attemtpting to log into UNRAID via root without a password prompts me to enter a password. I attempted to access UNRAID locally via a monitor, KB and mouse plugged into, but I don't get video because I believe I'm running a beta BIOS for my Asrock board that had some issue with quicksync and the onboard VGA being used at the same time. Any suggestions for getting back into my UNRAID server? Edited June 2, 2022 by realdiel Quote Link to comment
Squid Posted June 2, 2022 Share Posted June 2, 2022 Did you reboot after deleting the 3 files? Quote Link to comment
realdiel Posted June 2, 2022 Share Posted June 2, 2022 (edited) **SOLVED** A friend suggested I remove the "/login" URL portion I normally use to log into my UNRAID server instead of "xxx.xxx.x.x/login" and it worked without a password. Got into the web GUI, set a root password, tried the login URL again with the new password and all is well now. 😁 Edited June 3, 2022 by realdiel Quote Link to comment
Recommended Posts
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.