Installing Snapshot always fails with "failed to set user account password" error  [Solved]

When you run into problems installing MX Linux XFCE
Message
Author
User avatar
dolphin_oracle
Developer
Posts: 22693
Joined: Sun Dec 16, 2007 12:17 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#21 Post by dolphin_oracle »

looks right
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

SIttner76
Posts: 82
Joined: Wed Mar 03, 2021 1:58 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#22 Post by SIttner76 »

dolphin_oracle wrote: Sun Mar 13, 2022 3:52 pm I'm going to test a kde snapshot. anything special to do to mimic your case? any PAM changes or anything like that?
Thanks a lot. No, just installing a bunch of the usual software and some look & feel changes in the KDE settings. I set up my initial installation with a single user and also set an administrator password. Nothing else.
If you need any logs, config files etc. to reproduce the issue I'll be happy to upload them here.

User avatar
dolphin_oracle
Developer
Posts: 22693
Joined: Sun Dec 16, 2007 12:17 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#23 Post by dolphin_oracle »

hmm...

before installing, on the live-usb, try

Code: Select all

pam-auth-update
and see if it looks like this:

click next to cycle through the interface.
You do not have the required permissions to view the files attached to this post.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

SIttner76
Posts: 82
Joined: Wed Mar 03, 2021 1:58 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#24 Post by SIttner76 »

dolphin_oracle wrote: Sun Mar 13, 2022 4:29 pm hmm...

before installing, on the live-usb, try

Code: Select all

pam-auth-update
and see if it looks like this:

click next to cycle through the interface.
No, it looks very different (see below). There is no "next" button, when I click "continue" the window closes. Also, when executing the command and clicking "continue" there are error messages in the terminal:

Code: Select all

stefan@HP-Linux:~
$ pam-auth-update
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
open(/var/lib/pam/seen) failed: Permission denied at /sbin/pam-auth-update line 238, <STDIN> line 12.
debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Permission denied
stefan@HP-Linux:~
Edit: The error message do not appear when I execute the command with sudo, but the window looks the same.
You do not have the required permissions to view the files attached to this post.
Last edited by SIttner76 on Sun Mar 13, 2022 4:46 pm, edited 1 time in total.

User avatar
dolphin_oracle
Developer
Posts: 22693
Joined: Sun Dec 16, 2007 12:17 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#25 Post by dolphin_oracle »

oh, use sudo. my fault.

Code: Select all

sudo pam-auth-update
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

SIttner76
Posts: 82
Joined: Wed Mar 03, 2021 1:58 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#26 Post by SIttner76 »

dolphin_oracle wrote: Sun Mar 13, 2022 4:44 pm oh, use sudo. my fault.

Code: Select all

sudo pam-auth-update
OK thanks, see above. The window stays the same, but the error messages disappear.

User avatar
dolphin_oracle
Developer
Posts: 22693
Joined: Sun Dec 16, 2007 12:17 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#27 Post by dolphin_oracle »

ok that looks correct then. did you click all the way through? there are some reports that will correct a corrupt PAM config file somewhere and eliminate the error a chpasswd. its worth a shot.

BTW I have not duplicated the issue on a KDE snapshot.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

SIttner76
Posts: 82
Joined: Wed Mar 03, 2021 1:58 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#28 Post by SIttner76 »

dolphin_oracle wrote: Sun Mar 13, 2022 5:32 pm ok that looks correct then. did you click all the way through? there are some reports that will correct a corrupt PAM config file somewhere and eliminate the error a chpasswd. its worth a shot.

BTW I have not duplicated the issue on a KDE snapshot.
If I click on "continue" the windows just closes, there is no second page. As I said, it looks different than your window in that there is no "next" button.
Edit: I tried installing the system after running the command and clicking "continue", but it fails with the same error as before :frown:

User avatar
fehlix
Developer
Posts: 12886
Joined: Wed Apr 11, 2018 5:09 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#29 Post by fehlix »

SIttner76 wrote: Sun Mar 13, 2022 3:21 pm

Code: Select all

2022-03-13 20:17:38.154 DBG default: SErr #136: "chpasswd: (user demo) pam_chauthtok() failed, error:\nAuthentication token manipulation error\nchpasswd: (line 2, user demo) password not changed\n"
Note: I did not set the user account to "demo" during the installation but used my own user name
At least I can reproduce something which creates an error message,
which appears to be identical ( shown here with line breaks):
This command:

Code: Select all

printf 'fehlix:x\ndemo:x' | chpasswd
sends two lines to chpaswd:
line 1 succefull for an existing user "fehlix" ,
line 2 failes for non-existing user "demo":

Code: Select all

chpasswd: (user demo) pam_chauthtok() failed, error:
Authentication token manipulation error
chpasswd: (line 2, user demo) password not changed
So somehow user "demo" seems to be involved within the installer , where user "demo" does not exists on the installed system.

User avatar
dolphin_oracle
Developer
Posts: 22693
Joined: Sun Dec 16, 2007 12:17 pm

Re: Installing Snapshot always fails with "failed to set user account password" error

#30 Post by dolphin_oracle »

hmmm....more than one user on live system maybe? those files would copy over...
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

Post Reply

Return to “Installation”