Usually, in Debian installation, if you don't give a pass for root user, you can create another user and issue root cmds with sudo. When installing OMV, I give a pass to root user, but want to delete it, for security reasons. It is possible? And how to create another user which will have root privileges with sudo only?
For the WebUI the user "admin" is mandatory. I think for any other purpose It should be possible to create a different user which belongs to the sudo group. I assume this must be done with CLI. But I would not delete 'root' but disable it if possible.
You create a normal user.
Then you make this normal user a member of the group sudo.
Usually you also want to make the normal user a member of the group ssh, to allow remote access.
This way you don't ever have to login as root. You don't need remote root access. Whenever you need root privileges you use sudo. This is how I have done it for many years. This is also default in Ubuntu.
If you want to delete the password for root, with root privileges do this:
passwd -d root
After this it will no longer be possible to login as root.
You can also disable ssh root login from the ssh menu in OMV.
Im not turning off ssh root yet it is nedeet for the moment
Im doing clearly something wrong.
I create a user grafi via omv web interface.
I add this user to following groups :sudo; ssh;tty;
When i login as root via ssh and execute command
less /etc/passwd it shows
grafi:x:1000:100:standard cli user:/home/grafi:/bin/sh
but when i login as grafi via ssh i get
(... ... ...)
Could not chdir to home directory /home/kuba: No such file or directory$
To what group i should add my user to be able to enter his home dir ??
Thanks for help in advance
In the user settings under the webui... Change your shell to /bin/bash and also make sure you have home directories enabled.