Samba Error: The following error occurred attempting to join the domain “domain name”. The user name could not be found.

After setting up the samba make sure you add root

smbpasswd -a root

If you get the above error try this:

smbpasswd -a -m $machinename

(the machine you are trying to join to the domain)

you might get the error the group ‘machines does not exist.

addgroup machines

try again now you should be able to add the machine name and join the doamin.

Look at the /var/log/samba/log.machinename for more details of the errors you get.

2 thoughts on “Samba Error: The following error occurred attempting to join the domain “domain name”. The user name could not be found.

  1. jaswant says:

    i have join the domain, but my shared directory does not show the window, how to check file and folder in created by user in window. check in linux

    • hikmatune says:

      @jaswant

      In the smb.conf go to Share Definitions and uncomment [homes] and required parameters to allow users store file user /home/username/fileandfolders.

      Hope I have answered you question.

Comments are closed.