I need a way to securely wipe guest accounts accounts off of my machine. On OSX, guests are automatically deleted on logout, with this deletion being done using the "RM" command. I need a way to alter this to either the secure form of "RM" (RM -p I believe?) or to use "SRM" instead.
Alternatively, workarounds would be highly helpful. Currently, I believe it may be possible to replace "RM" with "SRM" on a system level, albeit I am unsure if it is plausible or possible. Other workarounds I have considered is manually deleting the files (it should be possible to run a script on logout that does this?) or, on startup, find a way to potentially write over the HDD sectors with 0's and 1's.
Is it possible (and if so, how) to delete guest account data securely?
Note I am tagging this under OSX, UNIX, and LINUX because I feel that an answer would be valid for all platforms of this type. This was also Xposted on Stack Overflow