dpkg-statoverride.8 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. \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. .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. If there are no overrides or none
  36. match the glob \fBdpkg-statoverride\fR will exit with an exitcode of 1.
  37. .TP
  38. .I --force
  39. Force an action, even if a sanity check would otherwise prohibit it.
  40. This is necessary to override an existing override.
  41. .TP
  42. .I --update
  43. Immediately try to change the file to the new owner and mode if it
  44. exists. This is only done for \fI--add\fR.
  45. .TP
  46. .I --quiet
  47. Be less verbose about what we do.
  48. .TP
  49. .I --help
  50. Show version, copyright and usage information.
  51. .TP
  52. .I --admindir
  53. Change the directory of the dpkg database where the statoverride file is
  54. also stored. Defaults to /var/lib/dpkg.
  55. .SH FILES
  56. .TP
  57. .I /var/lib/dpkg/statoverride
  58. File which contains the current list of stat overrides of the system. It
  59. is located in the dpkg administration directory, along with other files
  60. important to dpkg, such as `status' or `available'.
  61. .br
  62. Note: dpkg-statoverride preserves the old copy of this file, with
  63. extension "-old", before replacing it with the new one.
  64. .SH SEE ALSO
  65. .BR dpkg (8)
  66. .SH AUTHOR
  67. Copyright 2000 Wichert Akkerman
  68. .UR mailto:wakkerma@debian.org
  69. <wakkerma@debian.org>
  70. .UE
  71. .sp
  72. This is free software; see the GNU General Public Licence version 2 or
  73. later for copying conditions. There is NO warranty.