<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>I have just spotted for Ubuntu 20.04 (at least) that there is
      this enabled setting:</p>
    <p>&lt;policy domain=&quot;coder&quot; rights=&quot;none&quot; pattern=&quot;PDF&quot; /&gt;</p>
    <p>This would need to be changed to:</p>
    <p>&lt;policy domain=&quot;coder&quot; rights=&quot;read&quot; pattern=&quot;PDF&quot; /&gt;</p>
    <p>On CentOS 7 there is no enabled setting, so I assume there is no
      rights restriction.&nbsp; ImageMagick should only need to be able read
      (and not write) PDFs to be able to generate thumbnail and preview
      images for EPrints.<br>
    </p>
    <div class="moz-cite-prefix">On 12/01/2021 18:40, David R Newman
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:66f10a36-6fca-9d60-a641-d17644b8ee68@ecs.soton.ac.uk">
      
      <p><font face="monospace">Hi Thomas,</font></p>
      <p><font face="monospace">I have seen this issue before you need
          to change the configuration settings for ImageMagick.&nbsp; You
          need to edit policy.xml in /etc/ImageMagick/ (in CentOS 7 this
          is /etc/ImageMagick-6/ but may have a different name in
          Debian/Ubuntu or other version of RHEL/CentOS/Fedora).&nbsp; In
          this file add the following line to the &lt;policymap&gt;
          block:</font><code><br>
        </code></p>
      <p><code>&lt;policy domain=&quot;module&quot; rights=&quot;read&quot;
          pattern=&quot;{PS,PDF,XPS}&quot; /&gt;</code></p>
      <pre class="highlight"><code></code>Regards

David Newman
<code></code></pre>
      <code><br>
      </code>
      <div class="moz-cite-prefix">On 12/01/2021 17:34, th.lauke--- via
        Eprints-tech wrote:<br>
      </div>
      <blockquote type="cite" cite="mid:EMEW3|f9a42f28d146aee0dea2b1a557aaebbbx0BIEH14eprints-tech-bounces|ecs.soton.ac.uk|5d60c5b1ae5540108792ed69e9cf791e@arcor.de">
        <pre class="moz-quote-pre" wrap="">CAUTION: This e-mail originated outside the University of Southampton.

Hi all,

running
epadmin redo_thumbnails repoID EPrintsID
refuses working with
convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.

It seems, the content of security.pl has no influence!?
How to control the access rights from console?

Many thanks for any pointers in advance
Thomas



*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" moz-do-not-send="true">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbf37a04c422a4db904b108d8b72a89da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637460740613212331%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=79eoSzKoyVZ70wufBCLQH%2FSxrAP1fLNSB0f6bJIYzhY%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="Ba3NkupGahha6OyDmQBxNVugYk6nlPSj+uuuBBFeQE8f7fJ9VR5HAPqj3IX9rPFKhdyIVUFUeHg5Zs7MH8d1apE02YfuCONRNIhXQIbVkVMywyeDSpRyVKwoRZelhd1IyOm1KFWOK7XMxC6R9JvtK+9Lg3yudxKUXQY13IvZeiM=" moz-do-not-send="true">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;amp;data=04%7C01%7Cdrn%40ecs.soton.ac.uk%7C4001159aa3314f50029108d8b725e837%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637460720722579129%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=%2FgrHZgdvTuloCo7eFfY%2F%2BzMnarYxUDyDtjgl48%2FyU%2Fg%3D&amp;amp;reserved=0</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbf37a04c422a4db904b108d8b72a89da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637460740613222290%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=YY1cvcW8fOnuOhiZ318zwyFufQYhBm669npPBM%2Bgbdg%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="w8A70Td1/dZhqhH7wKrBiRPh8efslhn3cF3ZMt265lcGhDbfMJrYAbaeaJq8ucmxY30lF4MR2QyMltFfXTMYG1WJaUat8vfVSiZvmG0xjeq8CaN9QilYYBAZBVmqJ73EpCxi/e5jfANsrug8FjJxoMcC7I78vlsqdpxR9AoRKo0=" moz-do-not-send="true">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;amp;data=04%7C01%7Cdrn%40ecs.soton.ac.uk%7C4001159aa3314f50029108d8b725e837%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637460720722579129%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=%2BZwfnuqpvpHNRYNkSKewre5HWQqGXwoeR9e8v9Q2xYk%3D&amp;amp;reserved=0</a>
</pre>
      </blockquote>
    </blockquote>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbf37a04c422a4db904b108d8b72a89da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637460740613222290%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bAAbgFoHVgFuH9YF2SBUFcch6grrpL0AneT%2BuRxT21k%3D&amp;reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="zbtqpphVa2S+ilYZ0J1JaRxRWJhdOuB6RZmBlQN326mUw+NSx4gejE/mQ79nw/OKJ1t3fmj5yiXieNJydMIyFpMMV/F4ADYnZiMiuesyOAgI57wTTTty3kEmLWiXCUEHBrByu6X34FG7tKHR4pRAfS2WMgenMPtwrKTNg20TZf0=" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cbf37a04c422a4db904b108d8b72a89da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637460740613232243%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=IL6ymJ0sflIffso7UwRCDi5WwMX2gm5Vq1PeNs1Z38w%3D&amp;reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="Sj7Dqi6x+zu135NYOwV64COCVPhGqASUGtZTUKtQtZauBUSVroQI6+7rGC9UeAOQ0Ln9c4NAFGT4w8D5L6cfGnsh5w4fDWp4itiAJ5RzuEzWhV/ig+T5WfsCNr3S+HzpkqsSfz8Glui9hvWPU8t4Bdf5NRCpAeoWj3oXLK/da8I=" target="_blank" style="color: #4453ea;">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>