When I set up Ubuntu system for the first time, and create first user, will that user be root
? I would like to use sudo
user, so how to add it if first user is root
? Also is it possible to create sudo
user withoute root
user?
1 Answer
The first user won't be root. The first user will have sudo permissions. So just install Ubuntu and you'll have exactly what you wanted.
The root user will be created behind the scene, but root login will be disabled.
-
5The user will be added to the sudo-group, which would let the user use
sudo
to become root (after entering his password). (A less flexible way, would've been to make an entry for the user in /etc/sudoers.) Aug 25, 2019 at 18:22 -
1@BaardKopperud Does Ubuntu use the wheel group as well? Aug 26, 2019 at 11:28
-
2@JoseFernandoLopezFernandez No, I believe Ubuntu out of the box has no
wheel
group.– tripleeeAug 26, 2019 at 12:22 -
2
wheel
group is not implemented in Debian by default, and Ubuntu is based on that, hence why there's nowheel
group in Ubuntu. See Why is Debian not creating the wheel group by default Aug 27, 2019 at 6:26 -
2@JoseFernandoLopezFernandez wheel is the GID=0 group on BSD-systems, whereas Linux uses root. On BSD-systems wheel (GID=0) is used to list all users allowed to become root - in fact, only member of wheel are allowed to execute
su
at all. On Linux, the root (GID=0) groups is used very differently - few if any users are added, and usually only system-users (no real human users)... one example was the operator user, which used to run back-ups on Linux-systems (it needed root-group for access to files). TBC Sep 2, 2019 at 13:34
sudo su -
....