[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

setting up Password Aging



Guys,

	I need to understand the options for useradd (as per below) 

My needs are this. I want to add a user, with a default password and
give then a grace period of say 7 days before they have to change their
password else their account is disabled. I don't care about maximum
days. (since they are syncing their passwords with the Windows Domain)

So.. I take it I need 

useradd -m 7 

is enough for my needs?

-m days
Specify the minimum number of days between which the user must change
passwords. If the value is 0, the password does not expire

.-M days
Specify the maximum number of days for which the password is valid. When
the number of days specified by this option plus the number of days
specified with the -d option is less than the current day, the user must
change passwords before using the account.-d daysSpecify the number of
days since January 1, 1970 the password was changed.

-I days
Specify the number of inactive days after the password expiration before
locking the account. If the value is 0, the account is not locked after
the password expires.




-- 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]