miniche/CentralReport — pull request #44 by miniche (2013-02-27 21:34:48+00:00)
Title: [WIP] Improving CentralReport security and integration on operating systems

This pull request will change many elements in CentralReport. Summary:
- [ ] Adding a system user to secure CentralReport daemon.
- [ ] Adding a launch script in /usr/local/bin, which will be included in the PATH.
- [ ] All python modules will go to /usr/local/lib.

Now, with details:
## CentralReport user
For the moment, CentralReport is executed with root permissions. It isn't really secure, we can't say otherwise. So, to secure scripts, CentralReport will have his own user, with only few rights in the system.
- [ ] Make some research
- [ ] Add the new user on Debian
- [ ] Add the new user on Mac OS
- [ ] Update all install/uninstall functions
- [ ] Update rights on /usr/local/lib/centralreport (see "Launch script")
- [ ] Make a new folder in /var/log and update rights
- [ ] Make a new folder in /var/run and update rights
- [ ] Update documentation

## Launch script
For the moment, we must start or stop CentralReport with a long command: ```sudo python /usr/local/bin/centralreport/centralreport.py start```. Yeah... Boring. By adding a new script, it will be easier. The new command can look like: ```centralreport start```. Better, no?
- [ ] Creation of the new binary script (CentralReport user is required)
- [ ] Update install and uninstall bash scripts for all OS (copy, delete and chmod +x)
- [ ] Update init script (init.d for Debian and LaunchDaemon for Mac)
- [ ] Update documentation

## Python modules
Put all python scripts and modules in /usr/local/lib is more logical according to me.
- [ ] Update all bash functions (install/uninstall)
- [ ] Update documentation