Changing passwords for ACF

From Alpine Linux

This provides documentation for beginner Alpine Linux users on how to change passwords for the console login as well as the ACF. It is pretty simple.


Changing ACF password using command line

Setting ACF password is done in various ways depending on how old your system is.

Set ACF-password on Alpine Linux 1.9 and newer

Set the ACF-password for a specific user (where 'username' could be a system user, such as 'root'):

acfpasswd username

You will be prompted to enter a new password for this user.

Tip: You can set the ACF password to reflect the system user's password. In that case, the command looks like this:

acfpasswd -s username

(The '-s' flag tells the system to copy the system user's password into ACF-password database.)

Set ACF-password on Alpine Linux 1.8 and older

The logins and passwords for the ACF users are stored in a separate location: '/etc/acf/passwd'.

The syntax for the '/etc/acf/passwd' file is as follows:

username:md5sumpassword::ROLE

For example, change the ACF user 'Alpine' as follows:

  1. Generate a md5sum hash of the password 'testing123', and send it to the passwd file:

    echo -n "testing123" | md5sum >> /etc/acf/passwd

  2. Edit the passwd file to put the hash in the correct place as shown below, deleting the existing hash:
Alpine:92707c3c2766ce04133e0f85681add8b::ADMIN


To change passwords from the ACF Interface

Log on as a user with the Admin role, which has rights to change user passwords other than it's own.

Browse to System >> User Management

Under the Existing Account section, click [Edit this account] under the user whose password you want to change.

Enter the new password in the 'Password' and 'Password (Confirm)' fields.

Click [Save] to save the changes.


Save changes

Remember to commit all changes (if you are running from 'tmpfs'):

lbu ci