Fixing some files mode bits
Add macro to manage restricted pages