13

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?

3
  • 5
    The first user won't be root. So there is no problem.
    – Pilot6
    Aug 25 '19 at 9:45
  • 3
    root will be user id 0. daemon 1, bin 2 .... The first "real" user set up will be id 1000.
    – mckenzm
    Aug 26 '19 at 6:18
  • 1
    with the first user ... sudo su - .... Aug 29 '19 at 0:52
33

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.

6
  • 5
    The 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 '19 at 18:22
  • 1
    @BaardKopperud Does Ubuntu use the wheel group as well? Aug 26 '19 at 11:28
  • 2
    @JoseFernandoLopezFernandez No, I believe Ubuntu out of the box has no wheel group.
    – tripleee
    Aug 26 '19 at 12:22
  • 2
    wheel group is not implemented in Debian by default, and Ubuntu is based on that, hence why there's no wheel group in Ubuntu. See Why is Debian not creating the wheel group by default Aug 27 '19 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 '19 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.