Steve Zeng
2005-Oct-14 16:59 UTC
[Samba] "Wbinfo -u" get user account sucessfully but "getentpasswd" fails
How can I compare them? "wbinfo" seems has no such options. Is there any other tools available? Thanks. Steve Zeng> -----Original Message----- > From: samba-bounces+steve.zeng=ascalade.com@lists.samba.org > [mailto:samba-bounces+steve.zeng=ascalade.com@lists.samba.org] > On Behalf Of Felipe Augusto van de Wiel > Sent: Friday, October 14, 2005 6:42 AM > To: samba@lists.samba.org > Subject: Re: [Samba] "Wbinfo -u" get user account sucessfully > but "getentpasswd" fails > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Steve Zeng escreveu: > > 1) getent passwd <thisUser> > > It gave me nothing. If I run getent to check other user > accounts, > > everything is OK. > > > 2) wbinfo -u | grep <thisUser> > > It shows <thisUser> does exist. > > > I could not figure out what the reason is. Can anybody give me some > > hint? I appreciate it. > > If you compare the information from thisUser with the > information of otherUser, did you see any differences? > > Kind regards, > > - -- > ////////// > // Felipe Augusto van de Wiel <felipe@paranacidade.org.br> // > CTI/Suporte - SEDU/PARANACIDADE // > http://www.paranacidade.org.br/ ////////// -----BEGIN PGP > SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > Comment: Using GnuPG with Debian - http://enigmail.mozdev.org > > iD8DBQFDT7WhCj65ZxU4gPQRAg2qAJ9i2/00h3lq529mLnoOrWCjxLziJwCfeb1x > zoOd4ZRigJ97ucjkK+Vu2RM> =O1jd > -----END PGP SIGNATURE----- > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
Felipe Augusto van de Wiel
2005-Oct-14 18:02 UTC
[Samba] "Wbinfo -u" get user account sucessfully but "getentpasswd" fails
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steve Zeng escreveu:> How can I compare them? "wbinfo" seems has no such options. > Is there any other tools available?wbinfo -u | grep <thisUser> > thisUser.txt wbinfo -u | grep <otherUser> > otherUser.txt Than you can use diff or just compare by reading it to see what you get different. :-) Best regards, - -- ////////// // Felipe Augusto van de Wiel <felipe@paranacidade.org.br> // CTI/Suporte - SEDU/PARANACIDADE // http://www.paranacidade.org.br/ ////////// -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFDT/KrCj65ZxU4gPQRArdiAKC9+EJ+inX3semghsk0SM6c5m8AIwCeNcNm su79ZHOdU94uLeqKX3JCuI4=eHSh -----END PGP SIGNATURE-----
Steve Zeng
2005-Oct-14 18:45 UTC
[Samba] "Wbinfo -u" get user account sucessfully but "getentpasswd" fails
Hmmm, I run it and the output make me confused: # pdbedit -L -v -u jho Username not found! # pdbedit -L -v -u szeng Username not found! Then I tried "su - szeng", it successfully switched into the user "szeng". Both "jho" and "szeng" are coming from Active Directory, so do we need some other options when we run "pdbedit"? Thanks a lot. Steve Zeng> -----Original Message----- > From: samba-bounces+steve.zeng=ascalade.com@lists.samba.org > [mailto:samba-bounces+steve.zeng=ascalade.com@lists.samba.org] > On Behalf Of Felipe Augusto van de Wiel > Sent: Friday, October 14, 2005 11:29 AM > To: samba@lists.samba.org > Subject: Re: [Samba] "Wbinfo -u" get user account sucessfully > but "getentpasswd" fails > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Steve Zeng escreveu: > > It is really easy but I am an idiot :-) Thanks. > > I run it and actually it only shows me the username as follows: > > > # wbinfo -u | grep jho > > jho > > > NOTE: (jho is the user which is missing from "getent passwd") > > > # wbinfo -u | grep szeng > > szeng > > > NOTE: szeng is a regualar user which is fine > > > It seems no difference. Any idea? > > Hmmm, crap, sorry, I was thinking about a different > command. :-) Could you please try with this: > > # ]# pdbedit -L -v -u jhoUsername not found! > jho.txt> # pdbedit -L -v -u szeng > szeng.txt > > Cheers, > > - -- > ////////// > // Felipe Augusto van de Wiel <felipe@paranacidade.org.br> // > CTI/Suporte - SEDU/PARANACIDADE // > http://www.paranacidade.org.br/ ////////// -----BEGIN PGP > SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > Comment: Using GnuPG with Debian - http://enigmail.mozdev.org > > iD8DBQFDT/jgCj65ZxU4gPQRAi5lAKCUDAhCIfn+6UUNOBUukM1cn7vihACeJXbZ > G+5DQIDb/C1eI20WVgMtf0U> =gd5K > -----END PGP SIGNATURE----- > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >