Paulo Almeida wrote:> Hi,
>
> After a serious power failure two days ago and a abrupt shutdown
> of our Samba server, i noticed today that winbind could not get info
> on some users from a Win2003 AD.
>
> wbinfo -u work fine;
> wbinfo -g work fine;
>
> but, for example:
>
> wbinfo -i ep2025 returns
> Could not get info for user ep2025
>
> wbinfo -n ep2025
> S-1-5-21-455433055-921777165-2450110497-3563 User (1)
>
> wbinfo -S S-1-5-21-455433055-921777165-2450110497-3563
> Could not convert sid S-1-5-21-455433055-921777165-2450110497-3564 to uid
>
> Any help?
>
> Regards,
> Paulo
>
> In attach goes my [global] smb.conf file
>
> System:
> Suse Linux Enterprise Server 10 SP1
> samba-3.0.28-0.2
> samba-client-3.0.28-0.2
> samba-winbind-3.0.28-0.2
> krb5-1.4.3-19.30.6
> kernel-bigsmp-2.6.16.54-0.2.5
>
>
If you're running reiserfs, you probably corrupted the /var/lib/samba db
files. Have you tried a fsck? Even if you're not running reiserfs, it
can't help after a hard halt. Also, a small UPS with Network UPS Tools
(NUT) comes in very handy for sudden power downs! :) Especially if
you're running reiserfs; it REALLY doesn't handle being dropped very
well.