Problem Implementing Mosquitto User/Password

I have recently loaded Home Assistant in Docker running on Ubuntu. Struggling to implement Mosquitto. Mosquitto appears to have loaded, and I can see it in Portainer. Attempting to add User/Password for security.
Within Portainer, there is a ‘console’. I issue the command…

‘mosquitto_passwd –c /mosquitto/config/password.txt hass’

The system responds with text instructing me on the use of ‘mosquitto_passwd’, but does not provide a hint about what is wrong. I did note on the forum that the user name is ‘fixed’? Do I need to edit the command with a specific ‘user name’?

[Solved]
Never mind. I manually created ‘password.txt’, and ran the command line again (this time typing it in by hand - not copy/paste). It worked. I believe all is well again. I still have the residual question regarding the ‘user name’.
Thanks,
Grizz952

Just in case somebody stumbles above this page:
Copy/paste the command from the original question does not work as the command does contain a special character EN DASH (UTF-Code 0xe2 80 93) instead of a normal dash. With a normal dash the command works as expected.
The username is the first user added to the password file. You have to specify the password for this user interactively.

In general I would recommend to use the dynamic security plugin for new installed broker instead of the password file. As the name implies the plugin does allow changes to users and roles at the runtime. The plugin should be part of all standard Mosquitto installations (>= 2.0) and just need t be activated by the mosquitto.conf. As a command line tool a plugin to the mosquitto_ctrl is provided.