RE: vQregister not same as vadduser

"Mark Dennis" <[email protected]>
Newsgroups gmane.mail.vpopmail
Message-ID <000801cc2a03$ddfe97e0$99fbc7a0$@net>
<On 06/13/2011 10:35 AM, Mark Dennis wrote:
>> It seems like I'm close, but just circling the problem - can you tell
what
>> I'm missing?
>
>Try to su to the vpopmail user and access these files.
This works

>Do you have an SELinux/AppArmor/etc type protection enabled that may be
blocking it?
No

>I can't really think of anything else off the top of my head.  strace
>will be your friend here.

I renamed vqregister.cgi to vqregister.cgi.orig
And using vim created vqregister.cgi with same permissions/ownership:
#!/bin/sh
/usr/bin/strace -f -o /tmp/strace.$$ "$0".orig "&@"

But I have introduced a problem, since submitting the form now gives:
Unrecoverable Error: Although the domain you requested is available for
signup, this server does not yet support it.


And the end of the trace:
6334  getcwd("/var/www/cgi-bin/vqregister"..., 255) = 28
6334  open("/var/qmail/users/cdb", O_RDONLY) = 3
6334  lseek(3, 1760, SEEK_SET)          = 1760
6334  read(3, "\270\10\0\0\2\0\0\0", 8) = 8
6334  lseek(3, 2232, SEEK_SET)          = 2232
6334  read(3, "\334\f\f\307Q\10\0\0", 8) = 8
6334  lseek(3, 2129, SEEK_SET)          = 2129
6334  read(3, "\r\0\0\0009\0\0\0", 8)   = 8
6334  read(3, "!emailrd.com-", 13)      = 13
6334  fstat64(3, {st_mode=S_IFREG|0644, st_size=2264, ...}) = 0
6334  mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f9b000
6334  read(3, "emailrd.com\000508\000503\0/home/vpopma"..., 4096) = 114
6334  close(3)                          = 0
6334  munmap(0xb7f9b000, 4096)          = 0
6334  geteuid32()                       = 48
6334  umask(077)                        = 022
6334  geteuid32()                       = 48
6334  getcwd("/var/www/cgi-bin/vqregister"..., 300) = 28
6334  open("/home/vpopmail/domains/emailrd.com/.qmailadmin-limits",
O_RDONLY) = -1 EACCES (Permission denied)
6334  open("/home/vpopmail/etc/vlimits.default", O_RDONLY) = 3
6334  read(3, "# Default limits file.  This fil"..., 2048) = 1161
6334  read(3, "", 887)                  = 0
6334  close(3)                          = 0
6334  chdir("/home/vpopmail/domains/emailrd.com") = -1 EACCES (Permission
denied)
6334  chdir("/var/www/cgi-bin/vqregister") = 0
6334  fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
6334  mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f9b000
6334  open("html/error.html", O_RDONLY) = 3
6334  fstat64(3, {st_mode=S_IFREG|0644, st_size=267, ...}) = 0
6334  mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f9a000
6334  read(3, "<HTML><HEAD><TITLE>Unrecoverable"..., 4096) = 267
6334  read(3, "", 4096)                 = 0
6334  close(3)                          = 0
6334  munmap(0xb7f9a000, 4096)          = 0
6334  write(1, "Content-type: text/html\n\n<HTML><"..., 384) = 384
6334  exit_group(0)                     = ?

drwx------ 25 vpopmail vchkpw 4096 Jun 13 11:43 emailrd.com
-rw-------  1 vpopmail vchkpw   52 Jun 13 10:44 .qmailadmin-limits

For grins I tried it with both of these apache.apache with the same result.


!DSPAM:4df66b4832711459921299!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.