dpkg-statoverride.8 3.0 KB

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