Subject: sendmail:cannot create temp file
To: None <netbsd-users@netbsd.org>
From: Wojciech Puchar <wojtek@tensor.3miasto.net>
List: netbsd-users
Date: 10/10/2002 08:39:28
i'm executing (with popen) /usr/bin/mail from cgi program (written in C).
cgi's are started with suexec. when mail is started it ends with that:


Oct 10 08:32:19 serwer sendmail[6570]: g9A6WJh06570: SYSERR(admin):
collect: Cannot write ./dfg9A6WJh06570 (bfcommit, uid=50107): Permission
denied
Oct 10 08:32:19 serwer sendmail[6570]: g9A6WJh06570: from=admin, size=245,
class=0, nrcpts=2, relay=admin@localhost
Oct 10 08:32:19 serwer sendmail[6570]: g9A6WJh06570:   0: fl=0x0,
mode=100644: size=245
Oct 10 08:32:19 serwer sendmail[6570]: g9A6WJh06570:   1: fl=0x1,
mode=140000: SOCK localhost->localhost
Oct 10 08:32:19 serwer sendmail[6570]: g9A6WJh06570:   2: fl=0x9,
mode=100644: size=728
Oct 10 08:32:19 serwer sendmail[6570]: g9A6WJh06570:   3: fl=0x0,
mode=100644: size=32768
Oct 10 08:32:19 serwer sendmail[6570]: g9A6WJh06570:   4: fl=0x2,
mode=140000: SOCK localhost->[[UNIX: /var/run/log]]
Oct 10 08:32:19 serwer sendmail[6570]: g9A6WJh06570:   5: fl=0x1,
mode=20666: CHR: size=0
Oct 10 08:32:19 serwer sendmail[6570]: g9A6WJh06570: SYSERR(admin):
queueup: cannot create queue temp file ./tfg9A6WJh06570, uid=50107:
Permission denied


executing same command from same user by hand works fine.
/var/log/httpd/suexec shows:

[2002-10-10 08:26:59]: info: (target/actual) uid: (admin/admin) gid:
(users/users) cmd: cgimail.cgi

so looks it works right.


any ideas?


sendmail has root suid in /usr/libexec/sendmail but looks like it doesn't
work that case. is it possible?