dpkg-statoverride.8 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .TH DPKG-STATOVERRIDE 8 "November 2000" "Debian project" "dpkg utililties"
  2. .SH NAME
  3. dpkg\-statoverride - override ownership and mode of files
  4. .SH SYNOPSIS
  5. \fBdpkg\-statoverride\fR [options] \-\-add <user> <group> <mode> \fI<file>\fR
  6. .br
  7. \fBdpkg\-statoverride\fR [options] \-\-remove \fI<file>\fR
  8. .br
  9. \fBdpkg\-statoverride\fR [options] \-\-list \fI[<glob-pattern>]\fR
  10. .SH DESCRIPTION
  11. `\fBstat overrides\fR' are a way to tell dpkg to use a different owner
  12. or mode for a file when a package is installed. (note: I use the word
  13. `file' here, but in reality this can be any filesystem object that dpkg
  14. handles, including directories, devices, etc.). This can be used to
  15. force programs that are normally setuid to be install without a setuid
  16. flag, or only executable by a certain group.
  17. .P
  18. \fBdpkg\-statoverride\fR is a utility to manage the list of stat
  19. overrides. It has three basic functions: adding, removing and listing
  20. overrides.
  21. .SH OPTIONS
  22. .TP
  23. .I \-\-add <user> <group> <mode> <file>
  24. Add an override for \fB<file>\fR. \fB<file>\fR does not need to exist
  25. when this command is used; the override will be stored and used later.
  26. Users and groups can be specified by their name (for example \fBroot\fR
  27. or \fBnobody\fR), or by their number by prepending the number with a
  28. \fB#\fR' (for example \fB#0\fR or \fB#65534\fR).
  29. If \-\-update is specified and \fB<file>\fR exists, it is immediately
  30. set to the new owner and mode.
  31. .TP
  32. .I \-\-remove <file>
  33. Remove an override for \fB<file>\fR, the status of \fB<file\fR is left
  34. unchanged by this command.
  35. .TP
  36. .I \-\-list [<glob-pattern>]
  37. List all overrides. If a glob pattern is specified restrict the output
  38. to overrides which match the glob. If there are no overrides or none
  39. match the glob \fBdpkg\-statoverride\fR will exit with an exitcode of 1.
  40. .TP
  41. .I \-\-force
  42. Force an action, even if a sanity check would otherwise prohibit it.
  43. This is necessary to override an existing override.
  44. .TP
  45. .I \-\-update
  46. Immediately try to change the file to the new owner and mode if it
  47. exists.
  48. .TP
  49. .I \-\-quiet
  50. Be less verbose about what we do.
  51. .TP
  52. .I \-\-help
  53. Show version, copyright and usage information.
  54. .TP
  55. .I \-\-admindir
  56. Change the directory of the dpkg database where the statoverride file is
  57. also stored. Defaults to /var/lib/dpkg.
  58. .SH FILES
  59. .TP
  60. .I /var/lib/dpkg/statoverride
  61. File which contains the current list of stat overrides of the system. It
  62. is located in the dpkg administration directory, along with other files
  63. important to dpkg, such as `status' or `available'.
  64. .br
  65. Note: dpkg\-statoverride preserves the old copy of this file, with
  66. extension "-old", before replacing it with the new one.
  67. .SH SEE ALSO
  68. .BR dpkg (8)
  69. .SH AUTHOR
  70. Copyright 2000 Wichert Akkerman
  71. .UR mailto:wakkerma@debian.org
  72. <wakkerma@debian.org>
  73. .UE
  74. .sp
  75. This is free software; see the GNU General Public Licence version 2 or
  76. later for copying conditions. There is NO warranty.