recently rotated root passwords on all of our devices, using sshpass with pw redirect of new password.
the result is that it changes the password for ssh/shell login, but cant login to GUI/webui with NEWpassword, and have to use old one.
I have tried doing it manually via shell usuing passwd and same issue.
Is there a way i can rotate/change root password from shell for webui root access?
Code:
sshpass -p Curpassword ssh root@freenas01.domain.com 'echo "NEWpassword" | pw usermod root -h 0'
the result is that it changes the password for ssh/shell login, but cant login to GUI/webui with NEWpassword, and have to use old one.
I have tried doing it manually via shell usuing passwd and same issue.
Is there a way i can rotate/change root password from shell for webui root access?