[updated] to use the proper syntax for running mongo within a bash script (i.e. "--eval"); plus added "--bind_ip 127.0.0.1" when starting mongo with "--noauth" (so that mongo will only accept local connections while running with no authorisation required).
Ok I have a workaround...
In a terminal set your new password:
then copy/paste this:[updated] to use the proper syntax for running mongo within a bash script (i.e. "--eval"); plus added "--bind_ip 127.0.0.1" when starting mongo with "--noauth" (so that mongo will only accept local connections while running with no authorisation required).