Skip to content
Tags

How do I set default password expiration for new accounts

June 17, 2010

To set the default password expiration when creating new accounts on Red Hat LINUX edit the /etc/login.defs file.

For example, to set the default maximum number of days a password may be used, change the following parameter in login.defs:

PASS_MAX_DAYS 30

To set the default number of days warning given before a password expires, change the following parameter in login.defs:

PASS_WARN_AGE 7

Please refer the man page of login.defs for more parameters about default password expiration.

 

For more Infotmation Click here World Of Information.

Advertisements

From → Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: