New Question

Revision history [back]

click to hide/show revision 1
initial version

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

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 bsdtarpath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe mtoolspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\ verbose=true debug=true renameadminuser=true logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\ logfile=cloudbase-init.log defaultloglevels=comtypes=INFO,suds=INFO,iso8601=WARN loggingserialportsettings= mtuusedhcpconfig=true ntpusedhcpconfig=true localscriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\ metadataservices=cloudbaseinit.metadata.services.nocloudservice.NoCloudConfigDriveService plugins=cloudbaseinit.plugins.common.networkconfig.NetworkConfigPlugin,cloudbaseinit.plugins.common.sshpublickeys.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 allowreboot=true stopserviceonexit=false

This is my user-data file.

cloud-config

users: - name: Administrator primary_group: Administrators passwd: DummyPass inactive: false

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

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 [DEFAULT]

username=Administrator

groups=Administrators

injectuserpassword=true password=true

firstlogonbehaviour=always bsdtarbehaviour=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\bin\bsdtar.exe mtoolspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\ verbose=true debug=true renameadminuser=true logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\ logfile=cloudbase-init.log defaultloglevels=comtypes=INFO,suds=INFO,iso8601=WARN loggingserialportsettings= mtuusedhcpconfig=true ntpusedhcpconfig=true localscriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\ metadataservices=cloudbaseinit.metadata.services.nocloudservice.NoCloudConfigDriveService plugins=cloudbaseinit.plugins.common.networkconfig.NetworkConfigPlugin,cloudbaseinit.plugins.common.sshpublickeys.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 allowreboot=true 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

stopserviceonexit=falseon_exit=false

This is my user-data file.

cloud-config

users: - users:

  • name: Administrator Administrator

    primary_group: Administrators Administrators

    passwd: DummyPass DummyPass

    inactive: false