How to delete samba user after deleting the corresponding unix user.

Solution In Progress - Updated -

Issue

  • The customer wants to delete a samba user (smbuser02). However the customer has already deleted the corresponding unix user, so the samba user cannot be deleted by smbpasswd with the following message:
# smbpasswd -x smbuser02
build_sam_account: smbpasswd database is corrupt!  username smbuser02 with uid 3001 is not in unix passwd database! Failed to find entry for user smbuser02
  • The customer cannot add a user that has uid 3001. Because other unix user has already had uid 3001.

Environment

  • Red Hat Enterprise Linux 6.5
  • samba-3.6.9-167.el6_5.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content