Re: the disappearing directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/12/27 Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxxxxx>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux