O'Reilly logo

CompTIA Linux+ Certification Guide by Philip Inshanally

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The chage command

Another interesting aspect regarding user accounts involves the aging time for a password; the expiration for a password. We can view the expiration for a given user by using the chage command. Let's create a password for the user tom and then check the password aging settings for the new user:

You must have root privileges to change the password aging parameters.
root@ubuntu:/home/philip# passwd tomEnter new UNIX password:Retype new UNIX password:passwd: password updated successfullyroot@ubuntu:/home/philip#

Excellent! Based on the preceding output, we used the -l option to display the expiration settings; we can see some ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required