debconf answer for lightdm did not work and I don't understand debconf.

Just prevent others from modifying the config file with immutable bit.