我正在尝试从 Centos-7.0.1406 客户端更改 NIS 帐户的密码,服务器是 Centos-6.6
似乎 passwd 命令不会要求我更改密码,也不会要求我输入旧密码,它只返回以下内容
更改用户 mashour 的密码。
passwd:身份验证令牌操作错误
这也是 strace 快照
打开(“/usr/share/locale/en_US.UTF-8/LC_MESSAGES/Linux-PAM.mo”,O_RDONLY)= 5
fstat(5, {st_mode=S_IFREG|0644, st_size=520, ...}) = 0
mmap(NULL,520,PROT_READ,MAP_PRIVATE,5,0) = 0x7fa11e121000 关闭(5) = 0
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (没有此文件或目录)
open("/usr/share/locale/en_US/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (没有此文件或目录)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (没有此文件或目录)
open("/usr/share/locale/en.utf8/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (没有此文件或目录)
open("/usr/share/locale/en/LC_MESSAGES/Linux-PAM.mo", O_RDONLY) = -1 ENOENT (没有此文件或目录)
写入(2,“passwd:身份验证令牌人” ...,48passwd:身份验证令牌操作错误)= 48
munmap(0x7fa114a82000,2109664)= 0
munmap(0x7fa114868000,2200544)= 0
munmap(0x7fa114664000,2109648)= 0
munmap(0x7fa114462000,2101296)= 0
munmap(0x7fa11425f000,2105464)= 0
munmap(0x7fa11405d000,2101320)= 0
munmap(0x7fa113e5a000,2105576)= 0
munmap(0x7fa113c54000,2118240)= 0
munmap(0x7fa113a49000,2138640)= 0
munmap(0x7fa113833000,2183688)= 0
munmap(0x7fa113628000,2138848)= 0
退出组(1)=?
+++ 退出,返回 1 +++
但是我可以使用 passwd 命令从任何 Centos-6 客户端更改 NIS 帐户密码。
知道哪里出了问题吗?