Can you lock out a person who does not have a rental agreement?

What you can do about a person who is renting without an agreement in the United States depends on local state law. If you are in New York, the answer is probably no. If you are in Oregon, the answer is probably yes, or at least it was at one time.