AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  security for rm

    Posted Tue February 08, 2011 05:39 AM

    Originally posted by: big


    Hi,
    on AIX 6.1, is there any security for rm commande ?
    If rm is issued any way to restore deleted objects if they are not backed up?

    Thanks.
    #AIX-Forum


  • 2.  Re: security for rm

    Posted Tue February 08, 2011 06:47 AM

    Originally posted by: blanckea


    Hello,
    There is actually no security in rm command on AIX, I mean the file is not backed up before removing.
    If you want to do so, you may use a wrapper script to the rm command, but this would work only for files removed by rm command.
    So anyway the best is always to do backups.

    If you already removed a file that was not backed up and you need to recover it. There is a procedure to do so using fsdb, note that procedure will work only if that inode was not already reused for another file created latter.
    Note also that fsdb can destroy all or part of your filesystem structure if not used correctly so a backup of the filesystem must be done before using fsdb.
    A sample of fsdb usage to recover a deleted file can be found at : http://www.unix-middleware.com/pages/aix/AIXnotes1.htm

    There is also a tool available from http://www.compunix.com/ ,for free you can download the tool that will list the files that could be recovered, but to actually recover the files you will need to purchase a license from that site.

    Regards
    #AIX-Forum


  • 3.  Re: security for rm

    Posted Fri February 11, 2011 05:33 AM

    Originally posted by: big


    Thank you.
    #AIX-Forum