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

Re: FC4: %fedora_useradd undefined from rpm install



Quoting Michael Schwendt <bugs michael gmx net>:

> On Mon, 13 Feb 2006 11:24:39 +0100, jfontain free fr wrote:
>
> > Quoting Michael Schwendt <bugs michael gmx net>:
> >
> > > On Mon, 13 Feb 2006 10:02:03 +0100, jfontain free xx wrote:
> > >
> > > > On a newly installed up-to-date FC4 x86_64 machine:
> > > >
> > > > # rpm -i moomps-5.4-2.noarch.rpm
> > > > %fedora_useradd
> > > >
> > > > with, in the spec file:
> > > > %pre
> > > > echo %fedora_useradd
> > > >
> > > > Same result if fedora-usermgmt package is installed
> > >
> > > Unless my memory plays tricks on me, there has never been an RPM
> > > macro for fedora-usermgmt tools. You're looking for:
> > >
> > >   /usr/sbin/fedora-useradd
> >
> > Then the http://fedoraproject.org/wiki/Packaging/UserCreation page needs an
> > update.
>
> In my understanding the page only discusses the pros and cons of
> possible "useradd" techniques in rpms. Hence the "Advantages" and
> "Disadvantages" sections. I don't read it as a HOWTO.

Understood, thanks.
As packager, what am I supposed to do, especially when the following fails:

# /usr/sbin/fedora-useradd -u 23 -M -d /srv/moomps -c 'service companion to
moodss'  -s '/sbin/nologin' moomps
Usage: useradd [options] LOGIN
Options:
  -b, --base-dir BASE_DIR       base directory for the new user account
...

Tracing the script, the following is executed:
exec /usr/sbin/useradd 300 23 -M -d /srv/moomps -c 'service companion to moodss'
-s /sbin/nologin moomps

Is anybody using this?



--
Jean-Luc


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