about /tmp

Jerry Feldman gaf at blu.org
Sat Dec 18 08:37:04 EST 2004


On Fri, 17 Dec 2004 15:09:27 -0800 (PST)
Dave Peters <gameslover987 at yahoo.com> wrote:

> Does anyone know how to change default setting on
> clean up /tmp? There is default setup how many day to
> remove file on /tmp directory. I have read about it
> but forget it. Does anyone know about it?
Depends on the distribution. 
On SuSE, it is set up in /etc/sysconfig/cron. You can use YaST to change
this or manyally edit it and run sueconfig. 
----------------------

# cron.daily can check for old files in tmp-dirs. It will delete all
files
# not accessed for more than MAX_DAYS_IN_TMP. If MAX_DAYS_IN_TMP is not
set
# or set to 0, this feature will be disabled.
#
MAX_DAYS_IN_TMP="0"

## Type:        string
## Default:     "/tmp /var/tmp"
#
# This variable contains a list of directories, in which old files are
to
# be searched and deleted.
#
TMP_DIRS_TO_CLEAR="/tmp /var/tmp"

## Type:        string
## Default:     root
#
# In OWNER_TO_KEEP_IN_TMP, you can specify, whose files shall not be
deleted.
#
OWNER_TO_KEEP_IN_TMP="root"

## Type:        string
## Default:     no
#
# "Set this to "yes" to entirely remove (rm -rf) all  files and
subdirectories
# from the temporary directories defined in TMP_DIRS_TO_CLEAR on bootup.
# Please note, that this feature ignores OWNER_TO_KEEP_IN_TMP - all
files will
# be removed without exception."
#
# If this is set to a list of directories (i.e. starts with a "/"),
these
# directories will be cleared instead of those listed in
TMP_DIRS_TO_CLEAR.
# This can be used to clear directories at boot as well as clearing
unused
# files out of other directories.
#
CLEAR_TMP_DIRS_AT_BOOTUP="no"



-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9



More information about the Discuss mailing list