cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
421 stars 149 forks source link

How to modify the name of default Admin user? #24

Closed Kuanlin-Chen closed 4 years ago

Kuanlin-Chen commented 4 years ago

I tried to change the name of default admin user from Admin to Administrator, but it didn't take any effect, here is my cloudbase-init.conf:

[DEFAULT]
username=Administrator
groups=Administrators
inject_user_password=true
config_drive_raw_hhd=true
config_drive_cdrom=true
config_drive_vfat=true
bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe
mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\
verbose=true
debug=true
logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\
logfile=cloudbase-init.log
default_log_levels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN
logging_serial_port_settings=
mtu_use_dhcp_config=true
ntp_use_dhcp_config=true
local_scripts_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\

My main purpose is to enable Administrator account on my Windows10, and remove all other users, and whatever I did so far, I got two account (Admin and Administrator) on my image, any suggestion?

ader1990 commented 4 years ago

Hello @Kuanlin-Chen ,

How did you create the Windows image? Using https://github.com/cloudbase/windows-openstack-imaging-tools/ ?

If possible, can you share the cloudbase-init logs?

Thank you.

Kuanlin-Chen commented 4 years ago

@ader1990 Thanks for replying, I am using windows-openstack-imaging-tools, and I guess the Admin user is created by cloudbase-init while the instance booting the first time, so I tried not to install cloudbase-init, but it didn't work at all, the instance still have Admin account and Administrator account. This is not what I expected.

Would you mind telling me where the Admin user be created?

ader1990 commented 4 years ago

Please close this issue, as the problem is on the imaging tools configuration. will resume the explanation on the issue you created here: https://github.com/cloudbase/windows-openstack-imaging-tools/issues/327