home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / gopher / 1079 < prev    next >
Encoding:
Text File  |  1992-07-26  |  2.0 KB  |  43 lines

  1. Newsgroups: alt.gopher
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!caen!mtu.edu!splite
  3. From: splite@mtu.edu (Steven Plite)
  4. Subject: problems with gopherd under inetd
  5. Message-ID: <1992Jul27.035950.7779@mtu.edu>
  6. Organization: Michigan Technological University
  7. Date: Mon, 27 Jul 1992 03:59:50 GMT
  8. Lines: 33
  9.  
  10. I'm having a problem in getting gopherd to use both a log and a security file.
  11. The relevent line in inetd.conf is:
  12.  
  13. gopher  stream  tcp     nowait  root    /local/mining/lib/gopherd       gopherd
  14. -I -l /local/mining/gopher/.log -s /local/mining/gopher/.secure /local/mining/go
  15. pher 70
  16.  
  17. If I remove either the '-l ...' or the '-s ...' part, it works.  If both are
  18. present, the server won't grant access.  My gopher directory looks like so:
  19.  
  20. drwxr-xr-x  2 root          512 Jul 26 23:41 ./
  21. drwxr-xr-x 16 root          512 Jul 25 15:41 ../
  22. -rw-------  1 root            0 Jul 26 23:40 .log
  23. -rw-------  1 root            2 Jul 26 23:42 .secure
  24. -rw-r--r--  1 root           16 Jul 25 15:46 readme
  25.  
  26. This is under SunOS 4.1.1, for what it's worth.  Firing up a gopherd from the
  27. command line with both '-l' and '-s' works fine.  Any help (including spare
  28. hair: I've ripped out most of mine...) would be appreciated.
  29.  
  30. Also, I can't run gopherd from inetd with '-u' without '-c' (altough the man
  31. page says one can.)  It looks like a chroot is done before every command
  32. received-- unfortunately, the uid is changed the first time through, so
  33. the chroot fails.  I fixed this by using seteuid instead of setuid, then
  34. temporarily changing back to uid 0 to do the chroot.  This fixed the problem
  35. when running gopherd from the command line, but inetd was still no go.
  36. Any suggestions?  (Sorry if this is old news, but I've read all the articles
  37. we have in alt.gopher without luck.)  Thanks in advance.
  38.                                 -- splite
  39. -- 
  40. _______________________________________________________________________________
  41. Steven Plite  [splite@mtu.edu] or      Department of Mining Engineering, MTU
  42.               [splite@mtus5.bitnet]    Academic Computing Services, MTU
  43.