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.
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
@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.