[Samba] pdbedit dump core

Andrew Bartlett abartlet at samba.org
Wed Sep 22 09:12:21 UTC 2021


On Wed, 2021-09-22 at 10:07 +0100, Rowland Penny via samba wrote:
> On Wed, 2021-09-22 at 08:32 +0200, Jacques Beigbeder via samba wrote:
> > Hello Samba users,
> > 
> > Environment: Ubuntu 20.04 up to date
> > Linux users: 3500 logins
> > 
> > For 1 user, says cpier:
> > # samba-tool user show cpier : seems OK
> > # pdbedit -L -w | grep cpier: seems OK
> > # smbpasswd cpier : works
> > # samba-tool dbcheck : is OK
> > # pdbedit -i smbpasswd:FILE : worked for 2306 entries on 3500,
> >   and failed.
> >   
> > One experiment:
> > # cat s
> > cpier:34164:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:31D6CFE0D16...
> > # pdbedit -i smbpasswd:s
> > Segmentation fault (core dumped)
> > 
> > syslog then tells:
> >   kernel: [ 1580.615611] pdbedit[1311]: segfault at 0 ip
> > 00007f6dd3d2ae34 s... error 4 in libsamba-passdb.so.0.28.0[
> >   kernel: [ 1580.615617] Code: fd 53 48 8b bf 10 02 00 00 e8 58 75
> > ff
> > ff 4c ...
> > 
> > Why? Is there a way to fix?
> > My purpose is to transfer an smbpasswd file from one computer
> > to another. I don't have user passwords to use smbpasswd!
> 
> Can you give us more information on how you are running Samba, it
> sounds like you are running Samba as a standalone server, but you
> refer
> to samba-tool that only works with AD.

Running pdbedit under gdb with gdb --args pdbedit ...

Then 'r' for run.

When it crashes getting a backtrace with 'bt' would be useful.  I would
normally ask for a 'bt full' bit given the situation this is likely to
contain sensitive info.

Andrew Bartlett

-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead, Catalyst IT   https://catalyst.net.nz/services/samba

Samba Development and Support, Catalyst IT - Expert Open Source
Solutions




More information about the samba mailing list