Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Terminal srm command no longer works

Since Apple removed the Secure Empty Trash facility, I've got into the habit of securely deleting files via the Terminal using the srm -m or srm -rf commands.


I have just upgraded from El Capitan to OS X Sierra, and this command no longer seems to exist??


Does anyone know what's happened?

MacBook Pro, macOS Sierra (10.12), 2.2 GHz Intel Core i7 8GB 1333 MHz

Posted on Sep 20, 2016 1:14 PM

Reply
11 replies

Sep 8, 2017 10:51 AM in response to Peter Wilson1

I don't know how srm worked, but from the man page for rm in Sierra:


-P Overwrite regular files before deleting them. Files are

overwritten three times, first with the byte pattern 0xff,

then 0x00, and then 0xff again, before they are deleted.


That won't meet strict secure delete standards or guarantee data vanish forever, but is better than nothing. And yes, FileVault on top of that is even better, but that only protects the data while the computer is not booted up.

Sep 8, 2017 11:33 AM in response to chrisfromaustin

That won't meet strict secure delete standards or guarantee data vanish forever

Nothing short of melting the storage subsystem into a puddle of slag is going to insure nothing can be read in a replaced sector, etc...


But srm and other secure erase methods are out-of-step with current storage technology.


In theory Apple APFS file system should address per file encryption, based on publicly available documents. But until it gets into the hands of users, we will not know for sure.

Sep 8, 2017 11:49 AM in response to chrisfromaustin

chrisfromaustin wrote:

That won't meet strict secure delete standards or guarantee data vanish forever, but is better than nothing.


I disagree. The illusion of security is far worse than nothing.


No one other than Apple can explain their justifications for removing srm, but it takes very little thought to surmise the reason. Apparently "very little thought" is too much for some.

Sep 20, 2016 3:53 PM in response to Peter Wilson1

Because of how modern disk drives work there was NEVER a way to truly secure delete. A rotating disk will do bad sector replacement, but data can be read from bad sectors with the right tools. SSDs never write to the same place twice, then constantly remap pre-cleaned sectors to the old logical offset, and SSD bad block replacement moves a bad sector out of service, and again can be read with the right software.


A company like Apple, that gets sued because they have money in the bank, cannot afford to have a service or utility that claims it provides a secure delete if it does not 100% provide that service.


If you are concerned about sensitive data, you should be using System Preferences -> Security -> FileVault, so that deleted files are just a bunch of random bits. This will get even better when the new file system in Sierra is more commonly used by Mac users.


If you do not want FileVault, and want a srm tool, then follow the suggestions from sesser and install your own flawed tool, which keep Apple libel free.

Terminal srm command no longer works

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.