<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>31623</bug_id>
          
          <creation_ts>2015-12-15 04:57:26 +0300</creation_ts>
          <short_desc>Не ротируются логи с logrotate &gt;= 3.9.1-alt1</short_desc>
          <delta_ts>2016-11-11 11:51:00 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>logrotate</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgenii Terechkov">evg</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>anton</cc>
    
    <cc>asy</cc>
    
    <cc>at</cc>
    
    <cc>cas</cc>
    
    <cc>crux</cc>
    
    <cc>ender</cc>
    
    <cc>enp</cc>
    
    <cc>force</cc>
    
    <cc>lakostis</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>mike</cc>
    
    <cc>misha</cc>
    
    <cc>mithraen</cc>
    
    <cc>pma</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>154263</commentid>
    <comment_count>0</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2015-12-15 04:57:26 +0300</bug_when>
    <thetext>После обновления logrotate от cron.daily стали приходить такие письма:

=8&lt;=================================================================
error: skipping &quot;/var/log/nginx/access.log&quot; because parent directory has insecure permissions (It&apos;s world writable or writable by group which is not &quot;root&quot;) Set &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.

error: skipping &quot;/var/log/nginx/error.log&quot; because parent directory has insecure permissions (It&apos;s world writable or writable by group which is not &quot;root&quot;) Set &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.

error: skipping &quot;/var/log/nginx/nginx.error.log&quot; because parent directory has insecure permissions (It&apos;s world writable or writable by group which is not &quot;root&quot;) Set &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
=8&lt;=================================================================

лог-файлы при этом не ротируются.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154264</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2015-12-15 05:32:10 +0300</bug_when>
    <thetext>Ну написал бы уже кто-нибудь менее глючный logrotate!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154266</commentid>
    <comment_count>2</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2015-12-15 05:38:06 +0300</bug_when>
    <thetext>*** Bug 31622 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154268</commentid>
    <comment_count>3</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2015-12-15 05:46:14 +0300</bug_when>
    <thetext>Ну весь мир с ним живёт.

Мне как админу было бы менее неудобно, если бы поведение logrotate совпадало с
мэйнтримом. Сейчас, например, приходится делать разные декларации logrotate для
ALT и Debian.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154269</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2015-12-15 05:59:27 +0300</bug_when>
    <thetext>logrotate-3.9.1-alt2 -&gt; sisyphus:

* Tue Dec 15 2015 Dmitry V. Levin &lt;ldv@altlinux&gt; 3.9.1-alt2
- Apply ALT Secure Packaging Policy (closes: #31623).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154321</commentid>
    <comment_count>5</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2015-12-17 05:49:12 +0300</bug_when>
    <thetext>logrotate-3.9.1-alt2. Про nginx ругань исчезла. Теперь приходит другая:

=8&lt;=======================================================================
error: skipping &quot;/var/log/uucp/Debug&quot; because parent directory has insecure permissions (it&apos;s not owned by &quot;root&quot;); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping &quot;/var/log/uucp/Log&quot; because parent directory has insecure permissions (it&apos;s not owned by &quot;root&quot;); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping &quot;/var/log/uucp/Stats&quot; because parent directory has insecure permissions (it&apos;s not owned by &quot;root&quot;); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping &quot;/var/log/uucp/errors&quot; because parent directory has insecure permissions (it&apos;s not owned by &quot;root&quot;); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping &quot;/var/log/uucp/info&quot; because parent directory has insecure permissions (it&apos;s not owned by &quot;root&quot;); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping &quot;/var/log/uucp/warnings&quot; because parent directory has insecure permissions (it&apos;s not owned by &quot;root&quot;); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
=8&lt;=======================================================================

права/владелец /var/log/uucp из пакета syslog-common не менялся:
=8&lt;=======================================================================
drwxr-x---  2 uucp adm               4096 Mar 14  2012 uucp
=8&lt;=======================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154322</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2015-12-17 06:00:00 +0300</bug_when>
    <thetext>Права на /var/log/uucp/ не соответствуют требованиям ALT Secure Packaging Policy.
Довольно давно уже не соответствуют:
* Thu May 10 2001 Stanislav Ievlev &lt;inger@altlinux.ru&gt; 1.4.1-alt1
- Up to 1.4.1.
- Added patch from Owl.
- Fixed parent process killing bug.
- Chowned /var/log/uucp to uucp user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154323</commentid>
    <comment_count>7</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2015-12-17 07:17:12 +0300</bug_when>
    <thetext>К сожалению, без syslog-common (и соответственно без такой ругани) сейчас не обходятся postfix/openvpn/nut-server и, видимо, все реализации демона syslog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154332</commentid>
    <comment_count>8</comment_count>
    <who name="">anton</who>
    <bug_when>2015-12-17 18:53:36 +0300</bug_when>
    <thetext>*** Bug 31638 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159841</commentid>
    <comment_count>9</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2016-11-11 11:51:00 +0300</bug_when>
    <thetext>(In reply to comment #5)

&gt; error: skipping &quot;/var/log/uucp/Debug&quot; because parent directory has insecure
&gt; permissions (it&apos;s not owned by &quot;root&quot;); consider using &quot;su&quot; directive in config
&gt; file to tell logrotate which user/group should be used for rotation.

Оставлю тут ссылку на Bug 31636 про uucp, чтобы искалось проще.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>