GNU bug report logs - #9732
bug or feature?

Previous Next

Package: coreutils;

Reported by: Shevtsov Anton Yurevich <shevtsov <at> kitlinkor.ru>

Date: Wed, 12 Oct 2011 04:25:01 UTC

Severity: normal

Tags: moreinfo, notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9732 in the body.
You can then email your comments to 9732 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#9732; Package coreutils. (Wed, 12 Oct 2011 04:25:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shevtsov Anton Yurevich <shevtsov <at> kitlinkor.ru>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 12 Oct 2011 04:25:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shevtsov Anton Yurevich <shevtsov <at> kitlinkor.ru>
To: bug-coreutils <at> gnu.org
Subject: bug or feature?
Date: Wed, 12 Oct 2011 10:18:21 +0600
Hi,

I found strange result for 'id' use.
If run id with lowercase login we getting this

[shev_ay <at> pandora Admins]$ id -a shev_ay
uid=1062(shev_ay) gid=513(DomainUsers)
groups=513(DomainUsers),100(users),2005(vboxusers),2006(ossec),512(DomainAdmins),201(hpclj5550),203(xpe120i),1010(xpe120i2),1013(PetrelUsers),1019(AddressBook),1020(prjREGION),1039(GGX_users),1040(Project0),1041(ATSusers),1045(SharedRoster),1046(prjSAMOTLOR),1047(DIRECTUM_users),1048(unixadmins),1057(prjSAMOTLOR_GDM)

if first letter in uppercase, we get
[shev_ay <at> pandora Admins]$ id -a Shev_ay
uid=1062(shev_ay) gid=513(DomainUsers) groups=513(DomainUsers)

and last, if first letter in uppercase and space at end
[shev_ay <at> pandora Admins]$ id -a 'shev_ay '
uid=1062(shev_ay) gid=513(DomainUsers)
groups=513(DomainUsers),512(DomainAdmins),201(hpclj5550),203(xpe120i),1010(xpe120i2),1013(PetrelUsers),1019(AddressBook),1020(prjREGION),1039(GGX_users),1040(Project0),1041(ATSusers),1045(SharedRoster),1046(prjSAMOTLOR),1047(DIRECTUM_users),1048(unixadmins),1057(prjSAMOTLOR_GDM)


cat /etc/nsswitch.conf
passwd:     files ldap
shadow:     files ldap
group:      files ldap

p.s into ldap all fields is lowercase

-- 
Anton Shevtsov





Information forwarded to bug-coreutils <at> gnu.org:
bug#9732; Package coreutils. (Wed, 12 Oct 2011 14:11:01 GMT) Full text and rfc822 format available.

Message #8 received at 9732 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Shevtsov Anton Yurevich <shevtsov <at> kitlinkor.ru>
Cc: 9732 <at> debbugs.gnu.org
Subject: Re: bug#9732: bug or feature?
Date: Wed, 12 Oct 2011 08:09:45 -0600
tag 9732 needinfo
thanks

On 10/11/2011 10:18 PM, Shevtsov Anton Yurevich wrote:
> Hi,
>
> I found strange result for 'id' use.
> If run id with lowercase login we getting this
>
> [shev_ay <at> pandora Admins]$ id -a shev_ay
> uid=1062(shev_ay) gid=513(DomainUsers)
> groups=513(DomainUsers),100(users),2005(vboxusers),2006(ossec),512(DomainAdmins),201(hpclj5550),203(xpe120i),1010(xpe120i2),1013(PetrelUsers),1019(AddressBook),1020(prjREGION),1039(GGX_users),1040(Project0),1041(ATSusers),1045(SharedRoster),1046(prjSAMOTLOR),1047(DIRECTUM_users),1048(unixadmins),1057(prjSAMOTLOR_GDM)
>
> if first letter in uppercase, we get
> [shev_ay <at> pandora Admins]$ id -a Shev_ay
> uid=1062(shev_ay) gid=513(DomainUsers) groups=513(DomainUsers)

Given the magic group 513 as DomainUsers, I can't help but wonder if 
this is on Windows, perhaps via the cygwin port.  If so, your question 
is better asked to the place that ported id to your platform - cygwin 
may very well have a quirk in exposing window's case-insensitivity when 
it queries the user database.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




Added tag(s) moreinfo. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Wed, 12 Oct 2011 14:19:02 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Wed, 12 Oct 2011 15:42:01 GMT) Full text and rfc822 format available.

Reply sent to Eric Blake <eblake <at> redhat.com>:
You have taken responsibility. (Wed, 12 Oct 2011 15:42:02 GMT) Full text and rfc822 format available.

Notification sent to Shevtsov Anton Yurevich <shevtsov <at> kitlinkor.ru>:
bug acknowledged by developer. (Wed, 12 Oct 2011 15:42:02 GMT) Full text and rfc822 format available.

Message #17 received at 9732-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Anton Shevtsov <shev_ay <at> kitlinkor.ru>, 9732-done <at> debbugs.gnu.org
Subject: Re: bug#9732: bug or feature?
Date: Wed, 12 Oct 2011 09:40:41 -0600
tag 9732 notabug
thanks

[re-adding the list]

On 10/12/2011 09:36 AM, Anton Shevtsov wrote:
>>> if first letter in uppercase, we get
>>> [shev_ay <at> pandora Admins]$ id -a Shev_ay
>>> uid=1062(shev_ay) gid=513(DomainUsers) groups=513(DomainUsers)
>>
>> Given the magic group 513 as DomainUsers, I can't help but wonder if
>> this is on Windows, perhaps via the cygwin port. If so, your question
>> is better asked to the place that ported id to your platform - cygwin
>> may very well have a quirk in exposing window's case-insensitivity
>> when it queries the user database.
>
> Eric, thanks for reply.
> No Windows anywhere :)
> Users accounts into ldap (openldap). DomainUsers creating for WIndows
> compatibility and not used.
> I am login into CentOS5, run id command and see this :)
>
> I trying for three different platform (three domains)
> 1) samba 3.4.8+openldap
> 2) samba 3.4.8+port389
> 3) samba 3.4.8+fedora directory server

So the problem is not Windows, but in Samba's emulation of Window's 
case-insensitive quirks.  That is, samba is the culprit that is treating 
your database queries case-insensitively, since samba must interact with 
windows, and windows does the same.

> Users getting from files, ldap (/etc/nsswitch.conf) always.
>
> The result is equivalent to anywhere. It's my side problems or what? :)
> Help :)

You can run strace to see what the actual kernel calls and results were. 
 Coreutils is not at fault here - it is something in the kernel itself 
(most likely, how the kernel is interacting with samba, and thus in 
samba rather than in the kernel proper) that is providing the results 
you are seeing.

I'll go ahead and mark this bug done on the coreutils side.  You can 
continue to add comments as you learn more information, but at this 
point, I see nothing that coreutils needs to change, rather that you 
need to pursue elsewhere, such as on a samba list, for more answers.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 Nov 2011 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 225 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.