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

Опубликовано: 02 Апрель 2026
на канале: Computers, Security & Gadgets
3,382
69

Your support on Ko-Fi is much appreciated:
👉 https://ko-fi.com/csg_yt

Join our new discord channel:
👉   / discord  

Buy CSG Merchandise:
👉 http://tee.pub/lic/csg

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

#rhcsa #rhel #linux #redhat