What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
What is the ruling on wiping the white area behind the ears instead of wiping the head?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. Wiping the white area behind the ears suffices for that. And Allah the almighty knows best.
What is the ruling on offering an Udhiyah on behalf of another with their permission?
Praise be to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is permissible for a person to offer a sacrifice (Udhiyah) on behalf of someone else with their permission, even if the person performing it has not offered a sacrifice for themselves. It is stated in Sharh Manhaj al-Tullab (Vol.5/P.261) by Zakariya al-Ansari: "No one may offer a sacrifice on behalf of another without their permission... as opposed to when permission has been granted." And Allah the Almighty knows best.
Is it permissible for me to eat from the animal that I slaughtered for Allah to protect my family?
It is permissible to eat from the non-vowed animal sacrifice, and the person is rewarded based on the amount of meat that he had given to the poor. However, there is no evidence in Islamic Sharia indicating that slaughtering an animal protects one`s family, but it is a way for thanking Allah, The Almighty, for his grace.