It depends on both your rental agreement or lease agreement and the state or country where you are located.
There are a few rights and obligations that supersede a rental agreement but the contract is the basic source of those rights for both parties.
Look for your state department of real estates website and start there.