Dave,

>From what I can make of this, I'm missing /etc/ld.so.preload.  If that is my
problem, can someone tell me what source or RPM I can get that from?  Here
is the verbose output of strace /usr/bin/qmail/qmail-getpw alias :


execve("/usr/bin/qmail/qmail-getpw", ["/usr/bin/qmail/qmail-getpw",
"alias"], [/* 26 vars */]) = 0
brk(0)                                  = 0x8049e20
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=22440, ...}) = 0
mmap(0, 22440, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=4118299, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\250\202"..., 4096)
= 4096
mmap(0, 993500, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40019000
mprotect(0x40104000, 30940, PROT_NONE)  = 0
mmap(0x40104000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xea000) = 0x40104000
mmap(0x40108000, 14556, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40108000
close(3)                                = 0
mprotect(0x40019000, 962560, PROT_READ|PROT_WRITE) = 0
mprotect(0x40019000, 962560, PROT_READ|PROT_EXEC) = 0
munmap(0x40013000, 22440)               = 0
personality(0 /* PER_??? */)            = 0
getpid()                                = 9778
brk(0)                                  = 0x8049e20
brk(0x8049fc0)                          = 0x8049fc0
brk(0x804a000)                          = 0x804a000
brk(0x804b000)                          = 0x804b000
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sun_family=AF_UNIX, sun_path="/var/run/.nscd_socket"}, 110) = -1
ECONNREFUSED (Connection refused)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1739, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40013000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1739
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40013000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=22440, ...}) = 0
mmap(0, 22440, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000
close(3)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=247348, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\33"..., 4096) =
4096
mmap(0, 35232, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4010c000
mprotect(0x40114000, 2464, PROT_NONE)   = 0
mmap(0x40114000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x7000) = 0x40114000
close(3)                                = 0
munmap(0x40013000, 22440)               = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=1196, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40013000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1196
close(3)                                = 0
munmap(0x40013000, 4096)                = 0
stat("/var/qmail/alias", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
write(1, "alias\000521\000518\0/var/qmail/alias\0\0"...,
33alias521518/var/qmail/alias) = 33
_exit(0)



-----Original Message-----
From: Dave Sill [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 10, 2000 1:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems with qmail-pw2u


Chris Tolley <[EMAIL PROTECTED]> wrote:

>I was wondering if anyone could point me in the right direction.  I'm using
>RedHat 6.1 with MD5 and Shadow passwords on my systems and am using both an
>RPM install of qmail-1.03 with a few patches on one system and the source
>version on another system.  When I attempt to run:
>
>/usr/bin/qmail/qmail-pw2u </etc/passwd >/etc/qmail/users/assign
>
>I get the error:
>qmail-pw2u: fatal: unable to find alias user

Try:

  strace /usr/bin/qmail/qmail-getpw alias

Look at the output to see where it's failing. Post it here if you
can't figure it out.

-Dave

Reply via email to