There are many relationships a person can have with real property. The main relationships where a person has some sort of claim to real property are those of a tenant, a co-owner, and a squatter.
Each of these terms mean something different under California law. As a result, one’s relationship to the real property will affect one’s rights to that property, and what one can do with that property.