Apple Mac OS X Server Network Card User Manual


 
130 Chapter 8 Working with Users and Groups
To change a user’s password:
$ pwpolicy -n /LDAPv3/
ipaddress
-a
adminusername
-u
usertochange
-setpassword
newpassword
To view the global password policy:
$ pwpolicy -getglobalpolicy
To set the minimum password length to 5 characters:
$ pwpolicy -n /LDAPv3/
ipaddress
-a
adminusername
-setglobalpolicy
“minChars=
5
To set a more secure global password policy:
$ pwpolicy -n /LDAPv3/
ipaddress
-a
adminusername
-setglobalpolicy
"minChars=
6
usingHistory=
4
requiresNumeric=
1
maxMinutesUntilChangePassword=
43200
"
This sets the global password policy for all users requiring:
 the password to have a minimum of six characters
 the users cannot reuse a password from the previous four passwords
 the password must contain at least one number
 the password must be changed every thirty days
Parameter Description
ipaddress
Location of the LDAP directory.
adminusername
User name of an administrator.
usertochange
User name of the user whose password is changing.
newpassword
The password the user is changing to.
Parameter Description
ipaddress
Location of the LDAP directory.
adminusername
User name of an administrator.
minChars
Minimum number of characters in the password.
Parameter Description
ipaddress
Location of the LDAP directory.
adminusername
User name of an administrator.
minChars
Minimum number of characters in the password.
usingHistory
Sets the number of previous passwords that the user is not allowed
to reuse.
requiresNumeric
Number of numeric characters that must be in the password.
maxMinutesUntilChangePas
sword
Number of minutes until a password must be changed.