home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / pty4 / part03 / IMPACT < prev    next >
Encoding:
Text File  |  1992-02-19  |  2.4 KB  |  50 lines

  1.   [ pty ]
  2. > Is it self-contained, or does it
  3. > require other mods?
  4.  
  5. There are certain decisions which anyone installing pty has to make:
  6.  
  7. 1. Should pty run setuid root, or setuid some other user, say ``pty''?
  8. If the latter, then the new user should be added to /etc/passwd, and it
  9. would help to have utmp and wtmp owned by that user. It's generally
  10. simpler to have pty running setuid root. This also lets it chown and
  11. chmod tty device files.
  12.  
  13. 2. pty's INSTALL program copies the binaries to some directory, and sets
  14. up a directory where pty can store session information. Where do those two
  15. directories go? The defaults are /usr/local/ptybin and /usr/local/etc/pty.
  16. pty also maintains four session log files analogous to utmp/wtmp, all in
  17. /usr/local/etc by default.
  18.  
  19. 3. pty comes with some clones of existing programs: biff, lock, mesg,
  20. script, tty, users, wall, who, whoami, write. In many cases these offer
  21. features beyond the standard versions: for instance, if pty has write
  22. permission to utmp, then script (which is just a tiny shell script) will
  23. have a utmp entry, so talk/mail/write/etc. will work. Should they
  24. replace the system versions?
  25.  
  26. 4. pty comes with some programs which belong in rc.local: utmpinit does a
  27. more professional job of utmp initialization than init does; sessnowinit
  28. and scnowinit initialize pty's session log files. Should these be added to
  29. rc.local?
  30.  
  31. 5. pty comes with some programs which belong in daily, weekly, or monthly
  32. cron scripts: wtmprotate, sessrotate, and sclogrotate. On any modern
  33. system, of course, wtmp is rotated anyway, but should sessrotate and
  34. sclogrotate be added to cron scripts? One other program, checkptys,
  35. produces a report on the entire pty subsystem, and can also be run from
  36. cron.
  37.  
  38. 6. pty comes with some other utilities not directly related to session
  39. management. For instance, trecord and tplay make typescripts in a
  40. special format which includes the timing between characters. My tscript
  41. utility works just like script but makes a tapescript which you can play
  42. back later. (This is great for talk conversations and other interactive
  43. sessions.) Should these utilities be part of a user's standard path?
  44. Should pty itself be part of a user's standard path?
  45.  
  46. 7. Should some secure ttys be set aside for pty's use? It's easy to
  47. configure pty so that it only uses (e.g.) tty[u-z]*, which are always
  48. mode 600 root rather than mode 666 root. Or pty can just compete for
  49. insecure ttys like everyone else.
  50.