<?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: Problem with protections when installing a shared image in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986289#M77362</link>
    <description>Thomas,&lt;BR /&gt;&lt;BR /&gt;  The INSTALL symptom was a red herring. It appears there's a cosmetic bug in INSTALL which results in a nonsense owner/protection display. Consider:&lt;BR /&gt;&lt;BR /&gt;$ INSTALL ADD image/LOG&lt;BR /&gt;&lt;BR /&gt;To what do the "owner" and "protection" fields listed refer? There are no global sections, so they have no meaning.&lt;BR /&gt;&lt;BR /&gt;A simple experiment, take an image owned by someone other than SYSTEM, change the protection to something unusual and execute the INSTALL ADD/LOG command. You'll probably find that neither owner or protection fields displayed match the file.&lt;BR /&gt;&lt;BR /&gt;Now INSTALL REMOVE and ADD again, this time with /SHARE, which may create one or more global sections. Again the values displayed by INSTALL are junk. Use SHOW SECURITY/CLASS=SYSTEM_GLOBAL_SECTION to examine the "correct" owner and protection masks - they are correct. Use INSTALL LIST/GLOBAL/FULL to see that INSTALL displays them incorrectly.&lt;BR /&gt;&lt;BR /&gt;Bottom line is the symptom is purely cosmetic, and has no influence on the accessibility of the image.&lt;BR /&gt;&lt;BR /&gt;INSTALL ADD of an executable image makes very little sense (a non-shared INSTALL is only really useful for a shareable image).&lt;BR /&gt;Having WORLD:WRITE protection on any installed image is even more questionable.&lt;BR /&gt;&lt;BR /&gt;(I believe Philip's underlying problem has been resolved)</description>
    <pubDate>Sun, 02 Jul 2006 23:59:11 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2006-07-02T23:59:11Z</dc:date>
    <item>
      <title>Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986283#M77356</link>
      <description>I have a customer who is installing a shared image from a batch job submitted by the system account:&lt;BR /&gt;&lt;BR /&gt;The only thing in the file is:&lt;BR /&gt;$ install create sys$share:ptcchlext/log   &lt;BR /&gt;&lt;BR /&gt;The output is:&lt;BR /&gt;DISK$ALPHASYS_732:&lt;SYS0.SYSLIB&gt;.EXE &lt;BR /&gt;   PTCCHLEXT;5       &lt;BR /&gt;        Entry access count         = 0 &lt;BR /&gt;&lt;BR /&gt;               Owner:       [SYSTEM] &lt;BR /&gt;               Protection:  S:,O:RWE,G:,W:RE &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;They say that in the past, when the image was installed, the protection use to be:&lt;BR /&gt;S:RWE,O:RWE,G:RWE,W:RWE &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is there a way of setting the protection on this shared image at install or later to match this protection scheme?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SYS0.SYSLIB&gt;</description>
      <pubDate>Mon, 19 Jun 2006 20:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986283#M77356</guid>
      <dc:creator>Philip.Kenthp.com</dc:creator>
      <dc:date>2006-06-19T20:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986284#M77357</link>
      <description>In our system startups we typically do this&lt;BR /&gt;&lt;BR /&gt;$ file := SECRET.EXE &lt;BR /&gt;$ if f$search(file) .nes. ""  &lt;BR /&gt;$ then &lt;BR /&gt;$       install replace 'file /head/privileged=(tmpmbx,netmbx,bypass,world,oper)&lt;BR /&gt;$       set file/acl=(id=[*],access=none) 'file&lt;BR /&gt;$       set file/acl=(id=[SUPPORT],access=read+execute) 'file&lt;BR /&gt;$       set file/prot=w:re 'file&lt;BR /&gt;$ endif&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There should be enough here to provide ideas to customize the access.&lt;BR /&gt;&lt;BR /&gt;Thomas.</description>
      <pubDate>Mon, 19 Jun 2006 21:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986284#M77357</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2006-06-19T21:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986285#M77358</link>
      <description>Install doesn't modify protection.&lt;BR /&gt;&lt;BR /&gt;May be the file was re-created by someone. With the default protection of his account.&lt;BR /&gt;&lt;BR /&gt;Or may be normally the previous version existed and this time it didn't (prev version results in inherit of protection).&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 20 Jun 2006 02:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986285#M77358</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-06-20T02:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986286#M77359</link>
      <description>Philip,&lt;BR /&gt;&lt;BR /&gt;Install doesn't set protections or ownerships of the file being installed.  This is all determined by the file attributes.  Check the file with a DIR/FULL and see if the file protections are different from what you want (S:RWE,O:RWE,G:RWE,W:RWE).  If the file protection is not right then set it to what you need it to be.&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Tue, 20 Jun 2006 07:45:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986286#M77359</guid>
      <dc:creator>Phillip Thayer</dc:creator>
      <dc:date>2006-06-20T07:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986287#M77360</link>
      <description>If I understand your question, you want to make sure the security of a specific file matches that of a previous version? Try this procedure (to be executed before installing the image):&lt;BR /&gt;&lt;BR /&gt;checkprot.com&lt;BR /&gt;$ IF p1.EQS."" THEN INQUIRE p1 "File"&lt;BR /&gt;$ latest=F$SEARCH(p1-F$PARSE(p1,,,"VERSION")) ! Find latest version&lt;BR /&gt;$ previous=F$SEARCH(latest-F$PARSE(latest,,,"VERSION")+";-1") ! Find previous version&lt;BR /&gt;$ IF previous.NES."" ! If previous version exists&lt;BR /&gt;$ THEN  ! Compare protection strings&lt;BR /&gt;$   IF F$FILE_ATTRIBUTES(latest,"PRO").NES.F$FILE_ATTRIBUTES(previous,"PRO")&lt;BR /&gt;$   THEN  ! If not identical, propagate security from previous version&lt;BR /&gt;$     SET SECURITY/LIKE=(NAME='previous',CLASS=FILE) 'latest'&lt;BR /&gt;$   ENDIF&lt;BR /&gt;$ ENDIF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note that this does a bit more than you asked - the entire security profile is copied from the previous version. One potential problem is if the protection masks are the same, but the ACL is different. You could fix that by unconditionally setting the security if the previous version exists. Only downside is you will do it every time, as long as the old file exists.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jun 2006 18:21:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986287#M77360</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-06-20T18:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986288#M77361</link>
      <description>Phillip, were any of the tips here useful ? Has the problem been resolved ?&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Jul 2006 18:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986288#M77361</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2006-07-02T18:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986289#M77362</link>
      <description>Thomas,&lt;BR /&gt;&lt;BR /&gt;  The INSTALL symptom was a red herring. It appears there's a cosmetic bug in INSTALL which results in a nonsense owner/protection display. Consider:&lt;BR /&gt;&lt;BR /&gt;$ INSTALL ADD image/LOG&lt;BR /&gt;&lt;BR /&gt;To what do the "owner" and "protection" fields listed refer? There are no global sections, so they have no meaning.&lt;BR /&gt;&lt;BR /&gt;A simple experiment, take an image owned by someone other than SYSTEM, change the protection to something unusual and execute the INSTALL ADD/LOG command. You'll probably find that neither owner or protection fields displayed match the file.&lt;BR /&gt;&lt;BR /&gt;Now INSTALL REMOVE and ADD again, this time with /SHARE, which may create one or more global sections. Again the values displayed by INSTALL are junk. Use SHOW SECURITY/CLASS=SYSTEM_GLOBAL_SECTION to examine the "correct" owner and protection masks - they are correct. Use INSTALL LIST/GLOBAL/FULL to see that INSTALL displays them incorrectly.&lt;BR /&gt;&lt;BR /&gt;Bottom line is the symptom is purely cosmetic, and has no influence on the accessibility of the image.&lt;BR /&gt;&lt;BR /&gt;INSTALL ADD of an executable image makes very little sense (a non-shared INSTALL is only really useful for a shareable image).&lt;BR /&gt;Having WORLD:WRITE protection on any installed image is even more questionable.&lt;BR /&gt;&lt;BR /&gt;(I believe Philip's underlying problem has been resolved)</description>
      <pubDate>Sun, 02 Jul 2006 23:59:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986289#M77362</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-07-02T23:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986290#M77363</link>
      <description>Is the junk display because INSTALL is showing the contents of GSD$L_PROT instead of from the ORB?</description>
      <pubDate>Mon, 03 Jul 2006 02:58:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986290#M77363</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-07-03T02:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986291#M77364</link>
      <description>Yes the problem was resolved.&lt;BR /&gt;The customer was having other problems that they had not informed me of, and I was working with a resident engineer who had been there for 11 months and assumed that his understanding of the issues was sufficient.  I was wrong.  The protection mask on the installed image had no bearing on resolving the problem.  &lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Tue, 04 Jul 2006 19:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986291#M77364</guid>
      <dc:creator>Philip.Kenthp.com</dc:creator>
      <dc:date>2006-07-04T19:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986292#M77365</link>
      <description>Philip, &lt;BR /&gt;&lt;BR /&gt;please view&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;about thanking those that helped.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jul 2006 07:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986292#M77365</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2006-07-05T07:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with protections when installing a shared image</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986293#M77366</link>
      <description>Closing the thread.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help</description>
      <pubDate>Wed, 05 Jul 2006 08:23:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-protections-when-installing-a-shared-image/m-p/4986293#M77366</guid>
      <dc:creator>Philip.Kenthp.com</dc:creator>
      <dc:date>2006-07-05T08:23:27Z</dc:date>
    </item>
  </channel>
</rss>

