R: R: [Samba] LS not showing AD owner username and groupname

Gianluca Culot gianlucaculot at dmsware.com
Wed May 9 08:20:03 GMT 2007


> -----Messaggio originale-----
> Da: Gerald (Jerry) Carter [mailto:jerry at samba.org]
> Inviato: mercoledì 9 maggio 2007 0.21
> A: Gianluca Culot
> Cc: Samba at Lists. Samba. Org
> Oggetto: Re: R: [Samba] LS not showing AD owner username and groupname
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Gianluca Culot wrote
> :
> > wbinfo -i returns correct infos about AD users, and none for local users
> > mail# /usr/local/etc/apache22 > wbinfo -i user1
> > user1:*:2144:1513:User One:/home/user1:/bin/csh
> >
> > But I have NO GETENT executable
>
>  perl -e '@user = getpwnam("DOMAIN\\user"); print "@user\n";'
>
>
>
>
>
> cheers, jerry
> =====================================================================
> Samba                                    ------- http://www.samba.org
> Centeris                         -----------  http://www.centeris.com
> "What man is a man who does not make the world better?"      --Balian
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGQPfGIR7qMdg1EfYRArBXAKCwdzHmigpI8JNbBOExtje80q4yJwCfQU31
> NoMpUfHFprKCE5hAoOur2HQ=
> =z093
> -----END PGP SIGNATURE-----
>

Thanks for the Hint...
as maybe you have understood...I'm not a pro !

so... again... I see no error at all !
mail# ~ > perl -e '@user = getpwnam("DMSWARE\\robertasimula"); print
"@user\n";'
robertasimula * 2114 1513 0  Roberta Simula /home/robertasimula /bin/csh 0
mail# ~ >

and I've extended you suggestion with a call to getgrnam
mail# ~ > perl -e '@user = getpwnam("MYDOMAIN\\user1"); print "@user\n";
@group = getgrnam("MYDOMAIN\\domain users"); print "@group\n";'
user1 * 2114 1513 0  User One /home/user1 /bin/csh 0
domain users x 1513 risrobot administrator
mail# ~ >

as far as I can see.... it is Perfect

I've checked every log file
/var/log/messages
/var/log/samba/*

no error, except if I try to get info about a non existing user or domain !

[2007/05/09 09:45:03, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(259)
  group domain administrator in domain MYDOMAIN does not exist
[2007/05/09 09:45:06, 1] nsswitch/winbindd_group.c:winbindd_getgrnam(259)
  group domain administrators in domain MYDOMAIN does not exist


yet LS is NOT showing user name and user group in file listing... this is
not actually a problem for me (as i know groups by ID) but for other
people... who can make a mess when managing shares or others...




More information about the samba mailing list