码迷,mamicode.com
首页 > 系统相关 > 详细

linux 用简单密码

时间:2016-10-04 11:49:02      阅读:280      评论:0      收藏:0      [点我收藏+]

标签:

  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

linux 用简单密码

标签:

原文地址:http://www.cnblogs.com/anjuncc/p/5930127.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!