<?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: ACL or file permission issue in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/acl-or-file-permission-issue/m-p/5235383#M98413</link>
    <description>The access issue was determined by enabling file access failure alarms, this enabled me to determine why the rename was failing.</description>
    <pubDate>Fri, 16 Apr 2010 19:04:00 GMT</pubDate>
    <dc:creator>Kevin Carter_3</dc:creator>
    <dc:date>2010-04-16T19:04:00Z</dc:date>
    <item>
      <title>ACL or file permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/acl-or-file-permission-issue/m-p/5235380#M98410</link>
      <description>&lt;!--!*#--&gt;This question involves renaming a file owned by one user to a directory owned by another user.  The 2 user accounts involved are savftp and savjob.&lt;BR /&gt;&lt;BR /&gt;The savftp account is a drop off point for files that are processed by user savjob.&lt;BR /&gt;&lt;BR /&gt;The default directory for savftp has the following acl entries:&lt;BR /&gt;Directory USR$DISK1:[000000]&lt;BR /&gt;&lt;BR /&gt;SAVFTP.DIR;1         [SAVFTP]                         (RWE,RWE,RE,)&lt;BR /&gt;          (IDENTIFIER=[SAVJOB],OPTIONS=DEFAULT,ACCESS=READ+DELETE)&lt;BR /&gt;          (IDENTIFIER=[SAVJOB],ACCESS=READ+WRITE+DELETE)&lt;BR /&gt;&lt;BR /&gt;User savjob processes the file in the usr$disk1:[savftp] directory.  After processing the file user savjob attempts to rename the file to a directory owned by savjob on the same device. The rename fails with the following errors:&lt;BR /&gt;&lt;BR /&gt;%RENAME-E-OPENOUT, error opening USR$DISK1:[SAVJOB.ENTDBA.ARC]TO_RECONCILE.OLD;&lt;BR /&gt;as output&lt;BR /&gt;-RMS-E-ENT, ACP enter function failed&lt;BR /&gt;-SYSTEM-F-NOPRIV, insufficient privilege or object protection violation&lt;BR /&gt;&lt;BR /&gt;As you can see the error happens when savjob tries to write to its own directory.&lt;BR /&gt;&lt;BR /&gt;This process worked prior to migrating from another server with the same OS version, which by the way is OpenVMS 8.2, both systems are at the same patch level.&lt;BR /&gt;&lt;BR /&gt;The old file in the USR$DISK1:[SAVJOB.ENTDBA.ARC] has its protection set to (RWED,RWED,RWED,)&lt;BR /&gt;&lt;BR /&gt;When the new version of TO_RECONCILE.OLD is written it comes with the ace (IDENTIFIER=[SAVJOB],ACCESS=READ+DELETE)&lt;BR /&gt;&lt;BR /&gt;Directory USR$DISK1:[SAVJOB.ENTDBA.ARC]&lt;BR /&gt;                     &lt;BR /&gt;[SAVFTP]                         (RWED,RWED,RE,)&lt;BR /&gt;          (IDENTIFIER=[SAVJOB],ACCESS=READ+DELETE)&lt;BR /&gt;TO_RECONCILE.OLD;1335&lt;BR /&gt;                     [SAVFTP]                         (RWED,RWED,RWED,)&lt;BR /&gt;TO_RECONCILE.OLD;1334&lt;BR /&gt;&lt;BR /&gt;If I remove the ace and set the file permissions to be the same as TO_RECONCILE.OLD;1334; the job works once.&lt;BR /&gt;&lt;BR /&gt;The next run fails with the errors previously listed.&lt;BR /&gt;&lt;BR /&gt;How do I fix this?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Kevin</description>
      <pubDate>Thu, 15 Apr 2010 23:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/acl-or-file-permission-issue/m-p/5235380#M98410</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2010-04-15T23:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: ACL or file permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/acl-or-file-permission-issue/m-p/5235381#M98411</link>
      <description>SAVJOB needs write access to the directory to SAVFTP.DIR, as a start.  (The RENAME requires SAVJOB to update that directory file.)  That's the apparent trigger here, though there may be others lurking.&lt;BR /&gt;&lt;BR /&gt;In general, a tool to use here is file access alarms.  Or audits, on a busy system.  Enable file access failures.  That'll tell you what failed.&lt;BR /&gt;&lt;BR /&gt;If the commands can (also) be run interactively, another tool is "SET WATCH /CLASS=MAJOR FILE" or SET WATCH /CLASS=ALL FILE" such; the CLASS varies.  Use SET WATCH /CLASS=NONE FILE" to shut off output.  CMEXEC or CMKRNL is required.  Look for the failure codes.&lt;BR /&gt;&lt;BR /&gt;You can translate these failure codes with, for instance:&lt;BR /&gt;&lt;BR /&gt;$ exit %x910&lt;BR /&gt;%SYSTEM-W-NOSUCHFILE, no such file&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/1450" target="_blank"&gt;http://labs.hoffmanlabs.com/node/1450&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Given you had another system involved, the ACLs can be all over the map if the SYSUAF and RIGHTSLIST don't match.  I updated a tool to clean off ACLs for these cases:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/426" target="_blank"&gt;http://labs.hoffmanlabs.com/node/426&lt;/A&gt;</description>
      <pubDate>Thu, 15 Apr 2010 23:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/acl-or-file-permission-issue/m-p/5235381#M98411</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-04-15T23:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: ACL or file permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/acl-or-file-permission-issue/m-p/5235382#M98412</link>
      <description>Kevin,&lt;BR /&gt;&lt;BR /&gt;What does the following command show?&lt;BR /&gt;&lt;BR /&gt;$ directory/security USR$DISK1:[SAVJOB.ENTDBA]ARC.DIR&lt;BR /&gt;&lt;BR /&gt;What is the raname command being used?&lt;BR /&gt;&lt;BR /&gt;You may want to use rename/inherit_security&lt;BR /&gt;&lt;BR /&gt;$ help rename /inherit_security&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Fri, 16 Apr 2010 07:41:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/acl-or-file-permission-issue/m-p/5235382#M98412</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2010-04-16T07:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: ACL or file permission issue</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/acl-or-file-permission-issue/m-p/5235383#M98413</link>
      <description>The access issue was determined by enabling file access failure alarms, this enabled me to determine why the rename was failing.</description>
      <pubDate>Fri, 16 Apr 2010 19:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/acl-or-file-permission-issue/m-p/5235383#M98413</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2010-04-16T19:04:00Z</dc:date>
    </item>
  </channel>
</rss>

