Hi all, Looking for a solution to the following:- # smbpasswd -x jh--- build_sam_account: smbpasswd database is corrupt! username jh--- with uid 1774 is not in unix passwd database! Failed to initialise SAM_ACCOUNT for user jh---. Does this user exist in the UNIX password database ? Failed to modify password entry for user jh--- # Ths user has already been deleted from the /etc/passwd (in fact NIS passwd), so all we're trying to do is to remove them from smbpasswd too. Seems an odd requirement that a user one is trying to delete has to exist in UNIX passwd! Any ideas? Mac Assistant Systems Adminstrator @nibsc.ac.uk dmccann@nibsc.ac.uk Work: +44 1707 641565 Everything else: +44 7956 237670 (anytime)
> > Looking for a solution to the following:- > ># smbpasswd -x jh--- >build_sam_account: smbpasswd database is corrupt! username jh--- with uid 1774 is not in unix passwd database! >Failed to initialise SAM_ACCOUNT for user jh---. Does this user exist in the UNIX password database ? >Failed to modify password entry for user jh--- ># > > >Ths user has already been deleted from the /etc/passwd (in fact NIS >passwd), so all we're trying to do is to remove them from smbpasswd too. > >Seems an odd requirement that a user one is trying to delete has to >exist in UNIX passwd! >Sorry, should have said. Samba 3.0.6 on IRIX 6.5. Compiled from sources. I didn't see anything about this is the 3.0.7 'What's New'. Mac Assistant Systems Adminstrator @nibsc.ac.uk dmccann@nibsc.ac.uk Work: +44 1707 641565 Everything else: +44 7956 237670 (anytime)
Alex Forrow
2004-Sep-23 00:26 UTC
[Samba] Can't delete smbpasswd user if not in /etc/passwd
Seems shody but cant you just add the user again to /etc/passwd. Then delete both. Alex On Mon, 20 Sep 2004 09:54:59 +0100 (BST), Mac <mac@nibsc.ac.uk> wrote:> Hi all, > > Looking for a solution to the following:- > > # smbpasswd -x jh--- > build_sam_account: smbpasswd database is corrupt! username jh--- with > uid 1774 is not in unix passwd database! > Failed to initialise SAM_ACCOUNT for user jh---. Does this user exist in > the UNIX password database ? > Failed to modify password entry for user jh--- > # > > > Ths user has already been deleted from the /etc/passwd (in fact NIS > passwd), so all we're trying to do is to remove them from smbpasswd too. > > Seems an odd requirement that a user one is trying to delete has to > exist in UNIX passwd! > > > Any ideas? > Mac > Assistant Systems Adminstrator @nibsc.ac.uk > dmccann@nibsc.ac.uk > Work: +44 1707 641565 Everything else: +44 7956 237670 > (anytime)-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/