password 기간주기

choeek의 이미지

user들의 password를 기간을 줘서 바꾸게끔 하고 싶습니다. 예를 들어 45일이 된후 로그인시 패스워드를 바꾸라는...
알려주세요

쎄피로의 이미지

man passwd....

Quote:

-n This will set the minimum password lifetime, in days, if the
user’s account supports password lifetimes. Available to root
only.

-x This will set the maximum password lifetime, in days, if the
user’s account supports password lifetimes. Available to root
only.

-w This will set the number of days in advance the user will begin
receiving warnings that her password will expire, if the user’s
account supports password lifetimes. Available to root only.

-i This will set the number of days which will pass before an
expired password for this account will be taken to mean that the
account is inactive and should be disabled, if the user’s
account supports password lifetimes. Available to root only.

세상은 넓고, 할 일은 많은데, 난 숨만 쉬고 있니?