When we run SAMBA-tool, the smb.conf file will regenerate. When SAMBA is installed, we want to first remove the default smb.conf file located at /etc/samba/smb.conf. If you do use tasksel, select SAMBA file server. If you missed installing the SAMBA file utility during your initial system setup, get the Software selection tool again issuing the command: $ sudo tasksel Because we added the SAMBA file server component during the original Ubuntu operating system install, we can now run our SAMBA configuration utility SAMBA-tool. This is quickly accomplished with the command: $ sudo shutdown -r now Configure SAMBA server as domain controllerĪt this point, we’re ready to configure SAMBA as a domain controller. Here’s how the fstab file looks after editing:īecause we’ve edited the way our file system initializes system partitions, we’ll restart the virtual machine to complete the options integration. We’ll include the following options for our ext4 / partition, separated by commas: user_xattr As always, it’s best to save a copy of the original file before editing. The first is the original file, and the second is the file after editing. “The fstab file typically lists all available disk partitions and other types of file systems and data sources that are not necessarily disk-based, and indicates how they are to be initialized or otherwise integrated into the larger file system structure.”īelow are two screenshots. The acl and attr packages were installed earlier, and now we need to add some additional options to /etc/fstab to extend the attributes of our ext4 file system partition located at the root /. The output will look similar to the following screenshot: First, stop the ntp service, set the date/time with the ntpdate command, and then start the ntp service again with the following commands: $ sudo service ntp stop$ sudo ntpdate -B $ sudo service ntp start In this case, we’ll synchronize NTP with servers. Kerberos requires that the NTP (or Network Time Protocol) is accurate and synced with time servers. After editing the hostname configuration file, it should return the correct name when issuing the command $ hostname. The following screenshot demonstrates how the file will look after editing, commenting, and setting the hostname. Now provide /etc/hostname with your hostname (DC1). Also, provide the domain name when defining the dns-search variable. Once we have the domain controller running, we’ll remove the secondary upstream DNS server, as SAMBA could have problems identifying its own DNS services. Notice that during the installation of our domain controller, two dns-nameservers are listed in our interfaces file ( 192.168.1.7 and 192.168.1.1). Your interfaces file should look similar to the following: You can use the following command to edit the file: $ sudo vi /etc/network/interfaces To assign a static IP address, edit the file /etc/network/interfaces with vi or nano. DNS is important and required to set up our domain controller with SAMBA, so ensure that the default Ethernet interface has a static IP address assigned.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |