Manually
configuring an alternative disables automatic mode, preventing the system from changing these settings
without prior knowledge of the system administrator.
The Debian package management tools also provide a mechanism for renaming specific files in a
package and for overriding the ownership and permission settings on files. Unlike when these
changes are made manually using mv, chmod, or chown, changes made through the Debian tools
remain in place across package upgrades and re-installations.
For example, if you want to replace /usr/bin/users without modifying the coreutils package,
you can divert it to /usr/bin/users.distrib:
# dpkg-divert --local --rename --add /usr/bin/users
Adding `local diversion of /usr/bin/users to /usr/bin/users.distrib'
Removing the diversion returns the original filename:
# dpkg-divert --remove /usr/bin/users
Removing `local diversion of /usr/bin/users to /usr/bin/users.distrib'
Stat overrides are useful when you want to disable access to a program, or when you want to make
it set-UID. For instance, to disable access to the wall program, type the following:
# dpkg-statoverride --update --add root root 0000 /usr/bin/wall
This sets the owner and group of /usr/bin/wall to root and root and disables all permissions on
the file.
Pages:
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666