Re: Fnord 1.8 on uClinux and Question Concerning Symlinks

Felix von Leitner <[email protected]> Wed, 14 Sep 2005 13:30:10 +0200
Newsgroups gmane.comp.web.fnord
Message-ID <[email protected]>
Thus spake Uwe Beutin ([email protected]):
> I am running 1.8 on a uClinux host and would like to have access to the syslog
> file /var/log/messages through my web interface. Since the system has only a
> ROMFS I did a symbolic link of messages in my RAM disk via

> ln -s /var/log/messages /home/httpd/log.txt

fnord does this substitution for links it cannot open.

Either the destination file is not readable for the user fnord is
running under, or fnord can not open the file.

If you run the default fnord as root, it chroots to the web root, which
means it can not open files outside the web root.  In this case you
would need a hard link instead of a symbolic link.  Or you would have to
run fnord as non-root, so it does not chroot.

Felix