Networking NVIDIA NVOS User Manual for InfiniBand Switches

Password Hardening Commands

nv show system security password-hardening


nv show system security password-hardening

Shows the password hardening configuration.

Syntax Description

N/A

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv show system security password-hardening

                             operational  applied
-----------------------      -----------  -------
state                        enabled      enabled
reject-user-passw-match      enabled      enabled
lower-class                  enabled      enabled
upper-class                  enabled      enabled
digits-class                 enabled      enabled
special-class                enabled      enabled
expiration-warning           15           15
expiration                   180          180
history-cnt                  10           10
len-min                      8            8

REST API

GET https://<ip>/nvue_v1/system/security/password-hardening

Related Commands

nv set system security password-hardening

Notes

Password hardening applies only to passwords of local user accounts.

nv set system security password-hardening state


nv set system security password-hardening state <enabled | disabled>

Enables or disables password hardening.

Syntax Description

state

enabled, disabled

Default

disabled

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening state enabled

 

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/state

Related Commands

nv show system security password-hardening

Notes

When password hardening is enabled, the switch does not accept hashed passwords.

nv set system security password-hardening digits-class


nv set system security password-hardening digits-class <enabled | disabled>

Enables or disables the requirement for digits in passwords.

Syntax Description

digits-class

enabled, disabled

Default

enabled

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening digits-class enabled

 

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/digits-class

Related Commands

nv show system security password-hardening

Notes


nv set system security password-hardening expiration


nv set system security password-hardening expiration <-1–365>

Sets the number of days that a password is valid. After the password expires, the user must change it.

Syntax Description

expiration

Integer: -1–365. 0 means that the password expires the next day; -1 means that the password does not expire.

Default

180

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening expiration 200

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/expiration

Related Commands

nv show system security password-hardening

Notes


nv set system security password-hardening expiration-warning


nv set system security password-hardening expiration-warning <-1–30>

Sets how many days before a password expires the user starts to see a warning at login.

Syntax Description

expiration-warning

Integer: -1–30. 0 means that the warning appears only after the password has expired; -1 means that no warning appears.

Default

15

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening expiration-warning 10

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/expiration-warning

Related Commands

nv show system security password-hardening

Notes


nv set system security password-hardening history-cnt


nv set system security password-hardening history-cnt <1–100>

Sets the number of previous passwords that a new password cannot match.

Syntax Description

history-cnt

Integer: 1–100

Default

10

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening history-cnt 5

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/history-cnt

Related Commands

nv show system security password-hardening

Notes


nv set system security password-hardening len-min


nv set system security password-hardening len-min <6–32>

Sets the minimum password length.

Syntax Description

len-min

Integer: 6–32

Default

8

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening len-min 10

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/len-min

Related Commands

nv show system security password-hardening

Notes


nv set system security password-hardening lower-class


nv set system security password-hardening lower-class <enabled | disabled>

Enables or disables the requirement for lowercase letters in passwords.

Syntax Description

lower-class

enabled, disabled

Default

enabled

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening lower-class enabled

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/lower-class

Related Commands

nv show system security password-hardening

Notes


nv set system security password-hardening reject-user-passw-match


nv set system security password-hardening reject-user-passw-match <enabled | disabled>

Enables or disables rejecting a password that is identical to the user name.

Syntax Description

reject-user-passw-match

enabled, disabled

Default

enabled

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening reject-user-passw-match enabled

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/reject-user-passw-match

Related Commands

nv show system security password-hardening

Notes


nv set system security password-hardening special-class


nv set system security password-hardening special-class <enabled | disabled>

Enables or disables the requirement for special characters in passwords.

Syntax Description

special-class

enabled, disabled

Default

enabled

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening special-class disabled

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/special-class

Related Commands

nv show system security password-hardening

Notes

  • The allowed special characters are `~!@#$%^&*()-_+=|[{}];:',<.>/? and the space character.

  • Enclose a password that contains special characters in single quotes, so that the shell does not interpret them.

  • Example: nv set system aaa user example password '123%$Aabcv'

nv set system security password-hardening upper-class


nv set system security password-hardening upper-class <enabled | disabled>

Enables or disables the requirement for uppercase letters in passwords.

Syntax Description

upper-class

enabled, disabled

Default

enabled

History

25.02.2002 

Example

admin@nvos:~$ nv set system security password-hardening upper-class enabled

REST API

PATCH https://<ip>/nvue_v1/system/security/password-hardening/upper-class

Related Commands

nv show system security password-hardening

Notes


Last updated: