HP OpenVMS Systems

ask the wizard
Content starts here

changing process personas? (UNIX vfork)

» close window

The Question is:

 
Hi,
 
We are a software vendor and our software is written for verious UNIX
platforms. I am trying to port the software to OVMS and due to the fact the
software uses fork (vfork) to create a subprocess I need to set the
ownership of the child process to another
 user. This is done under UNIX with seteuid and setegid. I found out that
these calls are not available. How can I set the ownership of the child
process to a different user?
Thanks in advance
 
Bahram
 
 


The Answer is :

 
  The OpenVMS Wizard strongly encourages reading through the existing
  OpenVMS documentation, particularly the OpenVMS system management and
  system security documentation, as well as the programming concepts.
 
  Areas of OpenVMS that will differ markedly from UNIX include system
  security, and process creation and control operations.
 
  OpenVMS has rather more security context to the process than the UIC
  -- what UNIX refers to as the UID and GID.  Switching to the persona
  of another username involves the use of the persona system services.
 
  The typical approach used to create a process under another username
  involves the persona system services followed by a sys$creprc to create
  a detached process, then a persona assume back to the original persona.
  (OpenVMS does not normally have subprocesses operating under disparate
  usernames.)
 
  With V7.2, threads can have individual personas, permitting a single
  process to operate across available processors in an SMP system, and
  with each thread potentially operating under a different username.
  The persona system services available in V7.2 permit thread-level
  operations.
 

answer written or last revised on ( 18-MAR-1999 )

» close window