Is it possible that you read [*The Right to Read*](https://www.gnu.org/philosophy/right-to-read.en.html) by Richard Stallman? It covers the same theme, though it doesn't match all details of your story. In *The Right to Read,* Dan helps his friend Lissa by loaning her his copy of a book - loaning is illegal. Lissa and Dan end up migrating to Tycho on Luna. The right to read was one of the aims of an uprising. ------ The story was written in response to the concept of "digital rights management" (DRM.) DRM is called "digital restrictions management" by its opponents.