<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: using sys$persona_create in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247817#M15062</link>
    <description>Used sys$setprv and found out that the process has got no privileges! Damn. Is a server process and it basically accepts client's commands ,creates another process(sys$creprc) and executes the command using LOGINOUT and sends the results back to the client.&lt;BR /&gt;When the client sends a "show proc/priv" to the server process it returns&lt;BR /&gt;&lt;BR /&gt;User: System&lt;BR /&gt;&lt;BR /&gt;Authorize privileges:&lt;BR /&gt;SETPRV ....&lt;BR /&gt;&lt;BR /&gt;Process privileges:&lt;BR /&gt;...&lt;BR /&gt;impersonate&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Process rights:&lt;BR /&gt;SYSTEM..&lt;BR /&gt;&lt;BR /&gt;But when i check the process privilege in the code using sys$setprv it returns no privileges!&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Aug 2008 13:16:02 GMT</pubDate>
    <dc:creator>vaxine</dc:creator>
    <dc:date>2008-08-07T13:16:02Z</dc:date>
    <item>
      <title>using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247810#M15055</link>
      <description>hi all,&lt;BR /&gt;I am having problems using sys$persona_create to assign a username to a process. The calling process has SYSTEM privilege but sys$persona_create function is returning SS$_NOIMPERSONATE error! The SYSTEM privilege contains the IMPERSONATE privilege. Any suggestion will be helpfull.&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Aug 2008 08:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247810#M15055</guid>
      <dc:creator>vaxine</dc:creator>
      <dc:date>2008-08-07T08:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247811#M15056</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How 'bout: -&lt;BR /&gt;&lt;BR /&gt;$set proc/priv=impersonate&lt;BR /&gt;&lt;BR /&gt;$set proc/priv=detach&lt;BR /&gt;&lt;BR /&gt;Cheers Richard Maher</description>
      <pubDate>Thu, 07 Aug 2008 09:24:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247811#M15056</guid>
      <dc:creator>Richard J Maher</dc:creator>
      <dc:date>2008-08-07T09:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247812#M15057</link>
      <description>i have tried both!</description>
      <pubDate>Thu, 07 Aug 2008 09:34:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247812#M15057</guid>
      <dc:creator>vaxine</dc:creator>
      <dc:date>2008-08-07T09:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247813#M15058</link>
      <description>Any chance of showing real commands and real output?</description>
      <pubDate>Thu, 07 Aug 2008 09:39:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247813#M15058</guid>
      <dc:creator>Richard J Maher</dc:creator>
      <dc:date>2008-08-07T09:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247814#M15059</link>
      <description>The code folllows and it returns SS$_NOIMPERSONATE error.&lt;BR /&gt;&lt;BR /&gt;   int sts;&lt;BR /&gt;    uint persona;&lt;BR /&gt;&lt;BR /&gt;    sts = sys$persona_create(&lt;BR /&gt; &amp;amp;persona,&lt;BR /&gt; opus_descrip(_username),&lt;BR /&gt; 0,&lt;BR /&gt; 0,&lt;BR /&gt; 0);&lt;BR /&gt;    if ((sts &amp;amp; 1) == 0)&lt;BR /&gt;    {&lt;BR /&gt; set_error(sts);&lt;BR /&gt; return false;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    sts = sys$persona_assume(&lt;BR /&gt; &amp;amp;persona,&lt;BR /&gt; 0,&lt;BR /&gt; 0);&lt;BR /&gt;    if ((sts &amp;amp; 1) == 0)&lt;BR /&gt;    {&lt;BR /&gt; set_error(sts);&lt;BR /&gt; return false;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;This process is a server process with SYSTEM privilege (which include IMPERSONATE privilege).</description>
      <pubDate>Thu, 07 Aug 2008 11:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247814#M15059</guid>
      <dc:creator>vaxine</dc:creator>
      <dc:date>2008-08-07T11:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247815#M15060</link>
      <description>uint persona;&lt;BR /&gt;&lt;BR /&gt;How have you define the unsigned int ?</description>
      <pubDate>Thu, 07 Aug 2008 11:36:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247815#M15060</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2008-08-07T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247816#M15061</link>
      <description>Prove it. &lt;BR /&gt;&lt;BR /&gt;Implement and issue a sys$setprv call and light up IMPERSONATE and enough to access SYSUAF (and check for errors from the call) -- or fetch the current privilege mask and see what privilege bits are lit -- just before the failing sys$persona_create call, and call us back with the results.&lt;BR /&gt;&lt;BR /&gt;Don't assume it.&lt;BR /&gt;&lt;BR /&gt;Here's an example program you can start with from within Jim Duff's stash of C code, if your current application code is larger and accordingly unwieldy:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.eight-cubed.com/examples/framework.php?file=sys_persona.c" target="_blank"&gt;http://www.eight-cubed.com/examples/framework.php?file=sys_persona.c&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Aug 2008 11:40:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247816#M15061</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-08-07T11:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247817#M15062</link>
      <description>Used sys$setprv and found out that the process has got no privileges! Damn. Is a server process and it basically accepts client's commands ,creates another process(sys$creprc) and executes the command using LOGINOUT and sends the results back to the client.&lt;BR /&gt;When the client sends a "show proc/priv" to the server process it returns&lt;BR /&gt;&lt;BR /&gt;User: System&lt;BR /&gt;&lt;BR /&gt;Authorize privileges:&lt;BR /&gt;SETPRV ....&lt;BR /&gt;&lt;BR /&gt;Process privileges:&lt;BR /&gt;...&lt;BR /&gt;impersonate&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Process rights:&lt;BR /&gt;SYSTEM..&lt;BR /&gt;&lt;BR /&gt;But when i check the process privilege in the code using sys$setprv it returns no privileges!&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Aug 2008 13:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247817#M15062</guid>
      <dc:creator>vaxine</dc:creator>
      <dc:date>2008-08-07T13:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247818#M15063</link>
      <description>vaxine,&lt;BR /&gt;&lt;BR /&gt;  I think you need to show us exactly how this process is created. $CREPRC is a deceptively difficult service to use and get precisely the results you require, especially when it comes to quotas and privileges. Running LOGINOUT makes it even trickier.&lt;BR /&gt;&lt;BR /&gt;  There are a LOT of notes in the documentation, and numerous combinations of parameters, flags and other item list entities that don't make a whole lot of sense. Make sure you understand exactly what your resultant process should look like, and carefully read through the System Services Reference Manual to work out how to get there. &lt;BR /&gt;&lt;BR /&gt;  Be wary of just copying someone elses code without careful analysis and making sure you understand what it's doing. Note that in the official HP course teaching system service programming, there was a moderately serious bug in the $CREPRC example which was undetected for more than a decade. As far as I know it's still there.&lt;BR /&gt;&lt;BR /&gt;  I'd recommend starting by making the target image/procedure for your detached process just issue SHOW PROCESS commands to validate that you're getting exactly what you want from the $CREPRC, then worry about implementing more complex stuff like personae.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Aug 2008 20:30:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247818#M15063</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-08-07T20:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: using sys$persona_create</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247819#M15064</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Look, I've attached a .COM file that may help. @(at) that with privs on then: -&lt;BR /&gt;&lt;BR /&gt;$set proc/priv=(noall,sysprv)&lt;BR /&gt;$run become&lt;BR /&gt;&lt;BR /&gt;and see if you get the same results as I do.&lt;BR /&gt;&lt;BR /&gt;Cheers Richard Maher</description>
      <pubDate>Fri, 08 Aug 2008 09:05:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sys-persona-create/m-p/4247819#M15064</guid>
      <dc:creator>Richard J Maher</dc:creator>
      <dc:date>2008-08-08T09:05:12Z</dc:date>
    </item>
  </channel>
</rss>

