If a Windows PC or a Mac keeps refusing your root password for an Unraid share, the password is fine. root is simply not allowed to use shares over the network.
The Unraid user management docs say root has full access to the WebGUI, SSH and Telnet, but cannot access file shares directly through SMB, NFS or FTP. For shares you create separate share users under Users, Shares Access.
A share user is the opposite. It can reach shares over SMB, NFS or FTP (if enabled) and has no WebGUI, SSH or Telnet access. So a password that leaks from a family laptop never gives anyone a login on the server itself.
When you add a user, the docs ask for a unique name, preferably lowercase letters and under 30 characters because of Windows limits. A password is required, and a description and a PNG avatar are optional. Which shares the user can reach is set per share afterwards.
Then connect with that user:
smb://192.168.1.x/media
Here media stands for one of your shares. Two things to remember: the user name cannot be changed once the account exists, and deleting a user is permanent and removes access to shares immediately. For root itself, the docs mention SSH key authentication as a way to log in without a password.
Further reading: Unraid docs: user management
Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it