Bug 6728

Summary: adduser command
Product: Busybox Reporter: Menporul Poriyaalargal <tryhardtrybest>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.21.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:
Attachments: executed command snapshot

Description Menporul Poriyaalargal 2013-12-08 20:03:30 UTC
Created attachment 5132 [details]
executed command snapshot

busybox executes "addgroup" when "adduser" command is executed.
This is with 1.21.1 version of busybox cross-compiled for ARM with arm-linux-gnueabi- toolchain.
Comment 1 Denys Vlasenko 2013-12-20 19:45:37 UTC
(In reply to comment #0)
> Created attachment 5132 [details]
> executed command snapshot
> 
> busybox executes "addgroup" when "adduser" command is executed.
> This is with 1.21.1 version of busybox cross-compiled for ARM with
> arm-linux-gnueabi- toolchain.

The bug is that "adduser" with no params should error out, but there is no check for that. So it trues to create NULL user.

For that, it runs "addgroup -- <NULL> users" which isn't going to work - it prints help instead.

Fixed in git.