[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#203650: Poor recommendation in dpkg-statoverride section



On Thu, Jul 31, 2003 at 06:39:38PM +0100, Colin Watson wrote:
> On Thu, Jul 31, 2003 at 06:24:18PM +0100, Andrew Suffield wrote:
> > So, let's break down what happens a bit:
> > 
> >  - dpkg unpacks the files, with their original permissions
> >  - postinst creates a user
> >  - postinst adds a statoverride to change the permissions
> > 
> > The "problem" is that the user doesn't exist until after you unpack
> > the files. Adding a statoverride here is a somewhat strange approach
> > in its own right, ignoring such matters as the period between unpack
> > and configure when permissions/owners are wrong.
> > 
> > I suggest that this sequence would make more sense:
> > 
> >  - preinst creates a user
> >  - dpkg unpacks the files
> > 
> > It's easier to understand and doesn't tread on the admin's toes as
> > much. Note that dpkg stores users by name, not by uid.
> 
> How should you ensure that the user in question exists on the system
> building the package?

Hold that thought. We hashed out a few ideas on IRC; more in a few
days. Meanwhile, let's assume it will be solved... anything else?

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

Attachment: pgpf61wBZ2prD.pgp
Description: PGP signature


Reply to: