

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 更新文件系统和 SVM 角色的密码要求
<a name="update-password-requirements"></a>

您可以使用 [https://docs.netapp.com/us-en/ontap-cli-9141/security-login-role-config-modify.html#description](https://docs.netapp.com/us-en/ontap-cli-9141/security-login-role-config-modify.html#description) ONTAP CLI 命令更新文件系统或 SVM 角色的密码要求。此命令仅适用于具有 `fsxadmin` 角色的文件系统管理员账户。在修改密码要求时，如果有任何具有该角色的现有用户会受到更改的影响，系统将发出警告。

以下示例针对 `fsx` SVM 上具有 `vsadmin-readonly` 角色的用户将最低密码长度要求修改为 12 个字符。在此示例中，已有用户拥有该角色。

```
FsxId0123456::> security login role config modify -role vsadmin-readonly -vserver fsx -passwd-minlength 12
```

由于存在现有的用户，系统会显示以下警告：

```
Warning: User accounts with this role exist. Modifications to the username/password restrictions on this role could result in non-compliant user
         accounts.
Do you want to continue? {y|n}: 

FsxId0123456::>
```