Page 3 of 8

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

Posted: Sun Mar 13, 2022 4:11 pm
by dolphin_oracle
looks right

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

Posted: Sun Mar 13, 2022 4:16 pm
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.

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

Posted: Sun Mar 13, 2022 4:29 pm
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.

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

Posted: Sun Mar 13, 2022 4:42 pm
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.

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

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

Code: Select all

sudo pam-auth-update

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

Posted: Sun Mar 13, 2022 4:49 pm
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.

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

Posted: Sun Mar 13, 2022 5:32 pm
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.

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

Posted: Sun Mar 13, 2022 5:46 pm
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:

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

Posted: Sun Mar 13, 2022 6:30 pm
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.

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

Posted: Sun Mar 13, 2022 6:40 pm
by dolphin_oracle
hmmm....more than one user on live system maybe? those files would copy over...