LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lchage

displays or changes user password expiration policy on systems using libuser

TLDR

Display password policy
$ sudo lchage --list [username]
copy
Disable password expiration
$ sudo lchage --date -1 [username]
copy
Set minimum password age
$ sudo lchage --mindays [days] [username]
copy
Set maximum password age
$ sudo lchage --maxdays [days] [username]
copy
Set warning days before expiry
$ sudo lchage --warndays [days] [username]
copy

SYNOPSIS

lchage [options] username

DESCRIPTION

lchage displays or changes user password expiration policy on systems using libuser. It provides similar functionality to chage but uses the libuser library for user database access.

PARAMETERS

-l, --list

Display password aging information for the user
-d, --date DAYS
Set last password change date (-1 to disable expiration)
-m, --mindays DAYS
Minimum days between password changes
-M, --maxdays DAYS
Maximum days before password change required
-W, --warndays DAYS
Days to warn before password expires
-I, --inactive DAYS
Days after expiry before account is disabled
-E, --expiredate DATE
Set account expiration date

INSTALL

sudo apt install libuser
copy
sudo dnf install libuser
copy
sudo apk add libuser
copy
sudo zypper install libuser
copy

CAVEATS

Requires root privileges. Only available on systems with the libuser library installed (primarily Fedora/RHEL-based distributions). Some options may not be available depending on authentication backend configuration (e.g., LDAP).

SEE ALSO

chage(1), passwd(1), usermod(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid