You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either registering an instance of Ubuntu-24.04 via the distro launcher or importing the root filesystem I get an unexpected user named "ubuntu" uid 1000. That happens because cloud-init has a configuration entry in /etc/cloud/cloud.cfg to create that user. When cloud-init is disabled via kernel command line the unexpected user is never created.
What was expected?
No other user accounts should be implicitely created.
Steps to reproduce
ubuntu2204.exe install --root
ubuntu2204.exe run grep ubuntu /etc/passwd
The output of that command should be empty, but it shows a line containing the "ubuntu" user account.
Additional information
The (untouched) configuration file /etc/cloud/cloud.cfg contains the following section:
# System and/or distro specific settings
# (not accessible to handlers/transforms)
system_info:
# This will affect which distro class gets used
distro: ubuntu
# Default user name + that default users groups (if added/used)
default_user:
name: ubuntu
lock_passwd: True
gecos: Ubuntu
groups: [adm, cdrom, dip, lxd, sudo]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
There are no overrides for that key in /etc/cloud/cloud.cgf.d/.
The text was updated successfully, but these errors were encountered:
`/etc/cloud/cloud.cfg` sets the default user "ubuntu" for any instance
of the Ubuntu distro. Changing that is outside of our scope, as it would
affect other platforms.
Instead we override that key with nothing to prevent creating any user
at all unless explicitely specified by user-data.
Fixes: ubuntu/WSL#468
cmd /c ver
Microsoft Windows [Version 10.0.26200.5001]
wsl --status
wsl --status
Default Distribution: Ubuntu
Default Version: 2
Did the problem occur during installation?
What happened?
Either registering an instance of Ubuntu-24.04 via the distro launcher or importing the root filesystem I get an unexpected user named "ubuntu" uid 1000. That happens because cloud-init has a configuration entry in
/etc/cloud/cloud.cfg
to create that user. When cloud-init is disabled via kernel command line the unexpected user is never created.What was expected?
No other user accounts should be implicitely created.
Steps to reproduce
The output of that command should be empty, but it shows a line containing the "ubuntu" user account.
Additional information
The (untouched) configuration file
/etc/cloud/cloud.cfg
contains the following section:There are no overrides for that key in
/etc/cloud/cloud.cgf.d/
.The text was updated successfully, but these errors were encountered: