Hello and thank you for your bug report.

The command that failed is:

'useradd', 'root', '--comment', 'ubuntu', '--shell', '/bin/bash', '--
groups', 'adm,cdrom,dip,lpadmin,plugdev,sudo,users', '--create-home'

The call to useradd was added to 24.04.4 when we backported the
following:

> Earlier user creation
>
> Previously, the user account was only created the first time the newly 
> installed system was started.
> This made it harder to write automated post-installation scripts, since the 
> user account was not
> available at the point when they executed (typically as part of 
> late-commands). Now, the user account
> is created earlier in the installation, so it is available for automated 
> post-installation scripts.
>
> This also addresses some crashes when installing Ubuntu unattended on 
> specific versions of VirtualBox.

and sadly, that fails in your scenario because the root user already
exists on the system (it is automatically created).

It isn't clear to me if allowing people to use `root` as the username
should be considered a bug or a feature.

For now, I'd recommend using another username (for instance ubuntu) and
using sudo since it's configured to be password-less.

Thanks,
Olivier

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2142391

Title:
  Attempting to create a user named root fails on 24.04.4

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/2142391/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to