Unrecognized files in root (/) directory
Hi,
I'm sure I'll be showing my ignorance here, but I noticed some empty files in my root (/) directory:
-rw-r--r--1 rootroot0 Aug 8 20:45 olderThan.19990
-rw-r--r--1 rootroot0 Aug 20 08:00 olderThan.21748
-rw-r--r--1 rootroot0 Aug 5 20:45 olderThan.29402
...and...
-rw-r--r--1 rootroot0 Aug 5 20:45 080050800
-rw-r--r--1 rootroot0 Aug 8 20:45 080080800
Have I misconfigured some service? I've never seen these before.
Thanks,
Phil
# 2
Once the file is closed, it's difficult to tell how it got there.But if this continues to happen, I think you could write a dtrace script that reports any process that opens a file with a name like that.-- Darren
# 4
I noticed these type of files began to appear in my solaris 10 servers as well recently. They were not there a couple months ago.
In my case, they are showing up in /root. In my servers, the home directory of the root account is /root in order to avoid populating root filesystem (/) with unneeded files and directories generated by root account.
shen at 2007-7-7 0:41:19 >

# 5
This feature is caused by the automatic smpatch framework thing (or so i think), at least its a bug in /usr/lib/cc-cfw/platform/invagent/bin/cc-invagent, it creates the file in question and use it as a marker, but it never deletes it.
A quick fix would be to edit the script (and the ../etc/cc-invagent-skel file) and add
rm $MARKER
to the unlock() function.
7/M.
# 6
Mystery solved.
They are temp files created by Sun Update Manager.
Here is the reply from Sun:
To view the forum, visit:
http://forum.sun.com/jive/forum.jspa?forumID=316
Topic "olderThan files" was updated by ForumModerator with the following message:
They are temp files used by the inverntory agent which should run once a day from root's crontab. Providing the inventory agent is not currently running it is safe to remove them all though they should be removed by the inventory agent towards the end of it's daily run anyway.
The inventory agent entry in crontab should look similar to the following -
26 21 * * * /usr/lib/cc-cfw/platform/invagent/bin/cc-invagent
shen at 2007-7-7 0:41:19 >

# 8
I know exactly what you mean, Magnus.I, for one, always look forward to your forum contributions.<grin>
# 10
7/M,
Thanks!
Is this how I should add the 'rm $MARKER'?
[clip]
##
# unlock
# Remove our file in the lock directory.
unlock()
{
rm -f $LOCK_FILE
rm $MARKER
}
[clip]
Also, I cannot find a ../etc/cc-invagent-skel file. I searched for it, but came back with nothing.