Closed tyen-brex closed 1 year ago
Hi @tyen-brex,
I guess you also run sudo ec2-macos-init clean all
or something to clear the history before creating the image. Then, you'll see the error because ec2-user
got a secure token during the steps to use Apple Remote Desktop. You need the old password when you change the password of users who have secure tokens even if you try to change the passwords with the root privilege.
Could you also modify the line https://github.com/aws/ec2-macos-init/blob/9460c024ac68de3bfca4e78102a691b4b7f1a22e/configuration/init.toml#L132 to false
before creating an image? It will stop ec2-macos-init
's trying to randomize ec2-user
's password, and ec2-macos-init
will run as expected.
Thanks!
An mac image was created using the following steps
The following error is appearing in
/var/log/amazon/ec2/ec2-macos-init.log
, and the remaining init short circuits