Your message dated Fri, 9 Sep 2011 11:17:54 -0600
with message-id <[email protected]>
and subject line Re: Bug#640894: 'useradd' fails adding a user to a given
group; 'id' and 'groups' give a false positive
has caused the Debian Bug report #640894,
regarding 'useradd' fails adding a user to a given group; 'id' and 'groups'
give a false positive
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
640894: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640894
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: coreutils
Version: 8.5-1
Severity: important
I try to create the user "testuser" adding it to the "staff" group:
bash:# useradd -M -g staff --password sa1aY64JOY94w testuser
"id" says that all was gone rightly:
bash:# id testuser
uid=1002(testuser) gid=50(staff) groups=50(staff)
... "groups" also confirm it:
bash:# groups testuser
testuser : staff
But if I check deeply, I discover that the user is not in the group:
bash:# grep staff /etc/group
staff:x:50:
At this point I try to add again the user to the group using adduser:
bash:# adduser testuser staff
Adding user `testuser' to group `staff' ...
Adding user testuser to group staff
Done.
Now the user appears in the group:
grep staff /etc/group
staff:x:50:testuser
Another verification:
bash:# adduser testuser staff
The user `testuser' is already a member of `staff'.
So it seems that useradd doesn't add really the user. Moreover 'id' and
'groups' fail to check the user presence in the group.
Best regards.
Alberto Eusebi
-- System Information:
Debian Release: 6.0.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages coreutils depends on:
ii libacl1 2.2.49-4 Access control list shared library
ii libattr1 1:2.4.44-2 Extended attribute shared library
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libselinux1 2.0.96-1 SELinux runtime shared libraries
--
Alberto Eusebi
[email protected]
--- End Message ---
--- Begin Message ---
After some offline discussion all issues have been resolved. I am
closing this bug report.
Bob
--- End Message ---