/user
当前显示英文原文,切换到「中文」可查看译文。
user
Router administration user accounts. Each user belongs to exactly one group that grants the rights (policies) the user has. See User for the full guide.
user
Type: Directory
Router administration user accounts. Each user belongs to exactly one group that grants the rights (policies) the user has. See User for the full guide.
| Flag | Name | Description |
|---|---|---|
E | expired | Password expired with /user/expire-password. At the next interactive login the user is asked to set a new password; setting a new password clears the flag. |
X | disabled | User account is disabled and cannot log in. |
| Argument | Type | Description |
|---|---|---|
name * | string | Login user name. Letters, digits and the characters _ . # - @ are allowed; the name must end with a letter or a digit and cannot start with . or -. |
group * | enum | User group that grants the rights (policies) the user has. |
password * | string | Login password. Any characters are accepted, including spaces, symbols and UTF-8. An explicitly empty value (password="") allows logging in with a blank password. The complexity policy from /user/settings applies when set. |
inactivity-timeout | time | Idle time after which inactivity-policy is applied to an interactive console session. Range 00:01:00 to 1d00:00:00. Default: 10m. |
inactivity-policy | enum (none | logout | lockscreen) | Action taken when inactivity-timeout expires: - none (default) - The idle session keeps running. - logout - Closes the idle session with the message "<name> was logged out due to inactivity". - lockscreen - Locks the session ("Session is locked (Ctrl-D to Quit)") and asks for the user's password to resume; wrong passwords print "Sorry, try again.". |
address | object { address: alt { address: ipPrefix , address: ip6Prefix } } | IP address with mask or IPv6 prefix. When set, the user may log in only from matching source addresses; logins from other addresses are refused. |
| Read-only Argument | Type | Description |
|---|---|---|
last-logged-in | date | Date and time of the user's last login. |