2020-10-16 00:32:37 +08:00
|
|
|
==============
|
|
|
|
accountModify
|
|
|
|
==============
|
|
|
|
|
|
|
|
Modify an account configuration
|
|
|
|
===============================
|
|
|
|
|
|
|
|
|
|
|
|
.. admonition:: usage
|
|
|
|
:class: cmdusage
|
|
|
|
|
|
|
|
--osh accountModify --account ACCOUNT [--option value [--option value [...]]]
|
|
|
|
|
|
|
|
.. program:: accountModify
|
|
|
|
|
|
|
|
|
|
|
|
.. option:: --account ACCOUNT
|
|
|
|
|
|
|
|
Bastion account to work on
|
|
|
|
|
|
|
|
.. option:: --pam-auth-bypass yes|no
|
|
|
|
|
|
|
|
Enable or disable PAM auth bypass for this account in addition to pubkey auth (default is 'no'),
|
|
|
|
|
2021-05-19 22:46:02 +08:00
|
|
|
in that case sshd will not rely at all on PAM auth and /etc/pam.d/sshd configuration. This
|
|
|
|
does not change the behaviour of the code, just the PAM auth handled by SSH itself
|
2020-10-16 00:32:37 +08:00
|
|
|
.. option:: --mfa-password-required yes|no|bypass
|
|
|
|
|
|
|
|
Enable or disable UNIX password requirement for this account in addition to pubkey auth (default is 'no'),
|
|
|
|
|
2021-05-19 22:46:02 +08:00
|
|
|
this overrides the global bastion configuration 'accountMFAPolicy'. If 'bypass' is specified,
|
|
|
|
no password will ever be asked, even for groups or plugins explicitly requiring it
|
2020-10-16 00:32:37 +08:00
|
|
|
.. option:: --mfa-totp-required yes|no|bypass
|
|
|
|
|
|
|
|
Enable or disable TOTP requirement for this account in addition to pubkey auth (default is 'no'),
|
|
|
|
|
2021-05-19 22:46:02 +08:00
|
|
|
this overrides the global bastion configuration 'accountMFAPolicy'. If 'bypass' is specified,
|
|
|
|
no OTP will ever be asked, even for groups or plugins explicitly requiring it
|
2020-10-16 00:32:37 +08:00
|
|
|
.. option:: --egress-strict-host-key-checking POLICY
|
|
|
|
|
2021-05-19 22:46:02 +08:00
|
|
|
Modify the egress SSH behavior of this account regarding ``StrictHostKeyChecking`` (see `man ssh_config`),
|
2020-10-16 00:32:37 +08:00
|
|
|
|
2021-05-19 22:46:02 +08:00
|
|
|
POLICY can be 'yes', 'accept-new', 'no', 'ask', 'default' or 'bypass'.
|
|
|
|
'bypass' means setting ``StrictHostKeyChecking=no`` and ``UserKnownHostsFile=/dev/null``,
|
|
|
|
which will permit egress connections in all cases, even when host keys change all the time on the same target.
|
|
|
|
This effectively suppress the host key checking entirely. Please don't enable this blindly.
|
|
|
|
'default' will remove this account's ``StrictHostKeyChecking`` setting override.
|
|
|
|
All the other policies carry the same meaning that what is documented in `man ssh_config`.
|
2020-10-16 00:32:37 +08:00
|
|
|
.. option:: --personal-egress-mfa-required POLICY
|
|
|
|
|
|
|
|
Enforce UNIX password requirement, or TOTP requirement, or any MFA requirement, when connecting to a server
|
|
|
|
|
|
|
|
using the personal keys of the account, POLICY can be 'password', 'totp', 'any' or 'none'
|
|
|
|
.. option:: --always-active yes|no
|
|
|
|
|
|
|
|
Set or unset the account as always active (i.e. disable the check of the 'active' status on this account)
|
|
|
|
|
|
|
|
.. option:: --idle-ignore yes|no
|
|
|
|
|
|
|
|
If enabled, this account is immune to the idleLockTimeout and idleKillTimeout bastion-wide policy
|
|
|
|
|
2021-09-01 21:15:23 +08:00
|
|
|
.. option:: --max-inactive-days DAYS
|
|
|
|
|
|
|
|
Set account expiration policy, overriding the global bastion configuration 'accountMaxInactiveDays'.
|
|
|
|
|
|
|
|
Setting this option to zero disables account expiration. Setting this option to -1 removes this account
|
|
|
|
expiration policy, i.e. the global bastion setting will apply.
|
2020-12-17 23:43:02 +08:00
|
|
|
.. option:: --osh-only yes|no
|
|
|
|
|
|
|
|
If enabled, this account can only use ``--osh`` commands, and can't connect anywhere through the bastion
|
|
|
|
|
2021-09-07 21:46:16 +08:00
|
|
|
.. option:: --mfa-any yes|no
|
|
|
|
|
|
|
|
Control the ingress login requirements for pubkey and pam (when a password and/or TOTP is set).
|
|
|
|
|
|
|
|
When disabled, the user needs pubkey AND pam, this is the default.
|
|
|
|
When enabled, the user can authenticate with either pubkey OR pam.
|
|
|
|
If the account has no password/TOTP, this option has no effect, i.e: pubkey is used. Egress is not affected.
|