The main character, Nicholas Nickleby, is a young man who faces various hardships and challenges throughout the story. He does not hold any positions of authority, especially not as a headteacher.
Are you thinking of another character or another story? Perhaps you're confusing the story with a different one.