[Eisfair] Frage logrotate - ntp
Andreas Hager
firmahager at hotmail.com
Mo Mai 26 13:04:30 CEST 2025
Am 26.05.2025 um 11:58 schrieb Marcus Röckrath:
> Beim Boot ist ja alles ok, aber
>
> May 25 00:59:13 eishager logrotate-all[25154]: chown: changing ownership
> of '/etc/ntp.conf': Read-only file system
>
> wirklich zu diesem Zeitpunkt nichts im Journal oder messages?
>
> Read-Only-Switch sollte im Log stehen.
eishager 3.4.23 # journalctl -b | grep sda3
May 23 09:02:36 eishager kernel: sda: sda1 sda2 sda3 sda4
May 23 09:02:38 eishager systemd-fsck[256]: /dev/sda3: clean,
89215/1871872 files, 690387/4194304 blocks
May 23 09:02:38 eishager kernel: EXT4-fs (sda3): mounting ext3 file
system using the ext4 subsystem
May 23 09:02:38 eishager kernel: EXT4-fs (sda3): mounted filesystem
6535fcdd-2a91-4145-94a3-77abcb5b2971 ro with ordered data mode. Quota
mode: none.
May 23 09:02:47 eishager kernel: EXT4-fs (sda3): re-mounted
6535fcdd-2a91-4145-94a3-77abcb5b2971 r/w. Quota mode: none.
eishager 3.4.23 # journalctl -b | grep Read
May 23 09:03:05 eishager dbus-broker-launch[420]: Ready
May 23 09:03:23 eishager xinetd[790]: Reading included configuration
file: /etc/xinetd.d/imap [file=/etc/xinetd.conf] [line=7]
May 23 09:03:23 eishager xinetd[790]: Reading included configuration
file: /etc/xinetd.d/pop3 [file=/etc/xinetd.d/pop3] [line=25]
May 23 09:03:38 eishager xinetd[790]: Reading included configuration
file: /etc/xinetd.d/imap [file=/etc/xinetd.conf] [line=7]
May 23 09:03:38 eishager xinetd[790]: Reading included configuration
file: /etc/xinetd.d/pop3 [file=/etc/xinetd.d/pop3] [line=25]
May 25 00:58:56 eishager xinetd[790]: Reading included configuration
file: /etc/xinetd.d/imap [file=/etc/xinetd.conf] [line=7]
May 25 00:58:56 eishager xinetd[790]: Reading included configuration
file: /etc/xinetd.d/pop3 [file=/etc/xinetd.d/pop3] [line=25]
May 25 00:59:09 eishager xinetd[790]: Reading included configuration
file: /etc/xinetd.d/imap [file=/etc/xinetd.conf] [line=7]
May 25 00:59:09 eishager xinetd[790]: Reading included configuration
file: /etc/xinetd.d/pop3 [file=/etc/xinetd.d/pop3] [line=25]
May 25 00:59:13 eishager logrotate-all[25146]: chmod: changing
permissions of '/etc/config.d/ntp': Read-only file system
May 25 00:59:13 eishager logrotate-all[25154]: chown: changing ownership
of '/etc/ntp.conf': Read-only file system
May 25 00:59:14 eishager logrotate-all[25155]: chgrp: changing group of
'/etc/ntp.conf': Read-only file system
May 25 00:59:14 eishager logrotate-all[25156]: chmod: changing
permissions of '/etc/ntp.conf': Read-only file system
Kann nichts anderes erkennen.
>
>>> Was sagt smartctl zur Platte:
>>>
>>> smartctl -A /dev/sda
>>
>> Gibt´s bei mir nicht.
>
> Paket smartmon installieren.
>
Mach ich dann, xinetd löschen, auch dann.
>>> Was steht in /etc/logrotate.d/ntp?
>>>
>> eishager 3.4.23 # cat /etc/logrotate.d/ntp
>> #------------------------------------------------------------------
>> # /etc/logrotate.d/ntp file generated by ntp.sh v1.4.9
>> #
>> # Do not edit this file, edit /etc/config.d/ntp
>> # Creation Date: 2025-05-06 Time: 13:37:58
>> #------------------------------------------------------------------
>> /var/log/ntp.log {
>> rotate 10
>> weekly
>> compress
>> missingok
>> create 640 ntp ntp
>> notifempty
>> postrotate
>> /etc/init.d/ntp --quiet restart
>> endscript
>> }
>>
>> Da sehe ich aus der create-Zeile eine Abweichung bei den Rechten.
>
> Das create bezieht sich auf die Logdatei.
>
Okay.
Andreas
Mehr Informationen über die Mailingliste Eisfair