Moving change permissions to rules files