<?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: Detached processes in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326492#M2952</link>
    <description>Wim,&lt;BR /&gt;&lt;BR /&gt;  Without resorting to persona services, there is really only ONE supported way to start any process under a different USERNAME and that's SUBMIT/USER=other-user&lt;BR /&gt;&lt;BR /&gt;  RUN/UIC does NOT change the username, it just changes the UIC. To get a detached process in another username, put your RUN/DETACHED command into a procedure and SUBMIT/USER it with the required username.&lt;BR /&gt;&lt;BR /&gt;  It doesn't matter how much you want to argue about this, or complain, if you want a supported solution, SUBMIT/USER is IT, period! Many people have built complex privileged code to try and adjust all the data structures required to switch username, but they ALWAYS break with new versions (which usually means a system crash), and they rarely get all the bits that are required anyway.&lt;BR /&gt;&lt;BR /&gt;  Note that even persona services don't really give you a true change in username. They're really designed to be used by a server process to behave "as if" it were running as a different username. That's subtly different from actually "being" that username.&lt;BR /&gt;&lt;BR /&gt;  /AUTHORIZE only does anything if the image is LOGINOUT.EXE. If it is included, MOST of the other qualifiers are overridden by the UAF values of the CURRENT USERNAME. UIC isn't actually ignored, the process starts out with the UIC you specify, but it gets overridden by the UIC from the UAF record (same for quotas and process name).&lt;BR /&gt;</description>
    <pubDate>Thu, 08 Jul 2004 23:35:41 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2004-07-08T23:35:41Z</dc:date>
    <item>
      <title>Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326480#M2940</link>
      <description>I have a process running under the SYSTEM account. Now I want to create a detached process under the XXX account AND one that has executed the login.com of the XXX account.&lt;BR /&gt;&lt;BR /&gt;I only want to know if this is posible with the run command (process). Not interrested in other solutions.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 08 Jul 2004 09:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326480#M2940</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-07-08T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326481#M2941</link>
      <description>While on the subject :&lt;BR /&gt;run loginout /inp/outp/detach/auth&lt;BR /&gt;&lt;BR /&gt;If I remove the /auth I get the same kind of process (logicals, quotas). What is the logic of this ? Is /auth added if /deta is used ? Or is it because loginout creates a new process and always uses /auth to create them ?&lt;BR /&gt;&lt;BR /&gt;Wim (confused)</description>
      <pubDate>Thu, 08 Jul 2004 09:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326481#M2941</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-07-08T09:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326482#M2942</link>
      <description>How about /UIC qualifier.&lt;BR /&gt;&lt;BR /&gt;From help of Run/detach :&lt;BR /&gt;&lt;BR /&gt;   Creates a detached process with the same user identification code&lt;BR /&gt;       (UIC) as the current process. (To create a detached process with&lt;BR /&gt;       a different UIC, use the /UIC qualifier.)&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Lokesh Jain</description>
      <pubDate>Thu, 08 Jul 2004 09:47:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326482#M2942</guid>
      <dc:creator>Lokesh_2</dc:creator>
      <dc:date>2004-07-08T09:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326483#M2943</link>
      <description>Lokesh&lt;BR /&gt;&lt;BR /&gt;Nope. Tested it and login.com was not executed.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 08 Jul 2004 09:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326483#M2943</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-07-08T09:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326484#M2944</link>
      <description>Hi Wim,&lt;BR /&gt;&lt;BR /&gt;When you run it without /uic , then do it execute login.com of default UIC ?&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Lokesh</description>
      <pubDate>Thu, 08 Jul 2004 09:57:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326484#M2944</guid>
      <dc:creator>Lokesh_2</dc:creator>
      <dc:date>2004-07-08T09:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326485#M2945</link>
      <description>Lokesh,&lt;BR /&gt;&lt;BR /&gt;My finding are (for running loginout):&lt;BR /&gt;1) If /uic is used, the process user will still be the original user, the uic will&lt;BR /&gt;be set to the specified value and sylogin is executed. The login of the user is&lt;BR /&gt;not done, unless the uic matches the current user.&lt;BR /&gt;&lt;BR /&gt;2) If /auth is used, the /uic is ignored and a full login is done for the current&lt;BR /&gt;user.&lt;BR /&gt;&lt;BR /&gt;3) /detach means /uic=current_uic&lt;BR /&gt;&lt;BR /&gt;4) /auth makes all /quotas and /uic to be ignored&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 08 Jul 2004 10:01:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326485#M2945</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-07-08T10:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326486#M2946</link>
      <description>I think you have to create a DCL procedure containing the RUN command of the image - say its called ABC.COM&lt;BR /&gt;&lt;BR /&gt;RUN/DET/INP=ABC.COM/UIC=[X,Y]/AUTH/OUT=ABC.LOG SYS$SYSTEM:LOGINOUT.EXE&lt;BR /&gt;&lt;BR /&gt;this will get you are process with the correct uic and with DCL included. I don't think it would have ran the LOGIN.COM but you can add this to the DCL. &lt;BR /&gt;&lt;BR /&gt;I think the username will be yours</description>
      <pubDate>Thu, 08 Jul 2004 10:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326486#M2946</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-07-08T10:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326487#M2947</link>
      <description>Ian,&lt;BR /&gt;&lt;BR /&gt;That is just what I don't want. I want to be able to start it automatically ...&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 08 Jul 2004 10:23:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326487#M2947</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-07-08T10:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326488#M2948</link>
      <description>Wim,&lt;BR /&gt;I've tryed in past this without success :-(&lt;BR /&gt;So I've solved running a batch process with specific user: it isn't the same but helped me.&lt;BR /&gt;I'm interesting in this solution, if somebody can help you.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 12:38:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326488#M2948</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-07-08T12:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326489#M2949</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;from the deepest abysses in my memory - way back to VAX and VMS 4.something, I remember at that time LOGIN.COM (and SYLOGIN.COM) had to be excuted in the commandprocedure. RUN/DETACH did at that time not execute any login procedure, you had to program the invokation yourself.&lt;BR /&gt;&lt;BR /&gt;I know VMS has eveolved, and this probably as well. But it might be a solution to the problem, at least part of it.&lt;BR /&gt;&lt;BR /&gt;Willem</description>
      <pubDate>Thu, 08 Jul 2004 15:09:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326489#M2949</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2004-07-08T15:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326490#M2950</link>
      <description>My first idea was to modify SYLOGIN.COM to search for a file SYS$LOGIN:LOGIN_DETACHED.COM in which the users login procedure would be executed. &lt;BR /&gt;&lt;BR /&gt;Of course this would be too easy :-(&lt;BR /&gt;&lt;BR /&gt;I tried it with some extra commands in SYLOGIN.COM to make some extra checks.&lt;BR /&gt;&lt;BR /&gt;This is why it won't work:  &lt;BR /&gt;when I start a detached process as user SYSTEM with /UIC=XXX, even the SYS$LOGIN logical will still point to the login directory of user SYSTEM.&lt;BR /&gt; &lt;BR /&gt;You could of course get the right login procedure and path from SYSUAF in some way.&lt;BR /&gt;&lt;BR /&gt;I would go for the batch process as suggested in another answer. I use it a lot.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 16:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326490#M2950</guid>
      <dc:creator>Peter Hofman</dc:creator>
      <dc:date>2004-07-08T16:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326491#M2951</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;Is the original process (running as SYSTEM) running&lt;BR /&gt;a program or just some DCL?&lt;BR /&gt;We have this situation here.  Our solution...&lt;BR /&gt;The "monitor" process is running detached and&lt;BR /&gt;when it needs to start another detached process&lt;BR /&gt;under a different username it uses the $PERSONA&lt;BR /&gt;system services to become the user, then uses&lt;BR /&gt;$CREPRC to create a process running LOGINOUT and&lt;BR /&gt;supplying a procedure that runs the final image.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Dave</description>
      <pubDate>Thu, 08 Jul 2004 19:35:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326491#M2951</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2004-07-08T19:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326492#M2952</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;  Without resorting to persona services, there is really only ONE supported way to start any process under a different USERNAME and that's SUBMIT/USER=other-user&lt;BR /&gt;&lt;BR /&gt;  RUN/UIC does NOT change the username, it just changes the UIC. To get a detached process in another username, put your RUN/DETACHED command into a procedure and SUBMIT/USER it with the required username.&lt;BR /&gt;&lt;BR /&gt;  It doesn't matter how much you want to argue about this, or complain, if you want a supported solution, SUBMIT/USER is IT, period! Many people have built complex privileged code to try and adjust all the data structures required to switch username, but they ALWAYS break with new versions (which usually means a system crash), and they rarely get all the bits that are required anyway.&lt;BR /&gt;&lt;BR /&gt;  Note that even persona services don't really give you a true change in username. They're really designed to be used by a server process to behave "as if" it were running as a different username. That's subtly different from actually "being" that username.&lt;BR /&gt;&lt;BR /&gt;  /AUTHORIZE only does anything if the image is LOGINOUT.EXE. If it is included, MOST of the other qualifiers are overridden by the UAF values of the CURRENT USERNAME. UIC isn't actually ignored, the process starts out with the UIC you specify, but it gets overridden by the UIC from the UAF record (same for quotas and process name).&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 23:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326492#M2952</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-07-08T23:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326493#M2953</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;Extra findings : when using /uic sylogin.com IS executed.&lt;BR /&gt;&lt;BR /&gt;Isn't it a pitty that DCL can't do something that every U*** can ? Some work for engineering ...&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Fri, 09 Jul 2004 01:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326493#M2953</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-07-09T01:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326494#M2954</link>
      <description>Does the job have to be detached?  Would a batch job work just as well?  If do you could use the submit/user=xxx command</description>
      <pubDate>Fri, 09 Jul 2004 15:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326494#M2954</guid>
      <dc:creator>Cass Witkowski</dc:creator>
      <dc:date>2004-07-09T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326495#M2955</link>
      <description>Hello Wim,&lt;BR /&gt;&lt;BR /&gt;since it seems what you want is not available right now, how about a tool to make the &lt;BR /&gt;submit/user more comfortable? Hunter has a tool called job_daemon for this purpose:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://vms.process.com/scripts/fileserv/fileserv_search.exe?package=job_daemon&amp;amp;description=&amp;amp;author=&amp;amp;system=Either&amp;amp;language=All" target="_blank"&gt;http://vms.process.com/scripts/fileserv/fileserv_search.exe?package=job_daemon&amp;amp;description=&amp;amp;author=&amp;amp;system=Either&amp;amp;language=All&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Sun, 11 Jul 2004 12:53:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detached-processes/m-p/3326495#M2955</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-07-11T12:53:44Z</dc:date>
    </item>
  </channel>
</rss>

