![]() Sudo srm -rf /path/to/something/to/obliterate/from/existence/Īgain, this is for advanced users only and should be limited with precise file and directory paths. Use with extreme caution and do not use this is unless you know what you’re doing and why you’re doing it: This is as secure and as ‘dangerous’ as it gets because of the superuser access. Forcibly & Securely Remove a Locked or Owned File with Super Userīy prefixing sudo to the above -rf flag variation of srm you can apply super user (root) privileges to the forced file and directory removal process, thereby overwriting any ownership issues or file locking. Use with extreme caution.īecause of the immense strength behind the -rf flag combination, it should only be used by advanced users and with absolute precision. This is one of the more ‘dangerous’ commands because it’s like ‘rm -rf’ on steroids, meaning it will forcibly delete everything it’s pointed out, without any prompt, except that the addition of secure deletion insures that the removed file is absolutely never recoverable. The -r flag can be applied to srm to make it delete recursively, thereby applying to directories and their contents:Īgain, deleting may take a moment or two because everything is being overwritten 35 times after it’s been deleted. You have been warned, proceed with caution! Secure Remove a File with srmĪt it’s most simple, the srm command is used just by pointing it at a file or file path:īecause the default option uses 35-pass, file removal can take a moment or two, and larger files will take longer to delete because passes of equal size are being used to overwrite the file and prevent recovery. Users who are not comfortable with the command line but who want to retain secure file removal options should consider using a simple method of secure deletion, or by using the “Always Secure Empty Trash” option that is available to the Mac OS X Finder instead. This is going far beyond the basic tricks of emptying the Trash or even forcibly trashing and removing files that way. This isn’t called “secure remove” for no reason, it’s called that because if a file has been deleted with secure remove, you will quite literally never be able to recover that file from the drive. We’re not going to focus on the medium option though, we’re going to use srm as it was intended to be used, with full 35-pass data removal. ![]() For some comparison on how secure that is, srm also has a “medium” option setting which uses 7-pass security, and 7-pass meets the US Department of Defense standard for securely erasing data… thus, theoretically at least, the 35 pass method is 7 times more secure than what the US DoD accepts as their standard for secure data removal. ![]() How secure is srm? Well, the default for secure remove is the incredibly secure 35-pass method which uses the “35-pass Gutmann algorithm”, that basically means that first the data is removed, then written over 35 times using randomly generated patterns, making recovery quite literally impossible. Be advised this utility is not for everyone and certainly not for novice users, srm should be considered an advanced tool, and it’s best used by those who are comfortable with the command line and understand the data repercussions of secure delete functions. srm, as you may have guessed, stands for ‘secure removal’, and is a secure version of the commonly used ‘rm’ command that exists in virtually every flavor of unix, Mac OS X included. Need to securely delete a file, group of files, or an entire directory, insuring that it’s quite literally never recoverable by any known possible means? You can do this easily from the command line with the help of an incredibly powerful tool called srm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |