sudo with MFA
sudo with MFA lets you run sudo commands in Websh terminal sessions without permanent sudo privilege. When you enter a sudo command, MFA verification is required before the command executes.
Requirements
- Alpamon 1.3.2 or later installed on the target server
- sudo with MFA enabled in workspace access control settings (this automatically installs the required PAM module on servers)
Enable sudo with MFA
- Go to Workspace settings > Access control
- Enable Use sudo with MFA
- The PAM module is automatically installed on servers running Alpamon 1.3.2+
Note: Enabling sudo with MFA requires
superuserprivileges. Staff users can use sudo with MFA after it is enabled but cannot change this setting.
Note: sudo with MFA works independently from the Allow direct root access setting. Even when direct root access is disabled, users can still run
sudocommands through sudo with MFA.
How it works
Staff and superuser
- Enter a
sudocommand in a Websh terminal session (e.g.,sudo systemctl restart nginx) - On the first
sudocommand, MFA verification is required - After completing MFA, the command executes
- Subsequent
sudocommands do not require MFA again until the MFA timeout expires - The MFA timeout duration follows the user’s configured setting—see Security settings
Regular members
Approval-based sudo for regular members (below staff) is coming soon.