Skip to content

change_password service is hardcoded to use the pi user #866

Description

@Thynix

Is it not supported to change the username when writing the image? I used Raspberry Pi Imager's support to do that, and when I tried to change the user password with the /boot/octopi-password.txt the service logged

Oct 19 17:32:41 octopi1 systemd[1]: Starting change_password.service - LSB: Change pi's password via /boot/octopi-password.txt...
Oct 19 17:32:43 octopi1 chpasswd[468]: pam_unix(chpasswd:chauthtok): user "pi" does not exist in /etc/passwd
Oct 19 17:32:43 octopi1 change_password[468]: chpasswd: (user pi) pam_chauthtok() failed, error:
Oct 19 17:32:43 octopi1 change_password[468]: Authentication token manipulation error
Oct 19 17:32:43 octopi1 change_password[468]: chpasswd: (line 1, user pi) password not changed
Oct 19 17:32:43 octopi1 systemd[1]: Started change_password.service - LSB: Change pi's password via /boot/octopi-password.txt.
Oct 19 17:32:43 octopi1 change_password[378]: Could not change password ... failed!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions