R: R: [Samba] LS not showing AD owner username and groupname
Gerald (Jerry) Carter
jerry at samba.org
Wed May 9 16:17:13 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gianluca Culot wrote:
> 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# ~ >
What about perl -e '@user = getpwuid(100000); print "@user\n";
Same pricipal as getgrgid().
cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGQfQJIR7qMdg1EfYRAoD1AJ91JpSIkTUNal9TBqtDUYKPS8piDQCg0lcl
HL0ESmRPxRMWbEEgPOeBe74=
=2DHg
-----END PGP SIGNATURE-----
More information about the samba
mailing list