linux 用简单密码

  1. vi /etc/pam.d/system-auth as root.

  2. Look for the following two lines:

    password    requisite     pam_cracklib.so try_first_pass retry=3
    password    sufficient    pam_unix.so md5 shadow nullok try_first_pass use_authtok
    
  3. Comment out the first of the two lines:

    #password    requisite     pam_cracklib.so try_first_pass retry=3
    
  4. Remove use_authtok on the second line. Otherwise you’ll get “passwd: Authentication information cannot be recovered” error.

    password    sufficient    pam_unix.so md5 shadow nullok try_first_pass

posted on 2016-10-04 10:10  anjuncc  阅读(186)  评论(0编辑  收藏  举报

导航