質問

私は、以下の構成を使用してsshとNISとの作業のSolaris 10サーバーを持っています

# /etc/nsswitch.conf
passwd:     files nis
group:      files nis

# /etc/ssh/sshd_config
 Protocol 2
 Port 22
 ListenAddress ::
 AllowTcpForwarding no
 GatewayPorts no
 X11Forwarding yes
 X11DisplayOffset 10
 X11UseLocalhost yes
 PrintMotd no
 KeepAlive yes
 SyslogFacility auth
 LogLevel info
 HostKey /etc/ssh/ssh_host_rsa_key
 HostKey /etc/ssh/ssh_host_dsa_key
 ServerKeyBits 768
 KeyRegenerationInterval 3600
 StrictModes yes
 LoginGraceTime 600
 MaxAuthTries       6
 MaxAuthTriesLog    3
 PermitEmptyPasswords yes
 PasswordAuthentication yes
 PAMAuthenticationViaKBDInt yes
 PermitRootLogin yes
 Subsystem  sftp    /usr/lib/ssh/sftp-server
 IgnoreRhosts yes
 RhostsAuthentication no
 RhostsRSAAuthentication no
 RSAAuthentication yes

さて、私は互換モードに切り替えたいます:

# /etc/nsswitch.conf
passwd:     compat
group:      files nis

私は、数のユーザーを追加しました

# /etc/passwd
+luke:x:::::

pwvconを走って(公開鍵はまだOKである間)、その後、ユーザlukeのためのパスワード認証方式はもう動作しませません。

私の設定に何か問題はありますか?

役に立ちましたか?

解決

passwd(4)から:

  

+名のエントリがnull以外を持っている場合   パスワード[..]そのフィールドの値   に含まれているものを上書きします   代替ネーミングサービスます。

passwdの列に「x」を削除し、もう一度はpwconvを実行する場合に役立ちます。

あなたが見ることができますか?

編集:最初の推測はコメントを参照してください、完全オフだったので、ここでは別の推測だ - 私は申し訳ありませんが、今の私の日のconfigを破ることはできません。)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top