Bug 6728 - adduser command
Summary: adduser command
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.21.x
Hardware: Other Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-08 20:03 UTC by Menporul Poriyaalargal
Modified: 2013-12-20 19:45 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
executed command snapshot (15.08 KB, image/jpeg)
2013-12-08 20:03 UTC, Menporul Poriyaalargal
Details

Note You need to log in before you can comment on or make changes to this bug.
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.