2011年12月7日水曜日

ESXi 4.1 パスワードの複雑性の設定をゆるく

検証機として  VMWARE ESXi 4.1 を使っているのですが、
ESXi4.1 のパスワードは 複雑性を求められる為、
希望のパスワードが設定出来ないことがあります。

もし パスワードの複雑性を緩くしたい場合には 以下の方法で緩くすることも可能です。

vSphere Client でログインし、
構成 タブを選び、ソフトウェア -> セキュリティプロファイル を選択し、
次に 画面右上の プロパティを押します。
NewImage

デフォルトでは Remote Tech Support が 停止になっていて、
ssh で接続が出来ませんの これを起動します。
NewImage

オプション ボタンを押し、
サービスコマンド で 開始 ボタンを押します。
NewImage

ステータスが 実行 になり、これで ssh で接続が可能です。
NewImage

ssh で ESXi  のサーバに接続します。
ESXi では パスワードの複雑性は pam_passwdqc を使って設定されています。

# cd /etc/pam.d
# vi system-auth

password     requisite     /lib/security/$ISA/pam_passwdqc.so     retry=3 min=8,8,8,7,6

となっている行を

password     requisite     /lib/security/$ISA/pam_passwdqc.so     retry=3 min=0,0,0,0,0

とすると ゆるゆる 状態に

[補足]
min=.. の説明を man pam_passwdqc でみると
min=N0,N1,N2,N3,N4
(min=disabled,24,11,8,7) The minimum allowed password lengths for differ‐
ent kinds of passwords/passphrases.  The keyword disabled can be used to
disallow passwords of a given kind regardless of their length.  Each sub‐
sequent number is required to be no larger than the preceding one.

N0 is used for passwords consisting of characters from one character class
only.  The character classes are: digits, lower-case letters, upper-case
letters, and other characters.  There is also a special class for
non-ASCII characters, which could not be classified, but are assumed to be
non-digits.

N1 is used for passwords consisting of characters from two character
classes that do not meet the requirements for a passphrase.

N2 is used for passphrases.  Note that besides meeting this length
requirement, a passphrase must also consist of a sufficient number of
words (see the passphrase option below).

N3 and N4 are used for passwords consisting of characters from three and
four character classes, respectively.

When calculating the number of character classes, upper-case letters used
as the first character and digits used as the last character of a password
are not counted.

In addition to being sufficiently long, passwords are required to contain
enough different characters for the character classes and the minimum
length they have been checked against.

0 件のコメント:

コメントを投稿