You can remember the meaning of 主人 with this easy mnemonic:
The main (主) person (人) who still lives in this house is the master of this whole property. He is the only descendant left in the family.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.