【发布时间】:2009-11-22 03:03:45
【问题描述】:
我有一个使用以下配置的带有 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,然后用户luke 的密码验证不再起作用(虽然公钥仍然可以)。
我的设置有问题吗?
【问题讨论】: