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

Bug#291177: [PROPOSAL] Policy for user/groups creation/removal in package maintainer scripts



On Wed, Jan 19, 2005 at 09:54:50AM -0200, Henrique de Moraes Holschuh wrote:
> On Wed, 19 Jan 2005, Javier Fernández-Sanguino Peña wrote:
> > There is currently no policy on how should per-package users be created and 
> > removed. Eeven though the 'UID and GID classes' sections determines that 
> > packages _should_ use adduser --system in some occasions it doesn't 
> 
> Make it *must* use adduser --system, *if* they add an user at all.

Some packages might need to use a hardcoded UID (and there's a UID range
for those) those don't use 'adduser --system'

> 
> > - maintainers scripts should create a system user for their daemon in
> > postinst.  User creation should not fail if the user already exists
> > (example code should be provided here, since this is sometimes not done
> > properly in maintainer scripts). Maintainer scripts can ask to the admin if 
> > the user already exists.
> 
> Maintainer scripts can ask about an already existing user *if and only if*
> it is not a system user...  no more useless, aggravating postinst prompts,
> please.

True. I would love to see a sample for that so that postinst scripts would 
reuse that. Actually, it could even be integrated into a dh_adduser script, 
couldn't it?

Regards

Javier

Attachment: signature.asc
Description: Digital signature


Reply to: