rights 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # -*- mode: conf -*-
  2. # vim:ft=cfg
  3. # Rights management file for Radicale - A simple calendar server
  4. #
  5. # The default path for this file is /etc/radicale/rights
  6. # The path can be specified in the rights section of the configuration file
  7. #
  8. # Some examples are included in Radicale's documentation, see:
  9. # http://radicale.org/rights/
  10. #
  11. # This file gives independant examples to help users write their own
  12. # configuration files. Using these examples together in the same configuration
  13. # file is meaningless.
  14. #
  15. # The first rule matching both user and collection patterns will be returned.
  16. # This means all users starting with "admin" may read any collection
  17. [admin]
  18. user: admin.*
  19. collection: .*
  20. permission: r
  21. # This means all users may read and write any collection starting with public.
  22. # We do so by just not testing against the user string.
  23. [public]
  24. user: .*
  25. collection: public(/.+)?
  26. permission: rw
  27. # A little more complex: give read access to users from a domain for all
  28. # collections of all the users (ie. user@domain.tld can read domain/*).
  29. [domain-wide-access]
  30. user: .+@(.+)\..+
  31. collection: {0}/.+
  32. permission: r
  33. # Allow authenticated user to read all collections
  34. [allow-everyone-read]
  35. user: .+
  36. collection: .*
  37. permission: r
  38. # Give write access to owners
  39. [owner-write]
  40. user: .+
  41. collection: %(login)s/.*
  42. permission: w