Tclhttpd Starting Problems

Error: Couldn't open /tmp/tclhttpd.default: permission denied

2006-11-26

This error occurs in Slackware 10.x. The configuration file, bin/tclhttpd.rc, sets Config uid and Config gid to 50 by default. This conflicts with the Slackware default ftp group which is also 50.

Solution:

  • Comment out the original Config uid and Config gid lines.
  • Copy the lines.
  • Check /etc/group for the IDs for nobody and nogroup.
  • Change Config uid and Config gid to match your /etc/group IDs.
 # uid - the server executes as the following user ID.
 # If you have TclX available, these can be user names.
 # If you use the simple "setuid" extension, this must be a number.

 #Config uid             50
 Config uid              99

 # gid - the server executes as the following group ID.
 # If you are using .tml templates then the server will try
 # to cache corresponding .html files.  Put the server into
 # the group that has write permission to the htdocs area
 # so it can do this.  If it cannot write the cache files it
 # just has to process the template on every URL request.

 #Config gid             50
 Config gid              99