home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:4757 comp.unix.questions:13528 comp.unix.programmer:5320 comp.unix.internals:1960
- Newsgroups: comp.unix.wizards,comp.unix.questions,comp.unix.programmer,comp.unix.internals
- Path: sparky!uunet!gumby!wupost!darwin.sura.net!eng.ufl.edu!msm
- From: msm@eng.ufl.edu (Michael S. McLean)
- Subject: Re: Changing the owner of a process
- Message-ID: <1992Nov17.200813.18997@eng.ufl.edu>
- Keywords: process owner
- Sender: msm@mailbox.eng.ufl.edu (Michael S. McLean)
- Organization: Engineering Computing Services - Univ. of Fl.
- 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>
- Date: Tue, 17 Nov 92 20:08:13 GMT
- Lines: 24
-
- In article <1992Nov17.142837.21252@dale.ksc.nasa.gov>, eposnak@dale.ksc.nasa.gov (Ed Posnak) writes:
- |>
- |> What I was looking for was something along the lines of how to change the
- |> effective user id of a process who's source I may not be able to modify, by
- |> some other means, e.g. from another process. Many suggested writing a device
- |> driver or system call to do this. Here is one answer along those lines.
- |> ---
- |>
- |> This is one of those dirty tricks I've always wanted to get around to
- |> figuring out a way to do... (without kernel source, that is)
- |>
- |> I believe it could be done by writing a device driver. Open the device
- |> driver and write commands to it, and it does the dirty work. For
- |> instance, send it 8 bytes containing the process to change and the uid
- |> to change it to.
-
- There is no need to write another device driver for this. /dev/kmem will
- suffice.
-
- --
- Michael S. McLean (msm@eng.ufl.edu)
- Engineering Computing Systems "Imagination is the one weapon
- College of Engineering in the war against reality."
- University of Florida -- Jules de Gaultier
-