Re: HELP - track deletion of a symbolic link

From: Nick Maclaren (nmm1_at_cus.cam.ac.uk)
Date: 06/03/04

  • Next message: Bodo Eggert: "Re: HELP - track deletion of a symbolic link"
    Date: 3 Jun 2004 15:20:16 GMT
    
    

    In article <barmar-5279AA.11134603062004@comcast.dca.giganews.com>,
    Barry Margolin <barmar@alum.mit.edu> writes:
    |> In article <6678e873.0406030703.661bf71d@posting.google.com>,
    |> msabnis1@yahoo.com (Mukesh) wrote:
    |>
    |> > I have a symbolic link defined in our Unix system. But it gets deleted
    |> > everyweek three or more time during the night. Is there anyway I can
    |> > log/audit its deletion so that I can find out who is doing it?
    |>
    |> Some versions of Unix have file system auditing capabilities. Since you
    |> haven't told us what type of Unix you're running, we can't tell whether
    |> yours does or how to enable it.
    |>
    |> If it's happening on a regular basis, it's probably due to a cron job.
    |> You could write a job that checks for its existence every 10 minutes,
    |> which would narrow down the time when it's being deleted. Then you can
    |> scan for cron jobs that run at that time.

    A better way of doing that is to turn on system accounting, and
    look through the account records for processes running at the
    last update time of the directory containing the link. It might
    be necessary to use your trick to identify exactly which update
    was the relevant one.

    Regards,
    Nick Maclaren.


  • Next message: Bodo Eggert: "Re: HELP - track deletion of a symbolic link"

    Relevant Pages

    • Re: Reproducing du/ls in Java
      ... I need for this function to work in Windows and UNIX. ... > class does not return the exact size for all files. ... > file system) or a symbolic link in UNIX. ...
      (comp.lang.java.programmer)
    • Re: Reproducing du/ls in Java
      ... I need for this function to work in Windows and UNIX. ... >> class does not return the exact size for all files. ... >> file system) or a symbolic link in UNIX. ...
      (comp.lang.java.programmer)
    • Re: Reproducing du/ls in Java
      ... > return the proper length of directories (whether on a FAT or reiserfs ... > file system) or a symbolic link in UNIX. ... The length of a UNIX ...
      (comp.lang.java.programmer)
    • Re: get directory lisrting on xe
      ... You can try this approach is if it suits to your requirement and if ... you any *unix* env. ... Cron job will be executing after 1 minute. ...
      (comp.databases.oracle.server)
    • Re: Reproducing du/ls in Java
      ... > Oreo wrote: ... >> file system) or a symbolic link in UNIX. ... The length of a UNIX ...
      (comp.lang.java.programmer)