Big problem with Two Factor authentication for Nextcloud and Webtop 5

v7
nextcloud
webtop5

(Uwe) #1

Hello friends,

after a crash I had to reset my iPhone and also had to re-play the Google Authenticator, which I used for the two-factor authentication. Now it is no longer possible to access Webtop or Nextcloud. How can I disable the two factor authentication via putty?

Thanks you for your help.

Uwe


(Marc) #2

If there is no other admin user that can authenticate, on Nextcloud you can disable 2FA using occ command. To temporarily disable 2FA for a specific user:

su - apache -s /bin/bash -c "source /opt/rh/rh-php71/enable; cd /usr/share/nextcloud/; php occ twofactor:disable <username>"

Another option for nextcloud would be to disable the 2FA app…

For webtop5:

su - postgres -c 'psql webtop5'
UPDATE "core"."settings" SET "value"='false' WHERE "key"='otp.enabled';
\q

Afterwards you may have to trigger:

signal-event nethserver-webtop5-update