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

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

    <bug>
          <bug_id>32822</bug_id>
          
          <creation_ts>2016-11-30 08:17:38 +0300</creation_ts>
          <short_desc>Ошибка ротации лог-файлов, у которых владелец не root</short_desc>
          <delta_ts>2022-08-25 13:21:52 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p8</product>
          <component>syslog-common</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</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="Alexei Takaseev">taf</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>asy</cc>
    
    <cc>lav</cc>
          
          <qa_contact name="qa-p8@altlinux.org">qa-p8</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>160314</commentid>
    <comment_count>0</comment_count>
    <who name="Alexei Takaseev">taf</who>
    <bug_when>2016-11-30 08:17:38 +0300</bug_when>
    <thetext>Ошибка ротации лог-файлов, у которых владелец не root:

==================
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.
=================

Лечится правкой /etc/logrotate.d/syslog:

 /var/log/uucp/* {
+       su uucp uucp
        rotate 5
        weekly
        postrotate</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161328</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2017-01-15 12:42:31 +0300</bug_when>
    <thetext># rpm -qf /etc/logrotate.d/syslog
syslog-common-1.4.1-alt30

Это не на logrotate должно висеть...

*** This bug has been marked as a duplicate of bug 31636 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185131</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2019-10-26 16:29:44 +0300</bug_when>
    <thetext>На p8 ничего не изменилось:

[root@as logrotate.d]# logrotate syslog 
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.


# rpm -qf /etc/logrotate.d/syslog
syslog-common-1.4.1-alt30

* Чт фев 12 2009 Dmitry V. Levin &lt;ldv@altlinux.org&gt; 1.4.1-alt30
- klogd: Defined more syslog symbols to overcome unsuitable
  glibc syslog implementation.

# cat /etc/logrotate.d/syslog
/var/log/uucp/* {
	rotate 5
	weekly
	postrotate
		/sbin/reload-syslog &gt;/dev/null
	endscript
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189713</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2020-05-05 13:28:24 +0300</bug_when>
    <thetext>Наверное можно собрать (давно было) 1.4.1-alt30.M80P.1 без syslog-common, а syslog-common скопировать из p9. Или совместить с Bug 29539.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214020</commentid>
    <comment_count>4</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2022-08-25 13:21:52 +0300</bug_when>
    <thetext>Для p8 исправлено не будет, начиная с p9 исправлено.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>