2015/12/20

[펌] 다음 로그인시 강제로 암호를 바꾸게 하는 방법

http://kiros33.blog.me/220574507051


Revision History
2015/12/21 14:19:42 - 최초 작성 

Link Page


다음 로그인시 강제로 암호를 바꾸게 하는 방법

로그인 기간을 만료시켜 다음 로그인시 암호를 변경하도록 하는 명령을 사용하는 방법입니다.

만료 기간을 없애려면 아래처럼 해주면 됩니다.
$ chage -E -1 -I 0 -m 0 -M 99999 계정명

혹은 nerver 키워드로 (SUSE는 never를 인식하지 못하는 경우도 있다고 합니다.)
$ chage -E never -I 0 -m 0 -M 99999 계정명
  
-------------------------------

Linux: Force Users To Change Their Passwords Upon First Login


How can I force my Linux users to change their passwords upon the first login under a CentOS / Debian Linux? How do I make sure user must change password at next logon on Linux server?

You can use any one of the following command to change user passwords upon the first login:



[a] usermod command - Modify various user account properties including user password expiry information.
Where,
[b] chage command - Change user password expiry information

Task: Use chage command to force users to chage their password upon first login

Use the following syntax to force a user to change their password at next logon on a Linux:
# chage -d 0 {user-name}
In this example, force tom to change his passsword at next logon, enter:
# chage -d 0 tom
  • -d 0 : Set the number of days since January 1st, 1970 when the password was last changed. The date may also be expressed in the format YYYY-MM-DD. By setting it to zero, you are going to force user to change password upon first login.
Further readings:
  

검색: Linux, 리눅스, Password expiry information, 암호, 패스워드 만료 정보, 

댓글 없음:

댓글 쓰기