Forcing to change password when using API

Hello, we are working on creating installer for our software on DO through:

And it all works great up to the one point, when installing send-mail it runs into this error:

Setting up sendmail-base (8.14.4-4.1ubuntu1) … You are required to change your password immediately (root enforced) chfn: PAM: Authentication token is no longer valid; new one required adduser: `/usr/bin/chfn -f Mail Transfer Agent smmta’ returned error code 1. Exiting. dpkg: error processing package sendmail-base (–configure): subprocess installed post-installation script returned error exit status 1

So most probably chfn triggers the need for password change, as it is the first time login (even though from API launched script).

Any ideas on how to overcome it?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

How are you trying to install it? I just did a quick successful test using a cloud-config file like:

packages: sendmail-base

Is your app.yml file public?