Ubuntu log in settings

If I power off, Ubuntu does not require a log in. I looked through the forum and found no help. I have found no way to require a log in after power disruption.

Is this the answer you are looking for:

Thank you, I will read the help you sent and see if iy answers my query

Is this only if you power off? What about rebooting - same behavior? Or logging out?