First logon behaviour is set to always but password will not prompted to be changed

asked 2022-07-26 12:35:53 +0200

mareza gravatar image

updated 2022-07-26 12:38:30 +0200

Hi.

I'm using cloudbase-init with NocloudConfigDrive metadata service. Below is my cloudbase-init.conf file and as mentioned in this ref if I want to change the password at next login all I need to do is to set first_logon_behaviour value to always. But whenever I enter the password I never see any prompt to change it.

[DEFAULT]

username=Administrator

groups=Administrators

injectuserpassword=true

firstlogonbehaviour=always

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

renameadminuser=true

log_dir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\

log_file=cloudbase-init.log

defaultloglevels=comtypes=INFO,suds=INFO,iso8601=WARN

loggingserialport_settings=

mtuusedhcp_config=true

ntpusedhcp_config=true

localscriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\

metadata_services=cloudbaseinit.metadata.services.nocloudservice.NoCloudConfigDriveService

plugins=cloudbaseinit.plugins.common.networkconfig.NetworkConfigPlugin,cloudbaseinit.plugins.common.sshpublic keys.SetUserSSHPublicKeysPlugin,cloudbaseinit.plugins.common.mtu.MTUPlugin,cloudbaseinit.plugins.common.userdata.UserDataPlugin,cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin,cloudbaseinit.plugins.common.localscripts.LocalScriptsPlugin,cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin,cloudbaseinit.plugins.windows.updates.WindowsAutoUpdatesPlugin

allow_reboot=true

stopserviceon_exit=false

This is my user-data file.

cloud-config

users:

  • name: Administrator

    primary_group: Administrators

    passwd: DummyPass

    inactive: false

edit retag flag offensive close merge delete