open a terminal on your hda, or, if you use putty, open a connection to your hda.<br>First, backup your smb.conf file, in case you run into problems you can easily revert back.<br>
* cp /etc/samba/smb.conf /etc/samba/smb_old.conf
next we need to modify the smb file, i use nano for this, you may use any editor you feel confortable with
* nano /etc/samba/smb.conf
change the apropriate parts in the smb.conf.<br>
for convienence i'll post my complete smb.conf as a sample for you.
=======================================================================
So at this point we need to create the corresponding directories:
- * mkdir /var/hda/domain-settings- * mkdir /var/hda/domain-settings/netlogon
* mkdir /var/hda/domain-settings/profiles
Each time you want a user to join the domain, a user needs to be added, this can be done through the users tab on the amahi dashboard.<br>aditionally, a profile directory needs to be created.<br>* mkdir /var/hda/domain-settings/profiles/nolJanJacobsnol JanJacobs is the user i created through the users tab of the amahi dashboard.<br>
Since we are logging in as root, we need to change the ownership of the previously created directory to the corresponding owner:
* chown -R nol JanJacobs /var/hda/domain-settings/profiles/nolJanJacobsNow, 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.
* 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 computername$, this tells Linux that it is a machine, not a name. <br> Next when we added the Samba password, we invoked the -m, this again tells Samba that we are adding a pc, not a person. <br> Also, you probably noticed that it did not prompt for a password, it just added computername$. <br>When you logon to the domain, Samba will read the password from your Windows password.<br>
Now that this done, all what is left to do is restart Samba,
this also has to be done for each computer you intend to login with.<br>no we dont add the $ sign, since all we do is adding an existing linux user to the samba password file.<br>we tell samba its a machine simply by adding the -m switch to the command.<br>At this point i have network logins working, using roaming profiles.<br>
now its time to restart samba.
* /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.)