<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">What OS?<br>
      <br>
      What is the owner of the files? What owner are tomcat/apache2
      running under?<br>
      <br>
      Am 07.09.2016 um 12:02 schrieb Attilio Salaris:<br>
    </div>
    <blockquote
cite="mid:CAKQDVOmf7=+=0Ok_cCpYu7YqfUX4kx4eqH51xmtA7z3qKL08tw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <p style="font-size:12.8px"><span
style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">1.<span
style="font-stretch:normal;font-size:7pt;font-family:"times new
              roman"">       </span></span><span
style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Try
            running tomcat as a service.</span></p>
        Done
        <p style="font-size:12.8px"><span
style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">2.<span
style="font-stretch:normal;font-size:7pt;font-family:"times new
              roman"">       </span></span><span
style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Try
            setting default permissions for new files and folders.</span></p>
        Done
        <div><br>
        </div>
        <div>but apache always return error 403 on the republished
          resources.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-09-07 10:33 GMT+02:00 <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:Honey.Bhandari@cognizant.com" target="_blank">Honey.Bhandari@cognizant.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div link="blue" vlink="purple" lang="EN-US">
              <div>
                <p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><span>1.<span
                        style="font:7.0pt "Times New Roman"">      
                      </span></span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Try
                    running tomcat as a service.</span></p>
                <p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><span>2.<span
                        style="font:7.0pt "Times New Roman"">      
                      </span></span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Try
                    setting default permissions for new files and
                    folders.</span></p>
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Regards</span></p>
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Honey</span></p>
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                <p class="MsoNormal"><b><span
                      style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a
                      moz-do-not-send="true"
                      href="mailto:opencms-dev-bounces@opencms.org"
                      target="_blank">opencms-dev-bounces@opencms.<wbr>org</a>
                    [mailto:<a moz-do-not-send="true"
                      href="mailto:opencms-dev-bounces@opencms.org"
                      target="_blank">opencms-dev-bounces@<wbr>opencms.org</a>]
                    <b>On Behalf Of </b>Attilio Salaris<br>
                    <b>Sent:</b> Wednesday, September 07, 2016 1:52 PM<br>
                    <b>To:</b> The OpenCms mailing list <<a
                      moz-do-not-send="true"
                      href="mailto:opencms-dev@opencms.org"
                      target="_blank">opencms-dev@opencms.org</a>><br>
                    <b>Subject:</b> Re: [opencms-dev] File permissions
                    on static export</span></p>
                <div>
                  <div class="h5">
                    <p class="MsoNormal"> </p>
                    <div>
                      <div>
                        <p class="MsoNormal">Thank you Honey for your
                          fast reply.</p>
                      </div>
                      <p class="MsoNormal">I've already changed the
                        file's permission manually but when I changed a
                        resources and I republish the permissions of
                        this file changed in 640.</p>
                      <div>
                        <p class="MsoNormal"> </p>
                      </div>
                      <div>
                        <p class="MsoNormal">Attilio</p>
                      </div>
                    </div>
                    <div>
                      <p class="MsoNormal"> </p>
                      <div>
                        <p class="MsoNormal">2016-09-07 10:12 GMT+02:00
                          <<a moz-do-not-send="true"
                            href="mailto:Honey.Bhandari@cognizant.com"
                            target="_blank">Honey.Bhandari@cognizant.com</a>><wbr>:</p>
                        <blockquote style="border:none;border-left:solid
                          #cccccc 1.0pt;padding:0in 0in 0in
                          6.0pt;margin-left:4.8pt;margin-right:0in">
                          <div>
                            <div>
                              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Permission
                                  issue – do chmod –R 755
                                  <folder-name> to fix the issue.</span></p>
                              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Regards</span></p>
                              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Honey</span></p>
                              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                              <p class="MsoNormal"><b><span
                                    style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
                                  <a moz-do-not-send="true"
                                    href="mailto:opencms-dev-bounces@opencms.org"
                                    target="_blank">opencms-dev-bounces@opencms.<wbr>org</a>
                                  [mailto:<a moz-do-not-send="true"
                                    href="mailto:opencms-dev-bounces@opencms.org"
                                    target="_blank">opencms-dev-bounces@<wbr>opencms.org</a>]
                                  <b>On Behalf Of </b>Attilio Salaris<br>
                                  <b>Sent:</b> Wednesday, September 07,
                                  2016 1:38 PM<br>
                                  <b>To:</b> <a moz-do-not-send="true"
