How to reset admin password using pwreset

ok i can no longer access the web gui but i do remember the root password. So i have ssh’d into the machine but i cant workout how to use pwreset to change the admin password. Its new years day so forgive me if this is a silly request.

I am in the /opt/rockstor/bin/ directory and ls shows that the pwreset command is there, however when i try to do pwreset i get bash: pwreset: command not found.

Can’t you just use “passwd admin” to change it - since you’re logged in as root?