Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66071 - enewuser in eutils.eclass doesn't handle multiple groups properly
Summary: enewuser in eutils.eclass doesn't handle multiple groups properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-01 16:18 UTC by John Hampton
Modified: 2004-10-02 09:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Hampton 2004-10-01 16:18:40 UTC
The enewuser function fails when trying to assign a new user to multiple groups.  The problem is the use of the -g flag to useradd instead of -G.

Line 682 is:
    opts="${opts} -g ${egroups}"
should be:
    opts="${opts} -G ${egroups}"
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2004-10-01 16:36:29 UTC
I think this was fixed the other day by vapier.  cvs log says:

revision 1.107
date: 2004/09/29 15:16:42;  author: vapier;  state: Exp;  lines: +18 -3
support multiple groups properly

My cvs copy uses -G.
Comment 2 Aaron Walker (RETIRED) gentoo-dev 2004-10-02 09:50:05 UTC
My last comment was correct, so closing.