Skip to main content

Sudo 模式

To confirm access to your account before you perform a potentially sensitive action, 您的 GitHub Enterprise Server 实例 prompts for authentication.

About sudo mode

To maintain the security of your account when you perform a potentially sensitive action on 您的 GitHub Enterprise Server 实例, 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.

  • Modification of an associated email address
  • Authorization of a third-party application
  • Addition of a new SSH key

After 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 Enterprise Server 实例 will wait a few hours before prompting you for authentication again. During this time, any sensitive action that you perform will reset the timer.

Note: If 您的 GitHub Enterprise Server 实例 uses an external authentication method like CAS or SAML SSO, you will not receive prompts to enter sudo mode. 更多信息请联系站点管理员。

"sudo" is a reference to a program on Unix systems, where the name is short for "superuser do." For more information, see sudo on Wikipedia.

Confirming access for sudo mode

To confirm access for sudo mode, you must authenticate with your password.

When prompted to authenticate for sudo mode, type your password, then click Confirm.

Screenshot of password prompt for sudo mode