Re: Fnord 1.8 on uClinux and Question Concerning Symlinks

Uwe Beutin <[email protected]> Wed, 14 Sep 2005 17:11:48 +0200
Newsgroups gmane.comp.web.fnord
Message-ID <[email protected]>
Felix von Leitner wrote:

> 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.

I am using a simple inetd and have tried running fnord as root or user fnord and
have changed the rw priviledges of /var/log/messages accordingly. I am not
chrooting fnord, either... so #define SYSTEM_SYMLINK_DEREF should, if I have
understood this correctly, make symlinks work.. hm :(

# pwd ; ls -l
/home/httpd
lrwxrwxrwx    1 0        0              22 log.txt -> ../../var/log/messages
-rw-r--r--    1 0        0            1094 validate.js
-rw-r--r--    1 0        0            3379 av_script.js
-rw-r--r--    1 0        0              89 footer.txt
-rw-r--r--    1 0        0             337 header.txt
-rw-r--r--    1 0        0            3877 favicon.ico
-rw-r--r--    1 0        0            1452 avswitch.css
-rw-r--r--    1 0        0            7613 av_help.html
-rw-r--r--    1 0        0             370 index.html
drwxr-xr-x    1 0        0              32 cgi-bin

# ls -l /var/log
-rw-r--r--    1 0        0            1048 messages
-rw-r--r--    1 0        0             345 log.txt

# cat /etc/inetd.conf
# This is the modified inetd.conf to start the fnord web server
#
telnet stream tcp nowait root /bin/telnetd
80 stream tcp nowait fnord /bin/httpd /home/httpd

Thank you very kindly for your support!

	Uwe