Operating System - HP-UX
1752630 Members
5823 Online
108788 Solutions
New Discussion юеВ

Re: Untared files disappearing from /tmp directory

 
MarkW_1
Regular Advisor

Untared files disappearing from /tmp directory

We are having an issue on a newly intalled integrity server with HP 11.31. Tar files that are untared are disappearing the next day. There is nothing in cron doing this. Is there an automatic utility that does this type of work.
5 REPLIES 5
Steven Schweda
Honored Contributor

Re: Untared files disappearing from /tmp directory

> We are having an issue [...]

Is that anything like a _problem_?

> Tar files that are untared are disappearing
> the next day.

This may make some sense to you, but it's not
telling me anything.

> There is nothing in cron doing this.

If you say so.

> Is there an automatic utility that does
> this type of work.

Probably not, but it's hard to be sure when
one lacks a useful definition of "this type
of work".

Generally speaking, if files disappear, then
some user or process is disappearing them. A
typical OS tends not to trash user data on
its own initiative.

You realize, of course, that "/tmp" derives
its name from "temporary", right?
James R. Ferguson
Acclaimed Contributor

Re: Untared files disappearing from /tmp directory

Hi:

If you are rebooting and the contents of '/tmp' have disappeared, then it is likely that '/etc/rc.config.d/clean_tmps' script has:

CLEAR_TMP=1

You can modify this to:

CLEAR_TMP=0

...to stop the cleaning action during bootup.

Regards!

...JRF...
MarkW_1
Regular Advisor

Re: Untared files disappearing from /tmp directory

It happens sometime after the files are untared but less than 24 hours.

# more /etc/rc.config.d/clean_tmps
#!/sbin/sh
# @(#)B.11.31_LR
# List and/or clear temporary files
#
# LIST_TEMPS: Set to 1 to produce a listing of temporary files at startup.
#
# CLEAR_TMP: Set to 1 to remove all files from /tmp at startup.
#
LIST_TEMPS=1
CLEAR_TMP=0
Pete Randall
Outstanding Contributor

Re: Untared files disappearing from /tmp directory

Is the "untar'ing" a manual or an automated process. If manual, check with the person that does this and find out if they use a script or the command line. If automated, find and check the script to see if it is cleaning up after itself.


Pete

Pete
MarkW_1
Regular Advisor

Re: Untared files disappearing from /tmp directory

There was an entry in the cfengine utility that was doing the cleanup.