On Jul 13, 2009, at 11:29 AM, Stephen John Smoogen wrote:

Hmm that sounds like something else is going on. I have done 10,000
accounts in minutes. I would check to see what the application is
trying to do. Does strace on the application show anything?

Hi,

After a whole bunch of read() functions on the contents of /etc/ passwd, strace shows these and freezes:

open("/etc/shadow.18178", O_WRONLY|O_CREAT|O_EXCL, 0600) = 5
write(5, "18178\0", 6)                  = 6
close(5)                                = 0
link("/etc/shadow.18178", "/etc/shadow.lock") = -1 EEXIST (File exists)
open("/etc/shadow.lock", O_RDWR)        = 5
read(5, "13358\0", 31)                  = 6
close(5)                                = 0
kill(13358, SIG_0)                      = -1 ESRCH (No such process)
unlink("/etc/shadow.lock")              = 0
link("/etc/shadow.18178", "/etc/shadow.lock") = 0
stat("/etc/shadow.18178", {st_mode=S_IFREG|0600, st_size=6, ...}) = 0
unlink("/etc/shadow.18178")             = 0
open("/etc/shadow", O_RDWR) = -1 ENOENT (No such file or directory)
open("/etc/login.defs", O_RDONLY)       = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=1521, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aba3a5d9000
read(5, "# *REQUIRED*\n#   Directory where"..., 4096) = 1521
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x2aba3a5d9000, 4096)            = 0

Anything obvious?  Bad permissions?  Malformed /etc/shadow ?

-Eugene

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to