Hello, I'm a new OMV user and spent a lot of time to figure out how to change the WebUI username. I read everywhere and what I found was like this is not supported by OMV so maybe my workaround can help somebody out there.
So here's what this thread is about: Rename the default 'admin' user to something else
Enough said, here's what I did:
1. In the web UI, create a new user and put the user inside 'openmediavault-admin' group. Don't forget to Save and Apply of course.
2. Try logging out from your web UI and log back in with the new username you just created. If it works, now let's proceed to the next step. Don't proceed if you can't log in with the new username you created with step #1.
3. Let's delete the default 'admin' user. SSH into OMV as root (or as sudoer user and prefix the command with sudo) and do userdel admin
4. Now we need to modify the omv-env 'OMV_WEBGUI_ADMINUSER_NAME' (which default to admin) to the username you created above. You can do it by following this documentation: https://openmediavault.readthe…n/5.x/various/advset.html. For the simplicity, just open the file /etc/default/openmediavault and find the line: OMV_WEBGUI_ADMINUSER_NAME=admin and change it to OMV_WEBGUI_ADMINUSER_NAME=yournewuser (replace yournewuser with the username you created above of course). Why is this step needed? Because if you don't do this, OMV script will recreate the default 'admin' username again whenever you update your omv package.
Thank you. And maybe someone else can give me any advice if this is not recommended in some way.