href="mailto:opencms-dev@opencms.org" target="_blank">opencms-dev@opencms.org</a><br>
                                  <b>Subject:</b> [opencms-dev] File
                                  permissions on static export</span></p>
                              <div>
                                <div>
                                  <p class="MsoNormal"> </p>
                                  <div>
                                    <p class="MsoNormal">Hi,</p>
                                    <div>
                                      <p class="MsoNormal"> </p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal">I'm using
                                        Opencms 9.5.3 on Tomcat 8 and
                                        Apache 2.2. I'm configured the
                                        file<b> opencms-importexport.xml
                                        </b>with <wbr>CmsOnDemandStaticExportHandler
                                        class
                                        on <staticexporthandler>
                                        node.</p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal">When I
                                        republish an existing resource,
                                        the permessions on filesystem
                                        changed from 755 to 640 and
                                        Apache return Permission Denied
                                        for the resource republished, so
                                        the resource is not visible on
                                        the online website.</p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal">This error
                                        disappear when I delete the
                                        entire export folder.</p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal">Any ideas to
                                        resolve this problem?</p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal"> </p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal">Thank you.</p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal">Attilio</p>
                                    </div>
                                    <div>
                                      <div>
                                        <p class="MsoNormal"> </p>
                                      </div>
                                      <p class="MsoNormal">--
                                      </p>
                                      <div>
                                        <p><strong><span
                                              style="font-size:10.0pt;font-family:"Arial",sans-serif">Attilio
                                              Salaris - ConsulMedia Srl</span></strong><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
                                            Via Mattei 72 - 09170
                                            Oristano (OR) - ITALY<br>
                                            tel <a
                                              moz-do-not-send="true"
                                              href="tel:%2B39%200783%2071405"
                                              target="_blank">+39 0783
                                              71405</a>; fax <a
                                              moz-do-not-send="true"
                                              href="tel:%2B39%200783%20301727"
                                              target="_blank">
                                              +39 0783 301727</a> <br>
                                            e-mail: </span><a
                                            moz-do-not-send="true"
                                            href="mailto:alasi@consulmedia.it"
                                            target="_blank"><span
                                              style="font-size:10.0pt;font-family:"Arial",sans-serif">asalaris@consulmedia.it</span></a><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"> -
                                          </span><a
                                            moz-do-not-send="true"
                                            href="http://www.consulmedia.it/"
                                            target="_blank"><span
                                              style="font-size:10.0pt;font-family:"Arial",sans-serif">http://www.consulmedia.it</span></a><span
style="font-size:10.0pt;font-family:"Arial",sans-serif">
                                          </span></p>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                            <p class="MsoNormal">This e-mail and any
                              files transmitted with it are for the sole
                              use of the intended recipient(s) and may
                              contain confidential and privileged
                              information. If you are not the intended
                              recipient(s), please reply to the sender
                              and destroy all copies of the original
                              message. Any unauthorized review, use,
                              disclosure, dissemination, forwarding,
                              printing or copying of this email, and/or
                              any action taken in reliance on the
                              contents of this e-mail is strictly
                              prohibited and may be unlawful. Where
                              permitted by applicable law, this e-mail
                              and other e-mail communications sent to
                              and from Cognizant e-mail addresses may be
                              monitored.
                            </p>
                          </div>
                          <p class="MsoNormal"
                            style="margin-bottom:12.0pt"><br>
                          </p>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
    </div>
  </body>
</html>