open a terminal on your hda, or, if you use putty, open a connection to your hda.
First, backup your smb.conf file, in case you run into problems you can easily revert back.
#* 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
for convienence i'll post my complete smb.conf as a sample for you.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::=======================================================================;# This file is automatically generated any manual changes WILL BE OVERWRITTEN;# Amahi configuration, generated on Sun Jul 05 18:15:27 +0200 2009
[global]
workgroup = {YOUR_DOMAIN}
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
;# below options are added to make amahi a pdc #
os level = 65
preferred master = yes
logon drive = q:
logon home = \\hda\%u
;# end pdc options #
time server = yes
printer admin = root, @ntadmin, administrator
;# The homes share #
[homes]
read only = no
browseable = no
;# end [homes] #
;# The netlogon share required for domain logons #
[netlogon]
comment = Network Logon Service
writable = no
share modes = no
;# end [netlogon] #
;# The profiles share needed to store your roaming profiles #
[Profiles]
comment = Roaming Profile Share
read only = No
profile acls = Yes
;# [end profiles share] #
[print$]
printable = yes
public = yes
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::=======================================================================
Save your smb.conf
- 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.
aditionally, a profile directory needs to be created.
- * mkdir /var/hda/domain-settings/profiles/nol
nol is the user i created through the users tab of the amahi dashboard.
Since we are logging in as root, we need to change the ownership of the previously created directory to the corresponding owner:
Now, this still doesnt allow us to login, because in samba, machines need to be added too!
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. Next when we added the Samba password, we invoked the -m,
now its time to restart samba.
- * /etc/init.d/smb restart
Now you need to setup your Windows pc for domain logins.
***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.
After rebooting, any valid user will be able to access the domain.