Ncp-update to version 1.54.0 fails with 2FA

I tried to upgrade ncp from version 15.3.3 to 15.4.0 by running ncp-updat and got the following error message:

sudo ncp-update
Downloading updates
Performing updates
+ echo 'Update root login prevention method...'
Update root login prevention method...
+ getent passwd root
+ grep -e /usr/sbin/nologin
root:x:0:0:root:/root:/usr/sbin/nologin
+ chsh -s /bin/bash root
Password:
chsh: PAM: Authentication failure
Error while applying update 1.54.0. Exiting...

2FA is enabled for the current non-root login.

Any help or idea is appreciated.

1 Like

Hello everybody.
Just got the same problem here! Update from 1.53.2 to 1.54 failed with the exact same error message.
My server is now out of order.
Any suggestion more than welcomed.
P. Fournié

Hi,
same here:

sudo /usr/local/bin/ncp-update
Downloading updates
Performing updates
Update root login prevention method...
root:x:0:0:root:/root:/usr/sbin/nologin
Password: 
chsh: PAM: Authentication failure
Error while applying update 1.54.0. Exiting...

2FA was enabled only for the Admin-User. Now deaktivated, but without any effect to that problem.

Edit:
No it works for me.
I removed 2FA and updated NC to 28.0.5

The issue seem to be fixed. I ran it again and it worked, even with 2FA.