goldfisch.at-knowledgebase   (by peter pilsl)


  smbpasswd cannot add machineaccounts/useraccounts

keywords : smbpasswd samba xp domain join samba3 machine trust

# smbpasswd -a -m mycomputer
Failed to modify password entry for user mycomputer$


a possible solution is that the computer/user does not exist in the systems password-backend yet.
As stated in the smbpasswd-manpage:

Note that the default passdb backends require the user to already exist in the system password file (usually /etc/passwd), else the request to add the user will fail.


so the solution is:

create the machineaccount (dont forget the trailing $) or the useraccount first by adding it to /etc/passwd or run adduser


peter at 2009-10-12 (updated 2009-10-12)

serial : 458


If you found any nonsense in this entry or want to see important improvements, I would appreatiate to receive your comments at knowledge@goldfisch.at

disclaimer : all these entries are part of my very private knowledgebase that I created while solving problems. Many solutions are taken from other webpages or from usenet. There is no warranty for this entries of course. Some of the articles are even stupid and one day you might even find the name of my prefered pizza-service in here, cause I always forget about it. Remember : This is my knowledgebase. If you need professional support and are willing to pay for it just email me at pilsl@goldfisch.at
For enlightment take a look at http://leblogsportif.sportnation.at