Account selection
Choose the server account to use when you request a work session.
How the account is used
When you request a work session, you choose the account the session runs as on its servers. The features you open in that session, such as the web terminal (Websh), file transfer (WebFTP), and the code editor, connect to its servers as that account.
Choose who the session runs as
The Connect as step of the request form offers three choices, on Linux, macOS, and Windows servers alike:
- Your own account, the default: your Alpacon username is your account on the server. Everyone who meets the access requirements can connect as themselves.
root: the whole session runs as root.- Another account: an account Alpacon found on the servers you selected, such as a shared or service account.
The form reads the accounts from the servers you picked, so pick servers first. When an account can’t be used on some of the selected servers, the form says why; remove those servers or split the work into separate sessions.
Root is offered only when Direct root login is on in Access rules. This setting is off by default. If you need root for only a few commands, connect as yourself and use sudo with MFA instead.
Who can use an account other than their own
- Workspace Staff or Superuser: on all servers
- Manager or Owner of a group that is assigned to the server
- A maintainer of the server
Everyone else connects as their own account. See Who can connect as which account.
On Windows servers, the account you choose is an audit label: commands run as SYSTEM, so access is governed by your Alpacon roles. See permissions on Windows.
MFA for an account other than your own
When the MFA required actions setting in workspace authentication covers a feature (Websh, WebFTP, the editor, or commands), connecting as an account other than your own with that feature requires MFA verification. Connecting as your own account doesn’t.
Web (Alpacon console)
- Launch the feature from a session that runs as an account other than your own
- A notification appears indicating MFA is required
- You are redirected to the MFA authentication page
- Complete authentication (TOTP, email, phone, or WebAuthn)
- After successful verification, you are automatically redirected back and the connection starts
CLI (alpacon websh / alpacon exec)
When using the CLI, the MFA flow differs from the web:
- The CLI displays an MFA authentication link
- Open the link in your browser and complete MFA verification
- The CLI automatically detects successful authentication and continues the operation
- The MFA link expires after 3 minutes—retry the command to receive a new link if it expires
$ alpacon websh my-server
MFA authentication required. Please visit:
https://app.alpacon.io/mfa/verify?token=abc123
Waiting for MFA authentication...MFA timeout
MFA verification remains valid for a duration set by workspace administrators in Authentication; it is not adjustable per member. Within that period, connecting as another account again doesn’t ask you to verify again.
Verification is tied to the client you proved it from: the browser profile or CLI installation that answered the prompt. Proving it in one browser does not carry over to another, and a CLI does not inherit a browser’s.