Physical access is (nearly) always game over.
This isn't really a hack, though.
It's more like "How to configure standard system tools to do stuff you want."
Potentially any modern O.S. will allow what is described in the article, if your privileges are root/admin.
Physical access is (nearly) always game over.