Categories
Uncategorized

How to force user to change password

Alter password expiry date to force user to change password on next login.

Categories
Uncategorized

How to securely change user password using shell script

Securely change user password using shell script to automate this task on these rare occasions.

Categories
Uncategorized

How to encrypt user password

Use encrypted passwords to automatically setup users using configuration management tools like Puppet or Ansible.

Categories
Uncategorized

How to temporarily disable user logins

Sometimes, I want to prevent regular users from logging into the system to perform more complex operations.
To achieve that, I am using Pluggable Authentication Modules for Linux to temporarily disable user logins.

Categories
SysOps

How to count local user accounts

If you are wondering how to count only local users ignoring system accounts, I will give you a concise and straight answer.