Adding new Linux users with PHP so they can use a Virtual Printer

agil

Junior Member
Jul 18, 2016
11
0
6
I am currently using a Centos with CUPS and a virtual printer.
I want that quite a lot of people use this virtual printer on intertnet. I obviously don't want to share root and its password to everyone.
I was thinking about doing it all with PHP and MYSQL for managing and registering new users. They would obviously only have permission to use the printer. Then some script with root to add these people from the database to the linux server
I feel, however, that this is not the best way to do this. Anyone else know better?