LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-04-2008, 09:12 AM   #1
Interflex
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
Wbinfo not showing all users


Recently many users have been getting failed login when accessing the samba shares. I then looked at wbinfo and it is not returning the full list of users only half of them.

What could cause this?
 
Old 09-05-2008, 10:00 AM   #2
Interflex
Member
 
Registered: Aug 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Can somebody please help with this as it is an intermittent problem that could loose important data.
 
Old 11-17-2008, 11:48 PM   #3
mar10
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 1
There could be two reasons:
1. Your winbind cache could be containing corrupt data. You can find this in /var/lib/samba.
a.) stop samba and winbind
b.) Make a backup copy of /var/lib/samba
c.) Delete contents of /var/lib/samba
d.) Rejoin your server to your domain: net rpc join -S <netbios name of domain server> -U [root%<*samba* root password> | <domain admin>%<domain admin password> ]
e.) restart samba and winbind
f.) Time sync is crucial. Always have an ntp client in your member server synching with the time in your domain controller.

or....

2. Your pdc could be running heavy. Check youe domain controller's systems load. A heavily loaded PDC can not respond to your member server's query resulting in having not all the users authenticated. If I am not mistaken, time-out period is 10 seconds.

TIP: Increase the winbind cache time. This way winbind will not query authentication to your pdc often. If your don't add/delete users/groups often try changing it to the equivalent of 1 - 2 days (in seconds of course)
 
Old 08-26-2009, 03:01 PM   #4
slinx
Member
 
Registered: Apr 2008
Location: Cleveland, Ohio
Distribution: SuSE, CentOS, Fedora, Ubuntu
Posts: 106

Rep: Reputation: 23
Did it work?

Interflex, did this work?

This worked for me! Thank you very much!

Last edited by slinx; 08-26-2009 at 03:23 PM. Reason: update
 
Old 09-25-2009, 04:54 AM   #5
daniel-kun
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
This worked for me after the third try, too. It's crucial to do it in EXACTLY this order! Stop daemons, delete files, add to domain, start daemons. Thanks mar10
 
Old 04-09-2010, 03:33 PM   #6
hunter3740
LQ Newbie
 
Registered: Mar 2010
Location: Pittsburgh
Distribution: Debian 6
Posts: 27

Rep: Reputation: 16
"wbinfo -g" and "wbinfo -u" not showing full list

ran the following:

sudo pico /etc/samba/smb.conf
then add "winbind cache time = 40" (or at least something greater than 10)
and of course Ctrl "x", "y", and Enter to get out of pico
sudo mv winbindd_idmap.tdb winbindd_idmap.tdb.old
sudo /etc/init.d/winbind stop
sudo /etc/init.d/samba restart
sudo /etc/init.d/winbind start
wbinfo -g
wbinfo -u

which worked, at least for me, using Debian Lenny (but now I'm onto another problem of getting "getent group" and "getent passwd" to list the same results as the wbinfo commands (but with SID and GID I can use to lock down some folders)...
 
Old 07-08-2010, 06:21 AM   #7
gearoid_murphy
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Debian Etch
Posts: 72

Rep: Reputation: 18
In my case, the tdb files were cached in /var/cache/samba
 
  


Reply

Tags
networking, samba, winbind


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wbinfo -u Error looking up domain users euro2004 Linux - Networking 6 06-21-2011 04:15 AM
getent passwd not showing some users dmusil Linux - Software 0 05-14-2008 12:20 PM
'Who' showing not logged in users eluzi Linux - Networking 6 03-15-2006 09:58 AM
wbinfo - output all users from one group paul_mat Linux - Networking 0 09-15-2005 07:16 PM
Showing Users from passwd kemplej Programming 1 12-30-2004 10:10 AM


All times are GMT -5. The time now is 06:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration