Enable 2FA for CentOS Gnome GUI

    Applies to:
  • SecureAuth Identity Platform
  • Legacy SecureAuth IdP
Deployment model:
  • Hybrid
  • On Premises
  • Version Affected:  All


    After following our Linux PAM guide. These are the steps to enable 2FA on the GUI



    The Doc linked above doesn't cover this at present



    1. Edit /etc/pam.d/gdm-password

    2.  Set it to


    3. You'll now get prompted for 2FA as well as Username and Password. 


    Special Considerations   

    This was tested on CentOS 7 and 8



    SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.

    Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.

    0 out of 0 found this helpful



    Please sign in to leave a comment.