1dpkg-statoverride(8)            dpkg utilities            dpkg-statoverride(8)
2
3
4

NAME

6       dpkg-statoverride - override ownership and mode of files
7

SYNOPSIS

9       dpkg-statoverride [options] command
10

DESCRIPTION

12       `stat  overrides' are a way to tell dpkg(1) to use a different owner or
13       mode for a file when a package is installed.  (note:  I  use  the  word
14       `file' here, but in reality this can be any filesystem object that dpkg
15       handles, including directories, devices, etc.). This  can  be  used  to
16       force  programs that are normally setuid to be install without a setuid
17       flag, or only executable by a certain group.
18
19       dpkg-statoverride is a utility to manage the list of stat overrides. It
20       has three basic functions: adding, removing and listing overrides.
21

COMMANDS

23       --add user group mode file
24              Add  an override for file. file does not need to exist when this
25              command is used; the override will be  stored  and  used  later.
26              Users  and  groups  can  be specified by their name (for example
27              root or nobody), or by their number  by  prepending  the  number
28              with  a  `#'  (for  example  #0 or #65534). The mode needs to be
29              specified in octal.
30
31              If --update is specified and file exists, it is immediately  set
32              to the new owner and mode.
33
34       --remove file
35              Remove  an  override  for  file,  the  status  of  file  is left
36              unchanged by this command.
37
38       --list [glob-pattern]
39              List all overrides. If a glob pattern is specified restrict  the
40              output  to overrides which match the glob. If there are no over‐
41              rides or none match the glob dpkg-statoverride will exit with an
42              exitcode of 1.
43
44       --help Show the usage message and exit.
45
46       --version
47              Show the version and exit.
48

OPTIONS

50       --admindir directory
51              Change the directory of the dpkg database where the statoverride
52              file is also stored. Defaults to /var/lib/dpkg.
53
54       --force
55              Force an action, even if a sanity check would otherwise prohibit
56              it.  This is necessary to override an existing override.
57
58       --update
59              Immediately  try to change the file to the new owner and mode if
60              it exists.
61
62       --quiet
63              Be less verbose about what we do.
64

FILES

66       /var/lib/dpkg/statoverride
67              File which contains the current list of stat  overrides  of  the
68              system.  It  is  located  in  the dpkg administration directory,
69              along with other files important to dpkg, such  as  `status'  or
70              `available'.
71              Note:  dpkg-statoverride  preserves  the  old copy of this file,
72              with extension "-old", before replacing it with the new one.
73

SEE ALSO

75       dpkg(1).
76

AUTHOR

78       Copyright © 2000 Wichert Akkerman
79
80       This is free software; see the GNU General Public Licence version 2  or
81       later for copying conditions. There is NO WARRANTY.
82
83
84
85Debian project                    2009-06-26              dpkg-statoverride(8)
Impressum