RHCSA RHEL 8 – Change passwords and adjust password aging for local user accounts

Your support on Ko-Fi is much appreciated:

👉 https://ko-fi.com/csg_yt

Recommended RHCSA book:

📔 Amazon AU: https://amzn.to/2X5FL98

Buy CSG Merchandise:

👉 http://tee.pub/lic/csg

More information on Sophos Home Antivirus:

👉 http://bit.ly/SophosHP

More information about Hostinger VPS:

👉 http://bit.ly/H-VPS

Join our new discord channel:

👉 https://discord.gg/kBQ6Jry

This video is based on RHEL 8. Video to cover the section ‘Change passwords and adjust password aging for local user accounts’ for the RHCSA (Red Hat Certified System Administrator).

More information on the required learning: http://bit.ly/rhcsa8

Notes from the video:

The tool to change a users password is passwd, and is used as following:

# passwd

This would change the current users password, to change another users password:

# passwd user1

The password expiry values are managed by the chage tool, to view a users password expiry information run:

# chage -l user1

To set a users password to expire in 30 days:

# chage -M 30 user1

To force a user to change thier password on next login:

# chage -d 0 user1

To set an account to expire:

# chage -M -1 user1

Set an account to never expire:

# chage -E -1 user1

You can walk through all these changes one by one using:

# chage user1

The default configuration for the password expiration is stored in:

/etc/login.defs

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started