Manage the password database on Solaris systems
Returns the default hash used for unset passwords
CLI Example:
salt '*' shadow.default_hash
Return information for the specified user
CLI Example:
salt '*' shadow.info root
Set the maximum number of days during which a password is valid. See man passwd.
CLI Example:
salt '*' shadow.set_maxdays username 90
Set the minimum number of days between password changes. See man passwd.
CLI Example:
salt '*' shadow.set_mindays username 7
Set the password for a named user. The password must be a properly defined hash, the password hash can be generated with this command: openssl passwd -1 <plaintext password>
CLI Example:
salt '*' shadow.set_password root $1$UYCIxa628.9qXjpQCjM4a..
Set the number of days of warning before a password change is required. See man passwd.
CLI Example:
salt '*' shadow.set_warndays username 7
Docs for previous releases are available on salt.rtfd.org.
Latest Salt release: 2014.1.13
Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.
22.16.191. salt.modules.solaris_group
22.16.193. salt.modules.solaris_user
Upcoming SaltStack events, webinars and local meet ups and user groups.