Samba Version 3.6.3 on Ubuntu 12.04 tdbsam back end.
I discovered a few accounts we created before the Domain was configured did not have the correct domain name. One was an account named "administrator" intended to be the Samba Administrator account.
In order to change the domain I ran this command:
# pdbedit -I "DOMAINNAME" -U username
It worked on a number of accounts when I tried it on "administrator" I get this:
# pdbedit -I "DOMAINNAME" -u administrator
Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
Unable to modify entry!
Here is the account information:
# pdbedit -v -u administrator gives the following output
Unix username: administrator
Account Flags: [U ]
User SID: S-1-5-21-1504512832-3249319461-1142831928-500
Primary Group SID: S-1-5-21-1504512832-3249319461-1142831928-513
Full Name: Samba Administrator,,,
Home Directory: \\hamlet\administrator
HomeDir Drive: U
Profile Path: deleted for privacy
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: Fri, 30 Dec 2005 17:29:27 CST
Password can change: Fri, 30 Dec 2005 17:29:27 CST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
I don't see anything here that looks out of place but I don't know what it all means.
I also tried to delete the account using smb password and it failed:
# smbpasswd -x administrator
Failed to delete entry for user administrator.
Is there another way to resolve this?