Sometimes. Typically it will create one of these, but not both:
oem-config command is a symbolic link to
ubiquity, Ubuntu's standard installer. Ubiquity runs the script
user-setup-ask-oem to determine how user accounts should be configured, and then the script
user-setup-apply to actually create them.
The configuration script begins by asking whether a root user should be created:
- If you answer yes, you have the option to also create a non-root user.
- If you answer no, you are forced to create a non-root user.
Later on, the account creation script checks to see if you have decided to create a root user:
- If you have, a root user is created with traditional, implicit administrative privileges. If you have also opted to create a non-root user, that user is created without sudo permissions.
- If you've decided not to create a root user, the non-root user is created with sudo permissions.
This behavior can be complicated by preeseed configurations.