免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4744 | 回复: 5
打印 上一主题 下一主题

passwd无法修改自己的密码 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-22 10:03 |只看该作者 |倒序浏览
普通用户修改自己的密码提示
hosta:~> passwd
Changing password for test.
System configuration error.  Please contact your administrator.
passwd: Critical error - immediate abort

root用户修改密码
hosta:~ # passwd test
Changing password for test.
pam_passwdqc: Invalid option: "min_digits=1".
passwd: Critical error - immediate abort

操作系统
suse9.0
Linux hosta 2.6.5-7.244-bigsmp #1 SMP Mon Dec 12 18:32:25 UTC 2005 i686 athlon i386 GNU/Linux

hosta:~> cat /etc/pam.d/passwd   
#%PAM-1.0
#auth     required      pam_unix2.so    nullok
#account  required      pam_unix2.so
#password required      pam_pwcheck.so  nullok
#password required      pam_unix2.so    nullok use_first_pass use_authtok
#password required      pam_make.so     /var/yp
#session  required      pam_unix2.so
password include        common-password

strace结果
execve("/usr/bin/passwd", ["passwd"], [/* 19 vars */]) = 0
uname({sys="Linux", node="hosta", ...}) = 0
brk(0)                                  = 0x805a000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=103656, ...}) = 0
old_mmap(NULL, 103656, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40018000
close(4)                                = 0
open("/lib/libpam_misc.so.0", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\16\0\000"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=11212, ...}) = 0
old_mmap(NULL, 11828, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x40032000
madvise(0x40032000, 11828, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x40034000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1000) = 0x40034000
close(4)                                = 0
open("/lib/libpam.so.0", O_RDONLY)      = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\25"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=33263, ...}) = 0
old_mmap(NULL, 32688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x40035000
madvise(0x40035000, 32688, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x4003c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x6000) = 0x4003c000
close(4)                                = 0
open("/usr/lib/libldap.so.199", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\211"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=233162, ...}) = 0
old_mmap(NULL, 208880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x4003d000
madvise(0x4003d000, 208880, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x4006f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x31000) = 0x4006f000
close(4)                                = 0
open("/usr/lib/liblber.so.199", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000)\0\000"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=57749, ...}) = 0
old_mmap(NULL, 51380, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x40070000
madvise(0x40070000, 51380, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x4007c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xb000) = 0x4007c000
close(4)                                = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0007\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=89178, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4007d000
old_mmap(NULL, 80256, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x4007e000
madvise(0x4007e000, 80256, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x4008f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x11000) = 0x4008f000
old_mmap(0x40090000, 6528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40090000
close(4)                                = 0
open("/lib/libselinux.so.1", O_RDONLY)  = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0003\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=61336, ...}) = 0
old_mmap(NULL, 57140, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x40092000
madvise(0x40092000, 57140, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x4009e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xb000) = 0x4009e000
close(4)                                = 0
open("/lib/tls/libc.so.6", O_RDONLY)    = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0S\1\000"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=1375249, ...}) = 0
old_mmap(NULL, 1154364, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x400a0000
madvise(0x400a0000, 1154364, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x401af000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x10f000) = 0x401af000
old_mmap(0x401b8000, 7484, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401b8000
close(4)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\r\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=12498, ...}) = 0
old_mmap(NULL, 11564, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x401ba000
madvise(0x401ba000, 11564, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x401bc000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1000) = 0x401bc000
close(4)                                = 0
open("/lib/libresolv.so.2", O_RDONLY)   = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\'\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=75426, ...}) = 0
old_mmap(NULL, 73332, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x401bd000
madvise(0x401bd000, 73332, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x401cc000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xf000) = 0x401cc000
old_mmap(0x401cd000, 7796, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401cd000
close(4)                                = 0
open("/usr/lib/libsasl2.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3400\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=93455, ...}) = 0
old_mmap(NULL, 84836, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x401cf000
madvise(0x401cf000, 84836, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x401e3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x13000) = 0x401e3000
close(4)                                = 0
open("/usr/lib/libssl.so.0.9.7", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\205\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=221953, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401e4000
old_mmap(NULL, 195140, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x401e5000
madvise(0x401e5000, 195140, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x40212000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2d000) = 0x40212000
close(4)                                = 0
open("/usr/lib/libcrypto.so.0.9.7", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\300"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=1131531, ...}) = 0
old_mmap(NULL, 982680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x40215000
madvise(0x40215000, 982680, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x402f0000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xdb000) = 0x402f0000
old_mmap(0x40302000, 11928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40302000
mprotect(0xbffff000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
close(4)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40305000
set_thread_area({entry_number:-1 -> 6, base_addr:0x403058e0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x40018000, 103656)              = 0
open("/proc/mounts", O_RDONLY)          = 4
brk(0)                                  = 0x805a000
brk(0x807c000)                          = 0x807c000
read(4, "rootfs / rootfs rw 0 0\n/dev/root"..., 4095) = 441
brk(0x807b000)                          = 0x807b000
close(4)                                = 0
open("/dev/audit", O_RDWR)              = -1 ENOENT (No such file or directory)
setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0
setrlimit(RLIMIT_AS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_CPU, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = -1 EPERM (Operation not permitted)
setrlimit(RLIMIT_RSS, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
rt_sigaction(SIGALRM, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigaction(SIGXFSZ, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_DFL}, = 0
rt_sigaction(SIGTTOU, {SIG_IGN}, {SIG_DFL}, = 0
umask(077)                              = 022
getuid32()                              = 1370
socket(PF_FILE, SOCK_STREAM, 0)         = 4
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(4, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = 0
poll([{fd=4, events=POLLOUT|POLLERR|POLLHUP, revents=POLLOUT}], 1, 5000) = 1
writev(4, [{"\2\0\0\0\v\0\0\0\7\0\0\0", 12}, {"passwd\0", 7}], 2) = 19
poll([{fd=4, events=POLLIN|POLLERR|POLLHUP, revents=POLLIN|POLLHUP}], 1, 5000) = 1
recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\0\265\330\6", 7}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 0
close(4)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 4
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(4, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = 0
poll([{fd=4, events=POLLOUT|POLLERR|POLLHUP, revents=POLLOUT}], 1, 5000) = 1
writev(4, [{"\2\0\0\0\1\0\0\0\5\0\0\0", 12}, {"1370\0", 5}], 2) = 17
poll([{fd=4, events=POLLIN|POLLERR|POLLHUP, revents=POLLIN|POLLHUP}], 1, 5000) = 1
read(4, "\2\0\0\0\1\0\0\0\6\0\0\0\2\0\0\0Z\5\0\0\352\3\0\0\1\0\0"..., 36) = 36
read(4, "cxlxq\0x\0\0/home/cxlxq\0/bin/hsh\0", 30) = 30
close(4)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=1239, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1239
close(4)                                = 0
munmap(0x40018000, 4096)                = 0
open("/etc/passwd", O_RDONLY|O_LARGEFILE) = 4
fcntl64(4, F_GETFD)                     = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=22029, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(4, "root:0:0:root:/root:/bin/bash\n"..., 4096) = 4096
read(4, "/bin/hsh\nhuzhangming:1167:100:"..., 4096) = 4096
read(4, "hsh\ngzliguang:1277:100::/home/"..., 4096) = 4096
close(4)                                = 0
munmap(0x40018000, 4096)                = 0
open("/etc/shadow", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
open("/proc/filesystems", O_RDONLY)     = 4
read(4, "\text3\nnodev\tsysfs\nnodev\trootfs\nn"..., 4095) = 287
close(4)                                = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 31), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
write(1, "Changing password for cxlxq.\n", 29Changing password for cxlxq.
) = 29
stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/pam.d/passwd", O_RDONLY)     = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=292, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
read(4, "#%PAM-1.0\n#auth     required\tpam"..., 4096) = 292
open("/etc/pam.d/common-password", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=1182, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
read(5, "#\n# /etc/pam.d/common-password -"..., 4096) = 1182
open("/lib/security/pam_passwdqc.so", O_RDONLY) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\f\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0755, st_size=41528, ...}) = 0
old_mmap(NULL, 44576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x4001b000
madvise(0x4001b000, 44576, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x4001f000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x3000) = 0x4001f000
close(6)                                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=103656, ...}) = 0
old_mmap(NULL, 103656, PROT_READ, MAP_PRIVATE, 6, 0) = 0x40306000
close(6)                                = 0
open("/lib/libcrypt.so.1", O_RDONLY)    = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\n\0"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0755, st_size=43632, ...}) = 0
。。。。
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\35\0\000"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0755, st_size=32022, ...}) = 0
old_mmap(NULL, 40000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x4036b000
madvise(0x4036b000, 40000, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x40371000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0x6000) = 0x40371000
old_mmap(0x40372000, 11328, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40372000
close(6)                                = 0
open("/lib/libxcrypt.so.1", O_RDONLY)   = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\16"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0755, st_size=53925, ...}) = 0
old_mmap(NULL, 211164, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x40375000
madvise(0x40375000, 211164, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x40380000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0xa000) = 0x40380000
old_mmap(0x40382000, 157916, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40382000
close(6)                                = 0
munmap(0x40351000, 103656)              = 0
open("/lib/security/pam_unix2.so", O_RDONLY) = 6
read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p&\0\000"..., 512) = 512
fstat64(6, {st_mode=S_IFREG|0755, st_size=50100, ...}) = 0
old_mmap(NULL, 52556, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0) = 0x40351000
madvise(0x40351000, 52556, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x4035d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0xb000) = 0x4035d000
close(6)                                = 0
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x4001a000, 4096)                = 0
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x40019000, 4096)                = 0
open("/etc/pam.d/other", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=396, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
read(4, "#%PAM-1.0\nauth\t required\tpam_war"..., 4096) = 396
open("/lib/security/pam_warn.so", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\7\0"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0755, st_size=5856, ...}) = 0
old_mmap(NULL, 7564, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x40026000
madvise(0x40026000, 7564, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x40027000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0) = 0x40027000
close(5)                                = 0
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x40019000, 4096)                = 0
time(NULL)                              = 1240364529
getuid32()                              = 1370
write(2, "System configuration error.  Ple"..., 64System configuration error.  Please contact your administrator.
) = 64
time([1240364529])                      = 1240364529
open("/etc/localtime", O_RDONLY)        = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=165, ...}) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=165, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0"..., 4096) = 165
close(4)                                = 0
munmap(0x40019000, 4096)                = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=165, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=165, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=165, ...}) = 0
getpid()                                = 15482
socket(PF_FILE, SOCK_DGRAM, 0)          = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
connect(4, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
send(4, "<83>Apr 22 09:42:09 passwd[15482"..., 79, MSG_NOSIGNAL) = 79
open("/etc/default/passwd", O_RDONLY|O_LARGEFILE) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=307, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
read(5, "# This file contains some inform"..., 4096) = 307
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x40019000, 4096)                = 0
open("/etc/login.defs", O_RDONLY|O_LARGEFILE) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=4556, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
read(5, "#\n# /etc/login.defs - Configurat"..., 4096) = 4096
read(5, " database etc. to add the\n# new "..., 4096) = 460
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x40019000, 4096)                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({3, 0}, {3, 0})               = 0
write(2, "passwd: Critical error - immedia"..., 41passwd: Critical error - immediate abort
) = 41
close(4)                                = 0
munmap(0x40018000, 4096)                = 0
exit_group(7)                           = ?

论坛徽章:
0
2 [报告]
发表于 2009-04-22 10:07 |只看该作者
用echo username:passwd | chpasswd可以修改

论坛徽章:
0
3 [报告]
发表于 2009-04-22 11:52 |只看该作者
应该还是PAM配置的问题,检查一下你的password include        common-password中common-password 模块的说明,或者先去掉pam.d/password

论坛徽章:
0
4 [报告]
发表于 2009-04-22 12:52 |只看该作者
我把common-password注释掉ok了,看了下common-password模块,目的是对密码规则做个限制,看来问题出在了这
这个common-password有什么问题呢?能这样配置吗?
#password required       pam_pwcheck.so nullok
#password required       pam_unix2.so    nullok use_first_pass use_authtok
#password required      pam_make.so     /var/yp
password  requisite     pam_passwdqc.so ask_oldauthtok=update check_oldauthtok min=disabled,disabled,disabled,disabled,6 min_digits=1 min_chars=3 min_uppers=1 min_lowers=1 min_others=1 passphrase=0
password  requisite     pam_pwcheck.so use_first_pass use_authtok
password  required      pam_unix2.so use_first_pass use_authtok

论坛徽章:
0
5 [报告]
发表于 2009-04-22 13:33 |只看该作者
pam的各个验证模块都有自己的定义说明,我对你使用的pwcheck,passwdqc不熟悉,一般我只使用unix2.so

论坛徽章:
0
6 [报告]
发表于 2009-04-22 16:53 |只看该作者

回复 #4 bwater 的帖子

min_lowers=1

应该是这个问题。

你密码中是否包含了至少一个小写字母啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP