brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: forgot the Unraid root password? Edit one line in config/shadow on the boot device

Unraid
~/tips/tip-unraid-reset-root-password

root:$&$&%*1112233484847648DHD$%.:15477:0:99999:7:::

Reset only the root password from the boot device and keep the share users' passwords.

A strong root password you never type is a password you eventually forget. Unraid has no reset mail for root, but if you can get your hands on the boot device, the fix takes a few minutes and a text editor.

The docs give two methods, and I’d start with the one that only touches root. Shut the server down, plug the USB boot device into another computer and open /config/shadow in a plain text editor like Notepad++. Find the line that starts with root:. It looks something like this, with a long hash between the first two colons:

root:$&$&%*1112233484847648DHD$%.:15477:0:99999:7:::

Remove everything between the first and second colon, so it becomes:

root::15477:0:99999:7:::

Save the file, put the stick back, boot the server and Unraid asks you to set a new root password. Your share users keep their passwords, so the family’s SMB mappings on their laptops keep working.

The blunt method is deleting both /config/shadow and /config/smbpasswd. That clears every password on the server, root and all share users, so everybody needs a new one afterwards. I’d only use that if editing the file goes wrong.

The caveat is the reason this works at all: anyone with physical access to the boot device can do exactly the same and walk away with full admin access. The docs say it plainly, keep the USB stick secure. A server in a shared hallway cupboard deserves a little more thought than one in a locked meter cupboard.

Further reading: Unraid docs: User management

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override All Unraid tips (77) All topics

Link