dpkg-statoverride.8 2.7 KB

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