He probably created the cod2 folder with no execute bit set on it, so "everyone" couldnt cd into it, and given that his files are now root-owned, it was probably as root.