Changing permitions of cap files