home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!murphy!jpradley!colorne!dfilip
- From: dfilip@colorne.colornet.com
- Newsgroups: comp.os.vms
- Subject: Re: How to create process on behalf of another userid
- Keywords: cmkrnl
- Message-ID: <35@colorne.colornet.com>
- Date: 5 Nov 92 02:27:01 GMT
- References: <1992Oct27.111224.3901@arizona.edu>
- Distribution: world
- Organization: ColorNet Information Systems
- Lines: 47
-
- Aaron Leonard writes :
- >wdh@holos0.uucp (Weaver Hickerson) writes:
- >|
- >| How can a program, with full privileges, create a process that takes on the
- >| access privileges and user id of a specified user? I need to do this
- >| without using the SUBMIT/user=xxx routine - I don't want to create a
- >| separate batch job but I would like to create an asynchronous child process
- >| that can operate under a specified user id.
- >|
- >| I know it can be done because SUBMIT does it. I've got this working now
- >| using SUBMIT and mailboxes. Can I get that sumbit out of there?
- >
- >$GETUAI everything you can about the user. Jump into kernel mode
- >and change your username (and account string if you care). $CREPRC
- >the process. (If you want the process to run DCL, specify LOGINOUT as
- >the image name, and use the AUTHORIZE flag.) Then go back into
- >kernel mode and change your username (and account) back.
-
- This works, but any hacking of the JIB (or the PCB, or any of the other
- VMS data structures) is not OFFICIALLY supported by DEC. I called Colorado
- a while back with the same question, and they said that DEC had no officially
- supported way of doing this other than creating a batch job (although you
- don't have to use SUBMIT w/mailboxes : call $SNDJBC directly to create your
- batch job). When I mentioned that I had hacked a small piece of code to
- hack the JIB, and (in my case) LIB$SPAWN() took the new username, I was reminded
- that DEC did not support that method.
-
- Of course, they are protecting themselves, since you can create some pretty
- weird crashes if you don't know what you are doing, and DEC dosn't want
- to chase their tails on support calls caused by CMKRNL code messing up
- the scheduling database. But just wanted to make sure that the original
- poster understood this.
-
- (please send all flames regarding what programmers who don't know what they
- are doing but writing kernel mode code deserve to either my PRIVATE mailbox
- or NLA0:).
-
- Regards,
-
- Dave.
- --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- = David E. Filip UUCP : dfilip@colornet.com =
- = ColorNet Information Systems CIS : 76430,3111 =
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- = Standards are wonderful 'cause there are so many to choose from ! =
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-