Zum Inhalt springen

Switch off password expiration

Aus superMassive

Switch off linux password expiration

# Precheck
chage --list [USERNAME]
# Create backup dir
mkdir -p /root/backup
# Remove old cache files to avoid database version warning
mv /var/lib/sss/db/cache_implicit_files.ldb  /root/backup/
# Set user password to never expire
chage -I -1 -m 0 -M -1 -E -1 [USERNAME]
# Postcheck
chage -l [USERNAME]