• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst]Automatisches löschen von /tmp files funktioniert nicht mehr

dietterle65

Hacker
Hallo,

openSUSE Leap 42.3 | Linux 4.4.104-39-default x86_64

In leap 42.2 hatte ich nach dieser Anleitung , https://linux-club.de/wiki/opensuse/Tipp:_systemd-tmpfiles,
dass automatische löschen der tmpfiles eingerichtet.
Nach dem Update auf das aktuelle leap 42.3 funktioniert das nicht mehr.

Was hat sich geändert?
Ich möchte die beiden Ordner /tmp, /var/tmp, wieder beim Start löschen lassen.

mfg
dietterle65
 

Sauerland

Ultimate Guru
Ob sich was geändert hat, weiss ich nicht.
Aber ohne den Inhalt der /etc/tmpfiles.d/tmp.conf kann man auch nicht mehr sagen......
 
OP
dietterle65

dietterle65

Hacker
Code:
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# See tmpfiles.d(5) for details

# Clear tmp directories separately, to make them easier to override
# SUSE policy: we don't clean those directories
d /tmp 1777 root root 2d
d /var/tmp 1777 root root 7d

# Exclude namespace mountpoints created with PrivateTmp=yes
x /tmp/systemd-private-%b-*
X /tmp/systemd-private-%b-*/tmp
x /var/tmp/systemd-private-%b-*
X /var/tmp/systemd-private-%b-*/tmp
 
OP
dietterle65

dietterle65

Hacker
Lösung:

https://forums.opensuse.org/showthr...lder/page2?s=fd6294c5c57ba57efc10928ea0da9b23


Code:
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# See tmpfiles.d(5) for details

# Clear tmp directories separately, to make them easier to override
# SUSE policy: we don't clean those directories
D /tmp 1777 root root 2d
D /var/tmp 1777 root root 7d

# Exclude namespace mountpoints created with PrivateTmp=yes
x /tmp/systemd-private-%b-*
X /tmp/systemd-private-%b-*/tmp
x /var/tmp/systemd-private-%b-*
X /var/tmp/systemd-private-%b-*/tmp

Funktioniert!
 

dzug

Guru
Geht die Lösung auch für einen "Doofen" wie mich.
Ich Meine: Was haste Gemacht?
Von den Befehlen habe ich keine Ahnung.
Vom Englisch auch nicht.
Gruss dzug.
 

Sauerland

Ultimate Guru
dzug schrieb:
Geht die Lösung auch für einen "Doofen" wie mich.
Ich Meine: Was haste Gemacht?
Von den Befehlen habe ich keine Ahnung.
Vom Englisch auch nicht.
Gruss dzug.
Alte Version:
Code:
d /tmp 1777 root root 2d
d /var/tmp 1777 root root 7d

Neue Version:
Code:
D /tmp 1777 root root 2d
D /var/tmp 1777 root root 7d
Man beachte die Groß- und Kleinschreibung des ersten Buchstabens........
 
Oben