dpkg-statoverride.8 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 normall 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. The might does not need to exist at
  25. this moment, the override will be stored and used later. Users and
  26. groups can be specified by their name (for example \fBroot\fR or
  27. \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. .TP
  30. .I --remove <file>
  31. Remove an override for \fB<file>\fR.
  32. .TP
  33. .I --list [<glob-pattern>]
  34. List all overrides. If a glob pattern is specified restrict the output
  35. to overrides which match the glob.
  36. .TP
  37. .I --force
  38. Force an action, even if a sanity check would otherwise prohibit it.
  39. This is necessary to override an existing override.
  40. .TP
  41. .I --update
  42. Immediately try to change the file to the new owner and mode if it
  43. exists. This is only done for \fI--add\fR.
  44. .TP
  45. .I --quiet
  46. Be less verbose about what we do.
  47. .TP
  48. .I --help
  49. Show version, copyright and usage information.
  50. .TP
  51. .I --admindir
  52. Change the directory of the dpkg database where the statoverride file is
  53. also stored. Defaults to /var/lib/dpkg.
  54. .SH FILES
  55. .TP
  56. .I /var/lib/dpkg/statoverride
  57. File which contains the current list of stat overrides of the system. It
  58. is located in the dpkg administration directory, along with other files
  59. important to dpkg, such as `status' or `available'.
  60. .br
  61. Note: dpkg-statoverride preserves the old copy of this file, with
  62. extension "-old", before replacing it with the new one.
  63. .SH SEE ALSO
  64. .BR dpkg (8)
  65. .SH AUTHOR
  66. Copyright 2000 Wichert Akkerman
  67. .UR mailto:wakkerma@debian.org
  68. <wakkerma@debian.org>
  69. .UE
  70. .sp
  71. This is free software; see the GNU General Public Licence version 2 or
  72. later for copying conditions. There is NO warranty.