Manage the shadow file
Important
If you feel that Salt should be using this module to manage passwords on a minion, and it is using a different module (or gives an error similar to 'shadow.info' is not available), see here.
Return information for the specified user This is just returns dummy data so that salt states can work.
name (str) -- The name of the user account to show.
CLI Example:
salt '*' shadow.info root
Require the user to change their password the next time they log in.
name -- The name of the user account to require a password change.
True if successful. False if unsuccessful.
CLI Example:
salt '*' shadow.require_password_change <username>
Set the expiration date for a user account.
name -- The name of the user account to edit.
expire -- The date the account will expire.
True if successful. False if unsuccessful.
CLI Example:
salt '*' shadow.set_expire <username> 2016/7/1
Set the password for a named user.
True if successful. False if unsuccessful.
CLI Example:
salt '*' shadow.set_password root mysecretpassword
Generated on May 22, 2024 at 17:25:40 UTC.
You are viewing docs for the latest stable release, 3007.1. Switch to docs for the previous stable release, 3006.8, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy