useradd lfs

Thomas Pegg thomasp at linuxfromscratch.org
Fri Jul 2 16:33:36 PDT 2004


On Fri, 2004-07-02 at 08:24, Jamie Bennett wrote:
> Thomas Beneke wrote on 02 July 2004 14:09
> > Kevin P. Fleming wrote:
> > 
> >> Thomas Beneke wrote:
> >> 
> >>> Comment: I can't find a "groupdel lfs" .
> >> 
> >> 
> >> I didn't say that the profile _removed_ the lfs user/group when it was
> >> done, just that it checked to see if they existed before trying to add
> >> them again. Is there some particular reason why you need to have the
> >> "lfs" user/group removed between profile runs? Hi Kevin,
> > 
> > I got the following message:
> > 
> > ?I: Executing in /source/lfs:
> > 
> > ?I:     cp zlib-1.2.1.tar.gz /lfs/tools/packages-CVS-20040616
> > 
> > ?I: Executing system command in /:
> > 
> > ?I:     groupadd lfs
> > 
> > ?-: groupadd: group lfs exists
> >                                                     ?E: Execution failed
> > (9).
> > 
> > ?I: Total time executing: 00:00:00
> 
> The profile definitely uses a 'groupadd lfs' and my understanding is that
> unless you use the -f option it should just carry on. Maybe groupadd is
> returning a non-zero exit code to the <execute> element and nALFS is
> interpreting this as an error? I don't have my linux box here so I can't
> check but if nothing else materialises by the time I get home I'll look
> into it more.

Actually you need to use -f in order for it to continue, currently it
errors correctly because the group already exists, you need -f to
override that.


-- 
Thomas 
LFS User : 4729 
Linux User : 298329 
warpcore - 18:31:58 up 6 days, 22:05, 2 users, load average: 0.24, 0.12,
0.09
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20040702/e84b7ba3/attachment.sig>


More information about the alfs-discuss mailing list