Can't create users and groups

Axel Thimm Axel.Thimm at ATrpms.net
Fri Mar 16 20:01:01 UTC 2007


On Fri, Mar 16, 2007 at 10:48:32AM +0100, Peter Vrabec wrote:
> Jesse,
> 
> shouldn't we describe how we create users in
> http://fedoraproject.org/wiki/Packaging/Guidelines

Yes, we should.

> it would also make clear that maintainers shouldn't use fedora-usermgmt.

+1

We should pick two typical example packages, one with a static uid/gid
(httpd) and one with dynamic, which do a proper job with uid/gid and
submit this as a PackagingDraft.

> Jesse Keating wrote:
> > On Thursday 15 March 2007 18:04:19 Mário Gamito wrote:
> >> Would you be so kind to be more specific ?
> >> I've tried the %pre section, but it didn't create the groups and the users.
> >>
> >> The %pre section is before the %prep, right ?
> >>
> >> The make setup already needs the users and groups to exist.
> > 
> > Sorry, I wasn't clear.  You can't rely on creating users during the build 
> > process, as the place you build does not always equal the place you install.  
> > You _have_ to be able to build without creating the users.  You use %pre to 
> > create the users as %pre is executed on the host that you're installing the 
> > package on, before the package files are put in place.  %pre creates the 
> > user, %defatter defines that the files should be owned by said user when 
> > they're laid out on the file system.
> > 
> > If the build (potentially without 'check') cannot complete without the user 
> > being added, you may be stuck with fixing the broken make system for that 
> > software.
> > 
> > 
> 

-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20070316/a7a974d1/attachment.sig>


More information about the fedora-extras-list mailing list