How to diable totp 2FA in shell

hafnix

Dabbler
Joined
Mar 24, 2019
Messages
24
Hi @all41id

Have Nextcloud 15 running in a Jail on Freenas 11.2, how can I disable totp 2fa in the shell?

Thx in advance

hafnix
 

scrappy

Patron
Joined
Mar 16, 2017
Messages
347

hafnix

Dabbler
Joined
Mar 24, 2019
Messages
24
Thank you scrappy but there seems there is a problem with occ which is not there.

occ.jpg


Any hint ?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
there seems there is a problem with occ which is not there.
Then you'll need to find it. Since you haven't told us how you installed Nextcloud in that jail, we have no idea where the file would be. find / -name occ would tell you, though.
 

hafnix

Dabbler
Joined
Mar 24, 2019
Messages
24
I have installed it using your script, I found it in /usr/local/www/apache24/data/nextcloud
Here I ran the command again but got a message I have to use sudo -u www before the command
and so i did buit trhe correct paramter in the end was "twofactorauth:disable"

But then I got
occ2.jpg
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Well, here is the Nextcloud documentation for the occ command, and sure enough, the disable command calls for a user ID and a provider ID. The latter, I'd expect, would be something you'd set when you enabled 2FA.
 

hafnix

Dabbler
Joined
Mar 24, 2019
Messages
24
Ok I do not know these values... and as it seems some config is missing I would like to disable the totp module globally
This should be possible according to the Nextclound docuumentation
 
Top