패스워드 자리수 제한 없애려면

익명 사용자의 이미지

여러 사용자 계정의 패스워드를 일괄적으로 변경하는 경우
'chpasswd'를 사용합니다.
먼저 계정과 패스워드가 Pair로 된 파일(user_file)을 생성합니다.

user_1pwd_1
user_2pwd_2
user_3pwd_3
...
user_npwd_n

그런다음 'user_file'을 입력값으로 패스워드 변경을 Batch로 처리합니다

#chpasswd < user_file

여기서, 패스워드의 자리수가 문제입니다.
8자 이상인 경우 문제가 없는데,
8자 미만인 경우 변경된 패스워드의 인식이 안됩니다('incorrect password')

이 문제를 해결하기위해 이미 앞번에 게재하였습니다.
그리고 조성호님의 답변을 참고로 'binutils' Update를 적용하였지만
패스워드 자리수 문제를 해결하지 못하여
이렇게 다시한번 여러분의 조언을 구합니다.

참고로 저는 PowerLinux R2 배포판을 사용합니다.
Install은 CD넣고 그 이후 Wizard형식에서 시키는데로(?) 설치하였습니다.

익명 사용자의 이미지

/etc/login.defs
파일을 보셔요.
PASS_MIN_LEN 5
일반배포판의 경우는 5자리이나 8로 되어있는경우도 있죠.
이숫자를 하고자하는 설정에 걸리지않게끔 3으로바꾸든가하는방법이있겠지만
암호체계에서는 그리높은점수를 받을만한일이 아니군요

익명 사용자의 이미지

답변 감사합니다.
일반적으로 루트계정에서 'passwd' 명령어로 패스워드를 변경할경우
/etc/login.defs의 값을 참조하여 단지 'too short'라는 warning메세지를
보여줄뿐 패스워드는 성공적으로 변경됩니다.

저의 경우는 'chpasswd'를 사용하여 전체 계정의 패스워드를
일괄적으로 변경하는 것으로 /etc/login.defs의 파라미터 값과는
상관없이 무조건 8자리 미만인 경우는 패스워드 변경은 되지만
실제 Login하는 경우 변경된 패스워드가 인식이 되지 않습니다.
(incorrect....)

앞글에서 'chpasswd'를 사용한 방법을 순서대로 정리했는데
한번 Test해보면 확인이 가능할겁니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.