the disappearing directory

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

--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
xPol [ So, 27 Dezember 2009 12:04 ] [ ID #2027132 ]

Re: the disappearing directory

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 [at] gclements.plus.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Glynn Clements [ So, 27 Dezember 2009 17:09 ] [ ID #2027133 ]

Re: the disappearing directory

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
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Tom Corwine [ So, 27 Dezember 2009 17:19 ] [ ID #2027134 ]

Re: the disappearing directory

2009/12/27 Glynn Clements <glynn [at] gclements.plus.com>
>
> xPol wrote:
>
> > A weird behavior on my laptop: =A0directories /usr/local/var/log
> > /usr/local/var/logs created by root get deleted a few minutes after=
wards.
> >
> > 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 [at] gclements.plus.com>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin=
" in
> the body of a message to majordomo [at] vger.kernel.org
> More majordomo info at =A0http://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 [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Herta Van den Eynde [ So, 27 Dezember 2009 17:33 ] [ ID #2027135 ]
Linux » gmane.linux.admin » the disappearing directory

Vorheriges Thema: Dynamic binary optimization?
Nächstes Thema: Compiling 2.6 kernel questions