

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 更新檔案系統和 SVM 角色的密碼需求
<a name="update-password-requirements"></a>

您可以使用 CLI 命令更新檔案系統或 SVM [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 角色的密碼需求。此命令僅適用於具有 `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::>
```