home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / admin / 6073 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.8 KB  |  38 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!sdd.hp.com!news.cs.indiana.edu!nstn.ns.ca!cs.dal.ca!silvert
  3. From: silvert@cs.dal.ca (Bill Silvert)
  4. Subject: Re: Limited telnet program?
  5. Message-ID: <Bx9tvG.ArI@cs.dal.ca>
  6. Sender: usenet@cs.dal.ca (USENET News)
  7. Nntp-Posting-Host: cs.cs.dal.ca
  8. Reply-To: silvert@biome.bio.ns.ca (Bill Silvert)
  9. Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
  10. References: <Bx9MK3.4nL@techbook.com>
  11. Distribution: na
  12. Date: Fri, 6 Nov 1992 01:38:03 GMT
  13. Lines: 23
  14.  
  15. In <Bx9MK3.4nL@techbook.com> jamesd@techbook.com (James Deibele) writes:
  16.  
  17. >I would like to set up a limited telnet program for people to use.
  18. >Specifically, I'd like to provide local librarians a way of telneting to
  19. >selected online library catalogs via a menu.  If the telnet to that site
  20. >fails, I would want the telnet program to exit with an error level,
  21. >which I could then catch with a shell or program.  I don't want people
  22. >who use this account to be able to exit to a shell from within telnet,
  23. >and I don't want them to be able to telnet elsewhere.
  24.  
  25. Instead of hacking telnet, why not just restrict the account they log in to?
  26. I've set up accounts which run programs as shells.  For example, if you
  27. decide to use gopher as the menu program, write a program (I can provide
  28. an example) which sets the TERM=vt100 and SHELL=/dev/null environment
  29. variables and then runs gopher.
  30.  
  31. As for restricting where they telnet, you can always write a program
  32. that uses a system call to run telnet, but you will have to make sure
  33. that telnet is not available to them directly.  Perhaps with chroot?
  34. -- 
  35. William Silvert, Habitat Ecology Division, Bedford Inst. of Oceanography
  36. P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2.  Tel. (902)426-1577
  37. InterNet Address: silvert@biome.bio.ns.ca
  38.