[Linux]패스워드 정책 만들기

출처 : http://kbase.redhat.com/faq/FAQ_44_8148.shtm
작성자의 요청이 있을경우 자삭 함.

패스워드 등록시 최소 길이, 대/소문자 넣기 등등의 정책을 만들경우 해당되는 내용임

Issue:
How can I force users to create passwords that meet complexity requirements, such as length, special characters and numbers?

Resolution:

Limitation:
Red Hat Enterprise Linux 3 Update 4 and later

In Red Hat Enterprise Linux Version 3 Update 4 and later, the PAM module pam_cracklib can be used to force password complexity requirements.

By making a simple change to the pam_cracklib.so line in /etc/pam.d/system-auth the following password characteristics can be required:

  • Minimum password length (minlen)
  • Minimum number of lower case letters (lcredit)
  • Minimum number of upper case letters (ucredit)
  • Minimum number of numeric characters (dcredit)
  • Minimum number of non-alphanumeric characters (ocredit)

The following example shows a modified /etc/pam.d/system-auth pam_cracklib line:

password    required      /lib/security/$ISA/pam_cracklib.so retry=3 minlen=8 dcredit=-1 ucredit=-1 lcredit=-1 ocredit=-1

With the above example users would be required to choose passwords that are at least 8 characters long, that have at least one lower case character, one uppercase character, one number and one special character. Note that to require any of these characteristics a negative number is specified.

The output below illustrates what happens when a user tries to make a password that does not meet these requirements:

[test500@localhost ~]$ passwd Changing password for user test500. Changing password for test500 (current) UNIX password: New UNIX password: BAD PASSWORD: is too simple New UNIX password:

Password complexity is one of the most effective, and simple, security measures an administrator can implement.



크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 삐꾸강아쥐

2008/09/03 11:28 2008/09/03 11:28
, , ,
Response
0 Trackbacks , 0 Comments
RSS :
http://blog.blog.n-nuri.com/rss/response/563

Trackback URL : http://blog.blog.n-nuri.com/trackback/563

Leave a comment
[로그인][오픈아이디란?]
« Previous : 1 : ... 17 : 18 : 19 : 20 : 21 : 22 : 23 : 24 : 25 : ... 515 : Next »

블로그 이미지

http://blog.n-nuri.com 이 접속이 안 될경우 http://x2x.dnip.net 으로 접속해 주세요 공유하지 않는 지식은 썩은 물과 같다~~~!!!

- 삐꾸강아쥐

Archives

Recent Trackbacks

Calendar

«   2009/01   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Site Stats

Total hits:
227687
Today:
38
Yesterday:
279
free counters