<?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 Copy user/identifiers in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054037#M85872</link>
    <description>Is there a way to copy the identifiers of one user to another user without entering them one by one. New to VMS.  You guys/gals on this forum are great!!</description>
    <pubDate>Mon, 13 Aug 2007 11:23:09 GMT</pubDate>
    <dc:creator>owilliams</dc:creator>
    <dc:date>2007-08-13T11:23:09Z</dc:date>
    <item>
      <title>Copy user/identifiers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054037#M85872</link>
      <description>Is there a way to copy the identifiers of one user to another user without entering them one by one. New to VMS.  You guys/gals on this forum are great!!</description>
      <pubDate>Mon, 13 Aug 2007 11:23:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054037#M85872</guid>
      <dc:creator>owilliams</dc:creator>
      <dc:date>2007-08-13T11:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Copy user/identifiers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054038#M85873</link>
      <description>The username &amp;lt;-&amp;gt; identifier mapping is maintained in a file called SYS$SYSTEM:RIGHTSLIST.DAT&lt;BR /&gt;&lt;BR /&gt;Note: This can be a system logical RIGHTSLIST. So you should construct the name with&lt;BR /&gt;F$PARSE("RIGHTSLIST","SYS$SYSTEM:.DAT")&lt;BR /&gt;&lt;BR /&gt;That file is a normal RMS index file.&lt;BR /&gt;So you can convert/merge them. For example:&lt;BR /&gt;&lt;BR /&gt;$CONVERT/MERGE/STAT/EXCEP=rightslist.dups rightlist.a rightslist.b&lt;BR /&gt;&lt;BR /&gt;You can also use DCL Read and write:&lt;BR /&gt;$OPEN/READ/WRITE/SHARE=WRITE A rightslsist.new&lt;BR /&gt;$OPEN/READ/WRITE/SHARE=WRITE MAIN 'rightslist'&lt;BR /&gt;$loop:&lt;BR /&gt;$READ A new_record&lt;BR /&gt;$IF new_record...&lt;BR /&gt;$WRITE rew_record MAIN&lt;BR /&gt;$goto loop.&lt;BR /&gt;&lt;BR /&gt;Or you can extract to sequential, and convert back in.&lt;BR /&gt;&lt;BR /&gt;Beware though... this file is/should be in sync with SYSUAF, so go slowly (a record at a time at first) to be sure you have it right, and have a backup plan or two.&lt;BR /&gt;&lt;BR /&gt;Finally... rightlist is always open, so if not applying changs to the live file, then it may be tricky to get the new data in place.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Aug 2007 12:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054038#M85873</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-08-13T12:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy user/identifiers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054039#M85874</link>
      <description>Sounds complicated.  Maybe I should better explain what I need.  I create 25-30 news users for the VMS cluster each week.  I usually use  the copy command to copy a template user I created.  The problem is I cannot copy the identifiers and usually have to add them to the account. Example:&lt;BR /&gt;copy jsmith cjackson/owner="Chris Jackson" -&lt;BR /&gt;/uic=[555,5555]/password=password/dir=[dir]&lt;BR /&gt;&lt;BR /&gt;Then the basic account is created and I add identifiers.&lt;BR /&gt;grant/identifier group cjackson/attributes=resource&lt;BR /&gt;&lt;BR /&gt;Is there an easier/quicker way to do this?</description>
      <pubDate>Mon, 13 Aug 2007 13:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054039#M85874</guid>
      <dc:creator>owilliams</dc:creator>
      <dc:date>2007-08-13T13:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy user/identifiers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054040#M85875</link>
      <description>Why not create a DCL command procedure that prompts for and builds the requisite GRANT commands for the particular user, and then kicks it off?  &lt;BR /&gt;&lt;BR /&gt;You could enhance the basic procedure to prompt for what sort of user is involved, allowing you to have and to select which of multiple profiles within the procedure should be applied.&lt;BR /&gt;&lt;BR /&gt;There's an ADDUSER procedure available in SYS$EXAMPLES:, and that can serve as a jumping-off point for creating directories, granting identifiers, registering users with local or site-specific applications, and other such tasks.&lt;BR /&gt;&lt;BR /&gt;Stephen Hoffman&lt;BR /&gt;HoffmanLabs LLC</description>
      <pubDate>Mon, 13 Aug 2007 17:24:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054040#M85875</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-08-13T17:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Copy user/identifiers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054041#M85876</link>
      <description>I am not aware of any standard single command that will copy the identifiers held by one UIC identifer to another.  This is something that would normally be done by a command procedure which would probably be written by the system manager.&lt;BR /&gt;&lt;BR /&gt;If you have been adding a lot of new user accounts, or worse, new identifiers with system generated values, and never took care of the problem you described in &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1107988" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1107988&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;specifically, a multiple system disk cluster without common security files, then you have more problems than making it easy to copy identifiers from one user to another.&lt;BR /&gt;&lt;BR /&gt;Without knowing any more than you have said, with your wish of copying all identifiers held by one "user" to another, then one solution is to write a command procedure that does the following:&lt;BR /&gt;&lt;BR /&gt;1. Create a SYSUAF list/full for the template user.&lt;BR /&gt;2. Open this listing file &lt;BR /&gt;3. Read records until you find one that begins with "Identifier "&lt;BR /&gt;4. The remaining records will represent the identifiers held.  You will need to parse the line and generate an Authorize command.&lt;BR /&gt;&lt;BR /&gt;i.e. For a line like &lt;BR /&gt; &lt;BR /&gt;  TEST$SUBSYSTEM               %X80010005      RESOURCE SUBSYSTEM&lt;BR /&gt;&lt;BR /&gt;you would need to convert the line into a command similar to:&lt;BR /&gt;&lt;BR /&gt;$ mcr authorize grant/id TEST$SUBSYSTEM /attributes=(RESOURCE,SUBSYSTEM) 'target_uic_identifier'&lt;BR /&gt;&lt;BR /&gt;execute the command, and get the next until no more lines remain.&lt;BR /&gt;&lt;BR /&gt;Then close the uaf_listing file and delete it.&lt;BR /&gt;&lt;BR /&gt;Learning to script things, whether with DCL or other tools like perl, is essential for successfully managing a system.</description>
      <pubDate>Mon, 13 Aug 2007 17:25:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054041#M85876</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-13T17:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy user/identifiers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054042#M85877</link>
      <description>the attached dcl procedure was used for applications not users, but you should get the general idea - build a temporary command file and then execute it.</description>
      <pubDate>Mon, 13 Aug 2007 19:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/copy-user-identifiers/m-p/4054042#M85877</guid>
      <dc:creator>Phil.Howell</dc:creator>
      <dc:date>2007-08-13T19:17:56Z</dc:date>
    </item>
  </channel>
</rss>

