How can you disable two form authentication via root command?
I have a customer that set up two form authentication and forgot the details. How do I disable it from the root command line?
-
Hello, You can disable two-factor authentication with the following command: whmapi1 twofactorauth_disable_policy
Thank you.0 -
Thanks for the quick reply! 0 -
Hello, You can disable two-factor authentication with the following command:
whmapi1 twofactorauth_disable_policy
Thank you.
Oh actually, I ran that and got: # whmapi1 twofactorauth_disable_policy --- metadata: command: twofactorauth_disable_policy reason: OK result: 1 version: 1 Yet, it's still there. Is there more I need to do to disable it?0 -
Hello, Is this for a specific cPanel account? If so, you can use the following UAPI command to disable it for a specific user: uapi --user=username TwoFactorAuth remove_user_configuration
The function is documented at: UAPI Functions - TwoFactorAuth::remove_user_configuration - Developer Documentation - cPanel Documentation Thank you.0 -
Oh sorry it's for the WHM. It asks for 4 questions to access that where set by the previous webmaster that our customer used. Now the customer can't get in after letting their webmaster go.
Hello, That's actually the Security Questions feature enabled with the Limit Logins to Verified IP Addresses option in "WHM Home " Security Center " Configure Security Policies". We document how to disable this from the command line at:0 -
That did it! Thanks a million :) 0
Please sign in to leave a comment.
Comments
7 comments