chage: create account passwords that expire after some time
This ‘password aging’ utility allows you to set an expire date for a user account password for better security.
First step is install
chage if it’s not already installed. Then, you can type
chage -l <username> to check chage settings for that username:
$ chage -l ricardo Last password change : sep 12, 2021 Password expires : never Password inactive : never Account expires : never Minimum number of days between password change : 0 Maximum number of days between password change : 99999 Number of days of warning before password expires : 7
To edit chage settings for a user you need to be a root user or use
# To expire a password after 90 days since last password change chage -M 90 <username>
- You can disable password expiration as well:
chage -M -1 <username>
To expire a password inmediately (apply to next login):
chage -d 0 <username>
You can type
chage <username> to enter on interactive mode and edit all settings.
chage --help to get more info.
In Debian/Ubuntu systems, you can use
dpkg-reconfigureto reconfigure an installed package using intuitive dialogs. I will show you how to use this command to change some system settings.
If you have a scanned PDF and you want to be able to search and copy text from it, in this tutorial I will show you how to do it.
If you want to do X11 forwarding from your container to your host, you can type these simple commands.
If you don’t have a Graphical User Interface (GUI) on your Linux device, or you need a simple text-based web browser, I will show you a couple of great programs.
A comprehensive list of Linux-related websites sorted by categories.