Now, this still doesnt allow us to login, because in samba, machines need to be added too!<br>
this can be done automaticly, but for the time beeing we do it manually, amahi may facilitate this for you in the future.
{{Code| useradd -s /bin/false -d /dev/null computername$ smbpasswd -a -m computername}}Now as you can see there are some differences, when we added the Windows pc to Linux, we added the name computernamecomputer name$,
this tells Linux that it is a machine, not a name.<br>
Next when we added the Samba password, we invoked the -m,
now its time to restart samba.
{{Code| /etc/init.d/smb restart}}
Now you need to setup your Windows pc for domain logins.<br>
(Note the first time that you join a Samba domain from Windows, you will need to join the domain by using root as the name, and your root password for the password.<br>
After rebooting, any valid user will be able to access the domain.)