ipmcset -t user -d weakpwddic
更新时间: 2026/07/28
在Gitcode上查看源码命令功能
设置弱口令字典认证功能的使能状态
命令格式
ipmcset -t user -d weakpwddic -v <option> [localpath/URL]
命令类型
ipmcset
参数说明
| Name | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|
option | - | 是 | - | Type: Enum; Enum: enabled, disabled, import, export | enabled Enable weak password dictionary check. disabled Disable weak password dictionary check. import <localpath/URL> Import weak password dictionary. export [localpath/URL] Export weak password dictionary. Localpath e.g.:/tmp/weakdictionary URL :protocol://[username:password@]IP[:port]/directory/filename The parameters in the URL are described as follows: The protocol must be https,sftp,cifs,scp or nfs. The URL can contain only letters, digits, and special characters. The directory or file name cannot contain @. Use double quotation marks (") to enclose the URL that contains a space or double quotation marks ("). Escape the double quotation marks (") and back slash () contained in the URL. For example, if you want to enter: a b\cd" Enter: "a b\cd"" |
value | - | 否 | - | Regex | - |
Regex正则表达式
value
^((https|sftp|nfs|cifs|scp)://.{1,1000}|/tmp/.{1,246})$使用示例
ipmcset -t user -d weakpwddic -v enabledipmcset -t user -d weakpwddic -v disabledipmcset -t user -d weakpwddic -v import UrlAddressipmcset -t user -d weakpwddic -v export UrlAddress输出样例
<value> weak password dictionary successfully.
Enabled weak password dictionary check successfully.
Disabled weak password dictionary check successfully.