home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / Misc / HigherEducationMailbox.mbox / Archives_provide_val_.attach / May_91 / os.260 < prev    next >
Text File  |  1991-05-21  |  431b  |  13 lines

  1. setuid Terminal Shell os
  2.  
  3. Q:  Why are Terminal and Shell setuid programs?
  4.  
  5. A:  Terminal and Shell both need to be setuid root because the children that they fork require ownership of a /dev/ptynn entry.  The parent (Terminal or Shell) chown's the /dev/pty entry to the ownership of the user.  After the child exit()'s, the parent (Terminal or Shell) chown's the /dev/pty entry back to root.
  6.  
  7. QA260
  8.  
  9. Valid for 1.0 
  10. Valid for 2.0 
  11.  
  12.  
  13.