Bug 9736

Summary: adduser can't add a user to a group
Product: Busybox Reporter: pyBlob <laqueray>
Component: Standard ComplianceAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description pyBlob 2017-03-13 13:50:29 UTC
Steps to reproduce:
1. create new user (optional)
2. adduser user group

Output:
bash-4.4# adduser someuser
adduser: /home/someuser: No such file or directory
Changing password for someuser
New password: 
Bad password: too short
Retype password: 
passwd: password for someuser changed by root
bash-4.4# adduser someuser somegroup
addgroup: group 'someuser' in use
bash-4.4# busybox
BusyBox v1.26.2 (2017-03-07 14:31:30 CET) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.

Actual Result:
- User is not added to group.
- Error message mentions "addgroup"

Expected Result
- User should get added to group
- Error messages should metion "adduser"
Comment 1 pyBlob 2017-03-13 13:53:54 UTC
Some additional tries after looking at the command description also fail:
bash-4.4# addgroup someuser somegroup
addgroup: group 'someuser' in use
bash-4.4# adduser -G somegroup someuser
adduser: unknown group somegroup
bash-4.4# addgroup somegroup
bash-4.4# adduser -G somegroup someuser
adduser: user 'someuser' in use