On Mon, Dec 15, 2003 at 06:01:25PM +0100, Thomas Seifert wrote:
> Michiel Boland wrote:
>
> >>I need to redirect all logs to stdout, but this doesn't work on Linux.
> >>/dev/stdout on Linux is a symlink into /proc and the device ownership
> >>is determined by the UID of the invoking user. User ``www'' cannot write
> >>to stdout owned by root... Any ideas?
> >>
> >>
> >
> >Are you saying that, on Linux, the permissions on /dev/stdout are not
> >0666?
Yes. This is what I see on Linux:
lrwxrwxrwx 1 root root 4 Dec 21 2002 /dev/stdout -> fd/1
l-wx------ 1 root root 64 Dec 15 21:29 /dev/fd/1 -> pipe:[66682]
> >
> >Anyway, if I have some time I will try to create a workaround.
> >
> >
>
> Hmm, Redhat 7.2 here ...
> $ ls -l /dev/stdout
> lrwxrwxrwx 1 root root 17 Oct 24 2002 /dev/stdout ->
> ../proc/self/fd/1
>
>
> no problem afaik :).
Are you sure? ../proc/self/fd/1 is a symlink by itself.
See the output of `ls -la ../proc/self/fd/1`.
--
DV