* the disappearing directory
@ 2009-12-27 11:04 xPol
2009-12-27 16:09 ` Glynn Clements
2009-12-27 16:19 ` Tom Corwine
0 siblings, 2 replies; 4+ messages in thread
From: xPol @ 2009-12-27 11:04 UTC (permalink / raw)
To: linux-admin
A weird behavior on my laptop: directories /usr/local/var/log
/usr/local/var/logs created by root get deleted a few minutes afterwards.
How can i discover what process is to blame?
thank you
---P
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: the disappearing directory
2009-12-27 11:04 the disappearing directory xPol
@ 2009-12-27 16:09 ` Glynn Clements
2009-12-27 16:33 ` Herta Van den Eynde
2009-12-27 16:19 ` Tom Corwine
1 sibling, 1 reply; 4+ messages in thread
From: Glynn Clements @ 2009-12-27 16:09 UTC (permalink / raw)
To: xtekhne; +Cc: linux-admin
xPol wrote:
> A weird behavior on my laptop: directories /usr/local/var/log
> /usr/local/var/logs created by root get deleted a few minutes afterwards.
>
> How can i discover what process is to blame?
One possibility is to create a file in that directory with the
immutable attribute ("chattr +i ...") and see if anything shows up in
the system log files.
--
Glynn Clements <glynn@gclements.plus.com>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: the disappearing directory
2009-12-27 16:09 ` Glynn Clements
@ 2009-12-27 16:33 ` Herta Van den Eynde
0 siblings, 0 replies; 4+ messages in thread
From: Herta Van den Eynde @ 2009-12-27 16:33 UTC (permalink / raw)
To: Glynn Clements; +Cc: xtekhne, linux-admin
2009/12/27 Glynn Clements <glynn@gclements.plus.com>
>
> xPol wrote:
>
> > A weird behavior on my laptop: directories /usr/local/var/log
> > /usr/local/var/logs created by root get deleted a few minutes afterwards.
> >
> > How can i discover what process is to blame?
>
> One possibility is to create a file in that directory with the
> immutable attribute ("chattr +i ...") and see if anything shows up in
> the system log files.
>
> --
> Glynn Clements <glynn@gclements.plus.com>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Another possibility is to write wrapper scripts round the rm , rmdir,
and unlink commands, which write "who am i" and "pstree $$" output to
a file before executing the actual rm, rmdir or unlink.
Kind regards,
Herta
--
"Life on Earth may be expensive,
but it comes with a free ride around the Sun."
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: the disappearing directory
2009-12-27 11:04 the disappearing directory xPol
2009-12-27 16:09 ` Glynn Clements
@ 2009-12-27 16:19 ` Tom Corwine
1 sibling, 0 replies; 4+ messages in thread
From: Tom Corwine @ 2009-12-27 16:19 UTC (permalink / raw)
To: linux-admin
xPol wrote:
> A weird behavior on my laptop: directories /usr/local/var/log
> /usr/local/var/logs created by root get deleted a few minutes afterwards.
>
> How can i discover what process is to blame?
Have you gone through all the cron jobs to see what's scheduled to run?
Tom Corwine
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-12-27 16:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-27 11:04 the disappearing directory xPol
2009-12-27 16:09 ` Glynn Clements
2009-12-27 16:33 ` Herta Van den Eynde
2009-12-27 16:19 ` Tom Corwine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).