Bug 762002

Summary: Setting MAX_DAYS_IN_TMP = 0 in /etc/sysconfig/cron does not disable the deletion of files as documented
Product: [openSUSE] openSUSE 12.1 Reporter: Helmut Walle <helmut.walle>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 12.1   
See Also: https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=739438
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Helmut Walle 2012-05-13 07:10:24 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0

Setting MAX_DAYS_IN_TMP = 0 in /etc/sysconfig/cron does not disable the deletion of files as documented.

Reproducible: Always

Steps to Reproduce:
1. Perform a clean install of openSUSE 12.1 with default settings.
2. As a non-root user, create some files in /tmp
3. Reboot the system a few days (maybe you don't have to wait that long - a day may be enough) later and wait until cron.daily has been executed - the files belonging to non-root users will have been deleted.
Actual Results:  
Files belonging to non-root users are deleted daily (but they should not be!). Files belonging to root are kept, because the default of OWNER_TO_KEEP_IN_TMP defaults to "root".

Expected Results:  
According to the descriptions in /etc/sysconfig/cron , setting the value of MAX_DAYS_IN_TMP = 0 should disable the deletion of old files. Therefore the files belonging to non-root users should remain there indefinitely.
Comment 1 Christian Boltz 2012-05-19 18:42:39 UTC
This is a systemd issue, see bug 721682 for details and workarounds.

*** This bug has been marked as a duplicate of bug 721682 ***