Do best-practices say to restrict the usage of /var to sudoers?
- by NewAlexandria
I wrote a package, and would like to use /var to persist some data. The data I'm storing would perhaps even be thought of as an addition for /var/db.
The pattern I observe is that files in /var/db, and the surrounds, are owned by root. The primary (intended) use of the package filters cron jobs - meaning you would need permissions to edit the crontab.
Should I presume a sudo install of the package?
Should I have the package gracefully degrade to a /usr subdir, and if so then which one?
If I 'opinionate' that any non-sudo install requires a configrc (with paths), where should the package look (presuming a shared-host environment) for that config file?
Incidentally, this package is a ruby gem, and you can find it here.