Bug 9736 - adduser can't add a user to a group
Summary: adduser can't add a user to a group
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-13 13:50 UTC by pyBlob
Modified: 2017-03-13 13:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

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