Re: dpkg-statoverride and creating users in postinst
On Mon, Feb 12, 2001 at 11:29:04PM +0100, calvin@users.sourceforge.net wrote:
> Now you are in the right mood to consider calling dpkg-statoverride
> *in spite* of what I have said before. Yes, just do a
> dpkg-statoverride --list ..., and if there is nothing already there, do a
> dpkg-statoverride --add ... after your chmod,chown calls.
> Why? Simply because the administrator is a lazy beast and he wants to
> know which files are setuid installed, and with the above calls he can
> look at the /var/lib/dpkg/statoverride file, see whats in there and
> change it how he feels.
No, you shouldn't do it like this. You should do:
dpkg-statoverride --list ..., examine the output to see if a specific
mode/uid/gid is required, and if not, then just use a chmod. *Don't*
use dpkg-statoverride --add, for then there will be no way of knowing
whether or not the admin has added the override or the package has.
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
Debian GNU/Linux Developer, see http://people.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
Reply to: