{"id":480,"date":"2009-11-12T23:58:11","date_gmt":"2009-11-12T22:58:11","guid":{"rendered":"http:\/\/www.kill-9.it\/blog\/?p=480"},"modified":"2012-09-04T21:46:20","modified_gmt":"2012-09-04T19:46:20","slug":"snow-leopard-trash-again","status":"publish","type":"post","link":"https:\/\/www.kill-9.it\/blog\/index.php\/2009\/11\/12\/snow-leopard-trash-again\/","title":{"rendered":"Snow Leopard Trash, again"},"content":{"rendered":"<p>At first I did not notice, but emptying the trash took ages, even &#8220;not securely&#8221;.<br \/>\nWell, being the geek I am I did a quick dtruss on the Locum process, which spit out a huge list of write_nocancel syscalls. So, it seems it was actually writing stuff over the files I asked him to delete, even if I never asked him to (I just did a right click on the Trash icon, and selected &#8220;Empty Trash&#8221;). WTF?<\/p>\n<p>Well, I learned (thanks Google) that Snow Leopard does a secure erase of the trash by default. Annoying.<br \/>\nAnd that I did not realize that until now. Embarassing.<\/p>\n<p>So, this can be solved at least in two ways:<\/p>\n<p><strong>The GUI one<\/strong><br \/>\nGo into Finder preferences, Advanced, and uncheck &#8220;Empty Trash securely&#8221;<\/p>\n<p align=center><img decoding=\"async\" src=\"\/images\/finderpref.png\" alt=\"Finder Preferences Window\" \/><\/p>\n<p>or<\/p>\n<p><strong>the CLI one<\/strong><br \/>\nGo into ~\/Library\/Preferences, convert the Finder preferences to xml (it&#8217;s binary by default)<br \/>\n<code>plutil -convert xml1 com.apple.finder.plist<\/code><br \/>\nand change the stanza<\/p>\n<p><code>        &lt;key&gt;EmptyTrashSecurely&lt;\/key&gt;<br \/>\n        &lt;true\/&gt;<\/code><br \/>\nto<code><br \/>\n        &lt;key&gt;EmptyTrashSecurely&lt;\/key&gt;<br \/>\n        &lt;false\/&gt;<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>At first I did not notice, but emptying the trash took ages, even &#8220;not securely&#8221;. Well, being the geek I am I did a quick dtruss on the Locum process, which spit out a huge list of write_nocancel syscalls. So, it seems it was actually writing stuff over the files I asked him to delete, &hellip; <a href=\"https:\/\/www.kill-9.it\/blog\/index.php\/2009\/11\/12\/snow-leopard-trash-again\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Snow Leopard Trash, again&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6,3],"tags":[],"class_list":["post-480","post","type-post","status-publish","format-standard","hentry","category-apple","category-english","category-geek"],"_links":{"self":[{"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/posts\/480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=480"}],"version-history":[{"count":17,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/posts\/480\/revisions"}],"predecessor-version":[{"id":542,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/posts\/480\/revisions\/542"}],"wp:attachment":[{"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kill-9.it\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}