代码仓
中
ipmcset -t user -d lock
更新时间: 2026/07/28
在AtomGit上查看源码

返回总览

命令功能 ​

锁定指定的用户

命令格式 ​

ipmcset -t user -d lock -v <username>

命令类型 ​

ipmcset

参数说明 ​

NameTypeRequiredDefaultConstraintDescription
usernamestring是-RegexContain any digits, letters, or characters except (:,&lt;>&"'/%) and space. User name's length is limitted to 1-16. User name cannot start with character "#" "+" or "-". User name cannot be just a dot (.) or two consecutive dots (..).

Regex正则表达式 ​

  • username
^(?!.*[<>&,'/\%:" ])(?=[A-Za-z0-9`~!@#$%^&*()_+-=&#123;&#125;;[\]?.|])(?!#)(?!\+)(?!-)([A-Za-z0-9`~!@#$%^&*()_+-={};[\]?.|]{1,16})$

输出样例 ​

The currently logged-in user's account cannot be locked.

配置来源 ​

interface_config/cli/ipmcset/user.json