Hi,
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?
how to change default root user
-
- gelöst
- OMV 4.x
- gett
-
-
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.
-
I assume this must be done with CLI.
I think that was not correct. It should be also possible with OMV access rights management.
-
You create a normal user.
Then you make this normal user a member of the group sudo.
Done!
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.
-
After this it will no longer be possible to login as root.
That's exactly what I want. Thanks.
-
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 showsgrafi:x:1000:100:standard cli user:/home/grafi:/bin/sh
but when i login as grafi via ssh i get
ssh grafi@192.168.0.14
grafi@192.168.0.14's password:
(... ... ...)
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.
-
For those who still need to do this, maybe this'll help: How I 'Renamed' My WebUI Admin Username
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!