Skip to main content

How can you disable two form authentication via root command?

Comments

7 comments

  • cPanelMichael
    Hello, You can disable two-factor authentication with the following command: whmapi1 twofactorauth_disable_policy
    Thank you.
    0
  • WebHostPro
    Thanks for the quick reply!
    0
  • WebHostPro
    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
  • cPanelMichael
    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
  • WebHostPro
    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:
    0
  • cPanelMichael
    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
  • WebHostPro
    That did it! Thanks a million :)
    0

Please sign in to leave a comment.