Zend certified PHP/Magento developer

Make a file unreadable for owner on Windows

I have a test case that should trigger access denied conditions. On Linux, this is achieved by chmod 000 unreadable.txt. I’m trying to replicate this functionality on Windows. From my understanding, a command like icacls unreadable.txt /deny 'Everyone:(RC)' should have done the trick. icacls confirm the deny rule:

         Everyone:(DENY)(Rc,S)

but I have nevertheless full access to read the file.

I’ve tried various incantations of calls to icacls and cacls, with different combinations of trying to explicitly denying for my specific user account, etc. All to no avail.

I’m starting to wondering, is is impossible in Windows to disallow the owner of a file from reading it?

Or, if it is possible, what is the command line I need to make the file unreadable by the owner?