What rights does a residence permit holder have?

F.A.Q. answer:
A residence permit provides its holder with the opportunity to reside, work and study in the issuing country, and when issued by a Schengen state, to travel across the Schengen Area and to reside in any other (Schengen) European country for 90 days without registration, it also provides an automatic residence permit for your spouse and underage children, and entitles you to most of the rights and social privileges granted to citizens of Latvia, except the right to vote and to participate in elections and to hold positions in governmental institutions and other state authorities.