fs-perms.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # This file contains a list of files and directories with known permissions.
  2. # It is used by the packaging class to ensure that the permissions, owners and
  3. # group of listed files and directories are in sync across the system.
  4. #
  5. # The format of this file
  6. #
  7. #<path> <mode> <uid> <gid> <walk> <fmode> <fuid> <fgid>
  8. #
  9. # or
  10. #
  11. #<path> link <target>
  12. #
  13. # <path>: directory path
  14. # <mode>: mode for directory
  15. # <uid>: uid for directory
  16. # <gid>: gid for directory
  17. # <walk>: recursively walk the directory? true or false
  18. # <fmode>: if walking, new mode for files
  19. # <fuid>: if walking, new uid for files
  20. # <fgid>: if walking, new gid for files
  21. # <target>: turn the directory into a symlink point to target
  22. #
  23. # in mode, uid or gid, a "-" means don't change any existing values
  24. #
  25. # /usr/src 0755 root root false - - -
  26. # /usr/share/man 0755 root root true 0644 root root
  27. # Note: all standard config directories are automatically assigned "0755 root root false - - -"
  28. # Documentation should always be corrected
  29. ${mandir} 0755 root root true 0644 root root
  30. ${infodir} 0755 root root true 0644 root root
  31. ${docdir} 0755 root root true 0644 root root
  32. ${datadir}/gtk-doc 0755 root root true 0644 root root
  33. # Fixup locales
  34. ${datadir}/locale 0755 root root true 0644 root root
  35. # Cleanup headers
  36. ${includedir} 0755 root root true 0644 root root
  37. ${oldincludedir} 0755 root root true 0644 root root
  38. # Cleanup debug src
  39. /usr/src/debug 0755 root root true - root root
  40. # Items from base-files
  41. # Links
  42. ${localstatedir}/run link /run
  43. ${localstatedir}/log link volatile/log
  44. ${localstatedir}/lock link /run/lock
  45. ${localstatedir}/tmp link volatile/tmp
  46. /home 0755 root root false - - -
  47. /srv 0755 root root false - - -
  48. ${prefix}/src 0755 root root false - - -
  49. ${localstatedir}/local 0755 root root false - - -
  50. # Special permissions from base-files
  51. # Set 1777
  52. /tmp 01777 root root false - - -
  53. ${localstatedir}/volatile/tmp 01777 root root false - - -
  54. # Set 0700
  55. ${ROOT_HOME} 0700 root root false - - -
  56. # Set 2775-lsb
  57. ${localstatedir}/mail 02775 root mail false - - -