RE: Publicfile not logging
"Lord, Steve (ISS London)" <[email protected]> Fri, 5 Jul 2002 10:19:44 -0400
| Newsgroups | gmane.comp.djb.publicfile |
|---|---|
| Message-ID | <ABE0BC1A1BB1D411A09F00306E00B3A2A29C39@MSGLOND01> |
>
> # cd /service/httpd/log
> # ./run
>
> What do you see?
Ok, I strace'd it and spotting it setuid32 and setgid32 to ftplog, before
trying to open /usr/local/bin/multilog - which is symlinked to
/command/multilog, which in turn is symlinked to a normal user's home
directory. After moving everything to /usr/src/admin, I straced again. It
drops privs to ftplog then does this:
mkdir("/service/httpd/log/main", 0700) = -1 EACCES (Permission denied)
open("/service/httpd/log/main", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission
denied)
write(2, "multilog: fatal: unable to open "..., 81multilog: fatal: unable to
open directory /service/httpd/log/main: access denied
) = 81
_exit(111) = ?
It can't make main as it already exists. If I change the permissions on
/service/httpd/log/main to 0700 it still can't open the directory, even when
owned by ftplog. Why would it do this?