sjara / jaraviewer

Online data viewer for JaraLab
1 stars 2 forks source link

Permissions of files related to alarms #16

Open sjara opened 8 years ago

sjara commented 8 years ago

Regarding the permissions of different files, what comes to mind is:

  1. The main module will be readable/writeable by a regular user of the server to be able to update the code (fix bugs, pull from Github, etc). This file can be imported in a Python session by a regular user (to test it), and everything should work except sending emails (only a special user can do that).
  2. The settings file will be readable/writeable by a regular user to be able to add animals, emails and alarms.
  3. The file containing the email/passwd of the sender email will be accessible only to a special user (it could be root, but it's probably better if it's anyone in the group 'adm', or something like that).

Does that work? Any other files we need to define permissions for?

kyle-sammons commented 8 years ago

I think that should work. I can't say for sure until we try a live test on the server.