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