{"meta":{"title":"Sudo mode","intro":"To confirm access to your account before you perform a potentially sensitive action, GitHub.com prompts for authentication.","product":"Authentication","breadcrumbs":[{"href":"/en/enterprise-cloud@latest/authentication","title":"Authentication"},{"href":"/en/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure","title":"Account security"},{"href":"/en/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure/sudo-mode","title":"Sudo mode"}],"documentType":"article"},"body":"# Sudo mode\n\nTo confirm access to your account before you perform a potentially sensitive action, GitHub.com prompts for authentication.\n\n## About sudo mode\n\nTo maintain the security of your account when you perform a potentially sensitive action on GitHub.com, you must authenticate even though you're already signed in. For example, GitHub considers the following actions sensitive because each action could allow a new person or system to access your account.\n\n* Modification of an associated email address\n* Authorization of a third-party application\n* Addition of a new SSH key\n* Creation of a PAT or application\n\nAfter you authenticate to perform a sensitive action, your session is temporarily in \"sudo mode.\" In sudo mode, you can perform sensitive actions without authentication. GitHub has a two-hour session timeout period before prompting you for authentication again. During this time, any sensitive action that you perform will reset the timer.\n\n> \\[!NOTE]\n> If your enterprise uses Enterprise Managed Users, only the setup user will receive prompts to enter sudo mode, as managed user accounts don't have credentials stored on GitHub.\n\n## Confirming access for sudo mode\n\nTo confirm access for sudo mode, you can authenticate with your password. Optionally, you can use a different authentication method, like a passkey, a security key, GitHub Mobile, or a 2FA code.\n\n* [Confirming access using a passkey](#confirming-access-using-a-passkey)\n\n* [Confirming access using a security key](#confirming-access-using-a-security-key)\n\n* [Confirming access using GitHub Mobile](#confirming-access-using-github-mobile)\n\n* [Confirming access using a 2FA code](#confirming-access-using-a-2fa-code)\n\n* [Confirming access using your password](#confirming-access-using-your-password)\n\n* [Confirming access using your social login email](#confirming-access-using-your-social-login-email)\n\n### Confirming access using a passkey\n\nYou must have a passkey registered to your account to confirm access to your account for sudo mode using a passkey. See [About passkeys](/en/enterprise-cloud@latest/authentication/authenticating-with-a-passkey/about-passkeys).\n\n### Confirming access using a security key\n\nYou must configure two-factor authentication (2FA) for your account using a security key to confirm access to your account for sudo mode using the security key. For more information, see [Configuring two-factor authentication](/en/enterprise-cloud@latest/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication#configuring-two-factor-authentication-using-a-security-key).\n\nWhen prompted to authenticate for sudo mode, click **Use security key**, then follow the prompts.\n\n### Confirming access using GitHub Mobile\n\nYou must install and sign into GitHub Mobile to confirm access to your account for sudo mode using the app. For more information, see [GitHub Mobile](/en/enterprise-cloud@latest/get-started/using-github/github-mobile).\n\n1. When prompted to authenticate for sudo mode, click **Use GitHub Mobile**.\n2. Open GitHub Mobile. GitHub will display numbers that you must enter in GitHub Mobile to approve the request.\n3. In GitHub Mobile, type the numbers displayed.\n\n### Confirming access using a 2FA code\n\nYou must configure 2FA using a TOTP mobile app to confirm access to your account for sudo mode using a 2FA code. For more information, see [Configuring two-factor authentication](/en/enterprise-cloud@latest/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication).\n\nWhen prompted to authenticate for sudo mode, type the authentication code from your TOTP mobile app, then click **Verify**.\n\nText messages are not supported for use on the sudo prompt. If you have registered SMS as the only 2FA method on your account, you'll be asked for your password to enter sudo mode.\n\n### Confirming access using your password\n\nWhen prompted to authenticate for sudo mode, type your password, then click **Confirm**.\n\n### Confirming access using your social login email\n\nBefore you can access sudo mode, you must first configure social login. For more information, see [About authentication to GitHub](/en/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure/about-authentication-to-github).\n\nWhen prompted to authenticate for sudo mode, type the authentication code sent to your social login email account, then click **Verify**. If you dont receive the email within few minutes, check your spam folder."}