Report this

What is the reason for this report?

Forcing to change password when using API

Posted on November 11, 2014

Hello, we are working on creating installer for our software on DO through: https://github.com/seven1m/do-install-button

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?



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!

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.

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

#cloud-config
packages: sendmail-base

Is your app.yml file public?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.