Chmods directories and files to different masks.