Feature changed by: Richard Bos (rbos) Feature #312337, revision 3 Title: clear /tmp-dir at bootup openSUSE Distribution: Unconfirmed Priority Requester: Neutral Requested by: M K (tux93) Partner organization: openSUSE.org Description: Please clear the /tmp-dir at boot-up per default. At the moment this has to be activated manually with every new installation, is there a reason for not doing this out of the box? Discussion: #1: Joseph Mitzen (duncreg) (2011-05-22 07:09:39) Maybe I'm the perfect example for your request: as a Linux noob using openSUSE for 10 months, what popped into my mind after reading this is: There's a temp directory? It's not managed automatically? And most importantly, where and how do I turn this feature on? + #2: Richard Bos (rbos) (2011-05-22 10:31:39) (reply to #1) + Have a look at: /etc/sysconfig/cron At the top there 8 settings that + control cleaning of temp directories. They are: MAX_DAYS_IN_TMP="14" + MAX_DAYS_IN_LONG_TMP="60" TMP_DIRS_TO_CLEAR="/tmp" + LONG_TMP_DIRS_TO_CLEAR="/var/tmp" OWNER_TO_KEEP_IN_TMP="root" + CLEAR_TMP_DIRS_AT_BOOTUP="no" DAILY_TIME="" MAX_NOT_RUN="5" (you see + them also with yast2 -> system -> /etc/sysconfig-editor -> system -> + cron) As you can see temp directories are regurarely cleaned. I don't + know the default values, I think that they are: MAX_DAYS_IN_TMP="0" + MAX_DAYS_IN_LONG_TMP="0" TMP_DIRS_TO_CLEAR="/tmp" + LONG_TMP_DIRS_TO_CLEAR="" In this case temp directories are not + cleaned. Enabling CLEAR_TMP_DIRS_AT_BOOTUP would be too much, as one + would loose files within a day, assuming that a desktop is switch on + and off daily. However, setting MAX_DAYS_IN_TMP to e.g. 14 would be a + good thing to do. Perhaps those settings can be managed during the + installation process for a brand new installation. But than what should + a linux noob answer on question like: + Do you want to enable tmp directories be cleared? How long (days) + should files remain in tmp directories? Which tmp directories must be + cleared? and Do you want to enable long tmp directories be cleared? How + long (days) should files remain in tmp directories? Which long tmp + directories must be cleared? -- openSUSE Feature: https://features.opensuse.org/312337