Find the answer to your Linux question:
Results 1 to 4 of 4
I ran /scripts/securetmp last week and ever since the /tmp directory gets loaded almost daily. I have to go in and manually clear out the /tmp/logwatch*/ files shown below to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2004
    Posts
    105

    /tmp fills up and doesn't clear itself


    I ran /scripts/securetmp last week and ever since the /tmp directory gets loaded almost daily. I have to go in and manually clear out the /tmp/logwatch*/ files shown below to get it back to normal 2% or so (it shoots up to 100% sometimes).

    How can I correct this?

    root@server [/tmp]# cd logwatch.OJp30518
    root@server [/tmp/logwatch.OJp30518]# dir
    (null) ./
    (null) ../
    (null) autorpm
    (null) clam-update
    (null) cron
    (null) exim
    (null) http
    (null) maillog
    (null) messages
    (null) pureftp
    (null) rt314
    (null) samba
    (null) secure
    (null) tac_acc
    (null) up2date
    (null) vsftpd
    (null) xferlog
    (null) yum

    WHM shows it was 243MB total in size.

    I did chmod -v 777 /tmp

    My /etc/fstab is

    LABEL=/ / ext3 defaults,usrquota 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    none /dev/shm tmpfs defaults 0 0
    none /proc proc defaults 0 0
    none /sys sysfs defaults 0 0
    /dev/hda3 swap swap defaults 0 0
    /dev/hdb1 /extra ext3 defaults 1 1

    How do I correct this issue? Am I supposed to increase the partition for /tmp? If so please explain how as I've never touched it before. I know for a fact that it is specifically the /tmp/logwatch.OJp30518 filling up the /tmp partition.

    Specs:
    cpanel 9.9.9 R-70
    Fedora Core 2
    2x250GB IDE Disks (62GB used on primary only / less than 20% backup)
    About 100 domains

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    why not have a crontab that rm's /tmp/logwatch.OJp30518

  3. #3
    Linux Newbie
    Join Date
    Dec 2004
    Posts
    105
    What would it look like?

    Also, why does it clog up that way in the first place?

  4. #4
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Code:
    man cron
    for details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •