Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184184 - can not add user to groups using groupmems or useradd
Summary: can not add user to groups using groupmems or useradd
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-04 12:34 UTC by Mario Dejung
Modified: 2009-05-01 13:07 UTC (History)
0 users

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 Mario Dejung 2007-07-04 12:34:11 UTC
I try to create new groups and stuff on my desktop using the groupadd command.

after this i edited the /etc/group file and put my name behind the new group
after this i logged in with my name, and typed the command groups, but it list all groups except the one i allready created.

i tried the same thing with the groupmems command, and i got a segmentation fault


i tried also to create a new user and put it directly in the group, but this worked not perfect...


when i make this changes by hand in the file, the groups will get not updated...

Reproducible: Always

Steps to Reproduce:
some examples

-->
linuxtower dejungma # useradd -g wheel testuser
linuxtower dejungma # grep wheel /etc/group
wheel:x:10:root,dejungma
linuxtower dejungma # su testuser
testuser@linuxtower /home/dejungma $ groups 
wheel
testuser@linuxtower /home/dejungma $ grep wheel /etc/group
wheel:x:10:root,dejungma
<--

or when i used the groupmems command
-->
linuxtower ~ # groupadd test
linuxtower ~ # grep test /etc/group
test:x:450:
linuxtower ~ # groupmems -a dejungma -g test
Segmentation fault
<--



i use the newest version of shadows
[ebuild   R   ] sys-apps/shadow-4.0.18.1-r1  USE="cracklib nls pam -nousuid (-selinux) -skey"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-04 13:30:22 UTC
Has zero in common w/ CVS product; not to mention that you need to re-login if you edit /etc/groups for the changes to take effect.

This is not a support forum, bugzilla is for bugs.
Comment 2 Jeff Mitchell 2009-05-01 13:07:58 UTC
No idea what the comment above is about, what with CVS and all.  Anyways, FYI: I ran into this today when trying to add users to a group.  From Googling around it's a pretty common problem.  Upgrading to sys-apps/shadow-4.1.3.1 fixed it for me and it's working properly now.