Changing permissions on directories or files only

This is here as a memory aid as I don’t have to do this very often so…