HOWTO: Linux as a Windows Domain Controller - Trustix and Samba December 23, 2005
In a previous post, I talked about my new love for Trustix. I will attempt to document another installation using Trustix to act as a Windows Server for Microsoft Domain Controller Services, File Sharing, and a web server. Even though I am going through this process for my home server - this is the exact route one might take to create an ‘all-in-one’ server for a small business.
First the installation was a PXE install - except this time I installed additional packages. During the install, I selected the following: Minimal install with ssh access, Web Server, and Domain Services. The Domain Services selection refers to Windows File and Print sharing.
One quick command installed Webmin from a shell prompt. I went to www.webmin.com and clicked on the RPM download. After picking out a mirror from the sourceforge mirrors - I copied that shortcut to the clipboard for pasting into the terminal session open to the Trustix box. Use the following command to install: rpm –install (paste mirror here). The install took just a couple of minutes and then it was ready for connecting to http://host:10000. Webmin uses root as the user name along with the associated password to access the control panel.
To configure SAMBA click on Servers, then SAMBA Windows File and Print Sharing. You are now in the SAMBA configuration, so find the Global Configuration section and click on SWAT. You must provide the root user log-in information again to access the SWAT configuration.
From the Samba Web Administration Tool, click on the Wizard button. In the Samba configuration Wizard, click on the Edit Parameter Values button. On the Wizard parameter Edit page use the following parameters:
Workgroup - This is going to be the domain used to name your environment
realm - This is going to be fully qualified domain name of the Trustix box.
netbios name - This is going to be the same as the hostname of the Trustix box
Security Options - user
WINS Support - Yes
Now click on Commit changes to return to the Wizard.
Set the Server type to: Domain Controller
Configure WINS as: Server for client use
Expose Home directories: Yes
Click on the Commit button. After the changes are made - click on the Status button and restart all the services. Down at the bottom right of the page, click on Logout of SWAT and you will be carried back to the Webmin SAMBA section.
Down toward the bottom of the SAMBA section click on Configure automatic Unix and Samba synchronisation. Here you can setup automatic SAMBA user creation when users are added from the Webmin console. If you have existing users that were setup during the OS installation or before Webmin was installed - you will want to run the Convert Unix users to SAMBA users. This will only need to be performed once if you are going to configure automatic sync between UNIX and samba users.
At the very minimum, you should now be able to browse to the Linux server from a Windows machine using Network Neighborhood or click on Start –> Run and type in \\trustixserver and you should get prompted from a username and password. Once authenticated - the default shares you should see are netlogon, your home directory, and a Printers folder.

Leave a Reply