Hello,
In later firmwares root and admin users were separated.
When changing password in WebUI, the password is changed for both root and admin.
If you want to change the password in terminal, when executing passwd command, you must give an argument of username (root or admin) e.x. passwd root and or passwd admin.
Best regards,