Login to Members Area

Choose the service you want to log in
24x7x365 Presence
Live Chat

Hosting Blog


How to set the password age for a user in Linux?

chage -M number_of_days username

# chage -M 30 test

In the above example, we see that the password for the user "test'' will expire after 30 days.

Vimal Sunday 20 October 2013 - 08:26 am | | Default
Used tags: , , ,

One comment


As per my knowledge it must be chage instead of change.

Rakesh, - 25-10-’13 07:56
(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.