On a Linux machine owned by someone else? You'll have to use the concept of DRM, and unfortunately DRM on Linux is crippled by it's open-source nature. The kernel isn't locked down the way the Windows and MacOS kernels are, so you can't rely on the OS as the root of trust.
If you want DRM, go to Microsoft or Apple.