home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4757 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.9 KB

  1. Xref: sparky comp.unix.wizards:4757 comp.unix.questions:13528 comp.unix.programmer:5320 comp.unix.internals:1960
  2. Newsgroups: comp.unix.wizards,comp.unix.questions,comp.unix.programmer,comp.unix.internals
  3. Path: sparky!uunet!gumby!wupost!darwin.sura.net!eng.ufl.edu!msm
  4. From: msm@eng.ufl.edu (Michael S. McLean)
  5. Subject: Re: Changing the owner of a process
  6. Message-ID: <1992Nov17.200813.18997@eng.ufl.edu>
  7. Keywords: process owner
  8. Sender: msm@mailbox.eng.ufl.edu (Michael S. McLean)
  9. Organization: Engineering Computing Services - Univ. of Fl.
  10. References: <1992Oct29.162445.23551@eng.ufl.edu> <1cpjs4INNn3@early-bird.think.com> <1992Nov5.152833.27744@dale.ksc.nasa.gov> <1992Nov17.142837.21252@dale.ksc.nasa.gov>
  11. Date: Tue, 17 Nov 92 20:08:13 GMT
  12. Lines: 24
  13.  
  14. In article <1992Nov17.142837.21252@dale.ksc.nasa.gov>, eposnak@dale.ksc.nasa.gov (Ed Posnak) writes:
  15. |> 
  16. |> What I was looking for was something along the lines of how to change the 
  17. |> effective user id of a process who's source I may not be able to modify, by 
  18. |> some other means, e.g. from another process.  Many suggested writing a device
  19. |> driver or system call to do this.  Here is one answer along those lines. 
  20. |> ---
  21. |> 
  22. |> This is one of those dirty tricks I've always wanted to get around to
  23. |> figuring out a way to do... (without kernel source, that is)
  24. |> 
  25. |> I believe it could be done by writing a device driver. Open the device
  26. |> driver and write commands to it, and it does the dirty work. For
  27. |> instance, send it 8 bytes containing the process to change and the uid
  28. |> to change it to.
  29.  
  30. There is no need to write another device driver for this.  /dev/kmem will
  31. suffice.
  32.  
  33. -- 
  34. Michael S. McLean (msm@eng.ufl.edu)                
  35. Engineering Computing Systems             "Imagination is the one weapon
  36. College of Engineering                     in the war against reality."
  37. University of Florida                         -- Jules de Gaultier
  38.