<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1515405961596935511</id><updated>2024-11-01T03:35:11.972-07:00</updated><title type='text'>Linux - CentOS, Fedora, Red Hat, Ubuntu</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-8850973985069804247</id><published>2010-12-20T16:27:00.000-08:00</published><updated>2010-12-20T16:31:11.446-08:00</updated><title type='text'>Howto: restart Linux network service</title><content type='html'>&lt;p&gt;&lt;strong&gt;RedHat Linux&lt;/strong&gt; command to reload or restart network (login as root user):&lt;/p&gt; &lt;p&gt;&lt;code&gt;# service network restart&lt;/code&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;code&gt;# /etc/init.d/network restart&lt;/code&gt;&lt;/p&gt; &lt;p&gt;To start Linux network service:&lt;br /&gt;&lt;code&gt;&lt;b&gt;# service network start&lt;/b&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;To stop Linux network service:&lt;br /&gt;&lt;code&gt;&lt;b&gt;# service network stop&lt;/b&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Debian Linux&lt;/strong&gt; command to reload or restart network:&lt;br /&gt;&lt;code&gt;&lt;b&gt; # /etc/init.d/networking restart&lt;/b&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;To start Linux network service:&lt;br /&gt;&lt;code&gt;&lt;b&gt; # /etc/init.d/networking start&lt;/b&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;To stop Linux network service:&lt;br /&gt;&lt;code&gt;&lt;b&gt; # /etc/init.d/networking stop&lt;/b&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Ubuntu Linux &lt;/strong&gt;user use sudo command with above Debian Linux command:&lt;br /&gt;&lt;code&gt;&lt;b&gt; # sudo /etc/init.d/networking restart&lt;/b&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;To start Linux network service:&lt;br /&gt;&lt;code&gt;&lt;b&gt; # sudo /etc/init.d/networking start&lt;/b&gt;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;To stop Linux network service:&lt;br /&gt;&lt;code&gt;&lt;b&gt; # sudo /etc/init.d/networking stop&lt;/b&gt;&lt;/code&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/8850973985069804247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/12/howto-restart-linux-network-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/8850973985069804247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/8850973985069804247'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/12/howto-restart-linux-network-service.html' title='Howto: restart Linux network service'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-418245173496932750</id><published>2010-12-20T16:23:00.000-08:00</published><updated>2010-12-20T16:26:17.994-08:00</updated><title type='text'>Ubuntu Linux convert DHCP network configuration to static IP configuration</title><content type='html'>How to change or convert DHCP network configuration to static configuration. After initial installation, he wanted to change network settings. Further, his system is w/o GUI system aka X Windows. Here is quick way to accomplish the same:&lt;br /&gt;&lt;br /&gt;Your main network configuration file is /etc/network/interfaces&lt;br /&gt;&lt;br /&gt;Desired new sample settings:&lt;br /&gt;=&gt; Host IP address 192.168.1.100&lt;br /&gt;=&gt; Netmask: 255.255.255.0&lt;br /&gt;=&gt; Network ID: 192.168.1.0&lt;br /&gt;=&gt; Broadcast IP: 192.168.1.255&lt;br /&gt;=&gt; Gateway/Router IP: 192.168.1.254&lt;br /&gt;=&gt; DNS Server: 192.168.1.254&lt;br /&gt;&lt;br /&gt;Open network configuration file&lt;br /&gt;$ sudo vi /etc/network/interfacesOR$ sudo nano /etc/network/interfaces&lt;br /&gt;&lt;br /&gt;Find and remove dhcp entry:&lt;br /&gt;iface eth0 inet dhcp&lt;br /&gt;&lt;br /&gt;Append new network settings:&lt;br /&gt;&lt;br /&gt;iface eth0 inet static&lt;br /&gt;address 192.168.1.100&lt;br /&gt;netmask 255.255.255.0&lt;br /&gt;network 192.168.1.0&lt;br /&gt;broadcast 192.168.1.255&lt;br /&gt;gateway 192.168.1.254&lt;br /&gt;&lt;br /&gt;Save and close the file. Restart the network:&lt;br /&gt;$ sudo /etc/init.d/networking restart&lt;br /&gt;Task: Define new DNS servers&lt;br /&gt;&lt;br /&gt;Open /etc/resolv.conf file&lt;br /&gt;$ sudo vi /etc/resolv.conf&lt;br /&gt;&lt;br /&gt;You need to remove old DNS server assigned by DHCP server:&lt;br /&gt;search myisp.com&lt;br /&gt;nameserver 192.168.1.254&lt;br /&gt;nameserver 202.54.1.20&lt;br /&gt;nameserver 202.54.1.30&lt;br /&gt;&lt;br /&gt;Save and close the file.&lt;br /&gt;Task: Test DNS server&lt;br /&gt;&lt;br /&gt;$ host cyberciti.biz&lt;br /&gt;Network command line cheat sheet&lt;br /&gt;&lt;br /&gt;You can also use commands to change settings. Please note that these settings are temporary and not the permanent. Use above method to make network changes permanent or GUI tool as described below.&lt;br /&gt;Task: Display network interface information&lt;br /&gt;&lt;br /&gt;$ ifconfig&lt;br /&gt;Task: Take down network interface eth0 / take a network interface down&lt;br /&gt;&lt;br /&gt;$ sudo ifconfig eth0 downOR $ sudo ifdown eth0&lt;br /&gt;Task: Bring a network interface eth0 up&lt;br /&gt;&lt;br /&gt;$ sudo ifconfig eth0 upOR$ sudo ifup eth0&lt;br /&gt;Task: Change IP address and netmask from command line&lt;br /&gt;&lt;br /&gt;Activate network interface eth0 with a new IP (192.168.1.50) / netmask:&lt;br /&gt;$ sudo ifconfig eth0 192.168.1.50 netmask 255.255.255.0 up&lt;br /&gt;Task: Display the routing table&lt;br /&gt;&lt;br /&gt;$ /sbin/route OR$ /sbin/route -n&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;Kernel IP routing table&lt;br /&gt;Destination     Gateway         Genmask         Flags Metric Ref    Use Iface&lt;br /&gt;localnet        *               255.255.255.0   U     0      0        0 ra0&lt;br /&gt;172.16.114.0    *               255.255.255.0   U     0      0        0 eth0&lt;br /&gt;172.16.236.0    *               255.255.255.0   U     0      0        0 eth1&lt;br /&gt;default         192.168.1.254   0.0.0.0         UG    0      0        0 ra0&lt;br /&gt;&lt;br /&gt;Task: Add a new gateway&lt;br /&gt;&lt;br /&gt;$ sudo route add default gw 172.16.236.0&lt;br /&gt;Task: Display current active Internet connections (servers and established connection)&lt;br /&gt;&lt;br /&gt;$ netstat -nat&lt;br /&gt;Task: Display open ports&lt;br /&gt;&lt;br /&gt;$ sudo netstat -tulpOR$ sudo netstat -tulpn&lt;br /&gt;Task: Display network interfaces stats (RX/TX etc)&lt;br /&gt;&lt;br /&gt;$ netstat -i&lt;br /&gt;Task: Display output for active/established connections only&lt;br /&gt;&lt;br /&gt;$ netstat -e&lt;br /&gt;$ netstat -te&lt;br /&gt;$ netstat -tue&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;&lt;br /&gt;    * -t : TCP connections&lt;br /&gt;    * -u : UDP connections&lt;br /&gt;    * -e : Established&lt;br /&gt;&lt;br /&gt;Task: Test network connectivity&lt;br /&gt;&lt;br /&gt;Send ICMP ECHO_REQUEST to network hosts, routers, servers etc with ping command. This verifies connectivity exists between local host and remote network system:&lt;br /&gt;$ ping router&lt;br /&gt;$ ping 192.168.1.254&lt;br /&gt;$ ping cyberciti.biz&lt;br /&gt;&lt;br /&gt;See simple Linux system monitoring with ping command and scripts for more information.&lt;br /&gt;Task: Use GUI (Graphical Configuration) network Tool&lt;br /&gt;&lt;br /&gt;If you are new, use GUI configuration tool, type the following command at terminal:&lt;br /&gt;$ network-admin &amp;amp;&lt;br /&gt;&lt;br /&gt;Above command is Ubuntu&#39;s GUI for configuring network connections tool.&lt;br /&gt;Final tip - Learn how find out more information about commands&lt;br /&gt;&lt;br /&gt;A man page is your best friend when you wanted to learn more about particular command or syntax. For example, read detailed information about ifconfig and netstat command:&lt;br /&gt;$ man ifconfig&lt;br /&gt;$ man netstat&lt;br /&gt;&lt;br /&gt;Just get a short help with all command options by appending --help option to each command:&lt;br /&gt;$ netstat --help&lt;br /&gt;&lt;br /&gt;Find out what command is used for particular task by searching the short descriptions and manual page names for the keyword:&lt;br /&gt;$ man -k &#39;delete directory&#39;&lt;br /&gt;$ apropos -s 1 remove&lt;br /&gt;&lt;br /&gt;Display short descriptions of a command:&lt;br /&gt;$ whatis rm&lt;br /&gt;$ whatis netstat&lt;br /&gt;&lt;br /&gt;Linux offers an excellent collection of utilities, which can be use to finding the files and executables, remember you cannot memorize all the commands and files ;)</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/418245173496932750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/12/ubuntu-linux-convert-dhcp-network.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/418245173496932750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/418245173496932750'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/12/ubuntu-linux-convert-dhcp-network.html' title='Ubuntu Linux convert DHCP network configuration to static IP configuration'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-4146008474631834322</id><published>2010-06-06T17:13:00.000-07:00</published><updated>2010-06-06T17:16:26.655-07:00</updated><title type='text'>Ubuntu Updates</title><content type='html'>Super-fast and great-looking, Ubuntu is a secure, intuitive operating system that powers desktops, servers, netbooks and laptops. Ubuntu is, and always will be, absolutely free.&lt;br /&gt;&lt;br /&gt; &quot;Get Ubuntu Desktop Edition Download&quot;&lt;br /&gt;You can download Ubuntu Desktop Edition online, completely free.&lt;br /&gt;&lt;br /&gt;Download link : &lt;br /&gt;&lt;br /&gt;http://www.ubuntu.com/desktop/get-ubuntu/download</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/4146008474631834322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/06/ubuntu-updates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/4146008474631834322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/4146008474631834322'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/06/ubuntu-updates.html' title='Ubuntu Updates'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-2855133814522090866</id><published>2010-04-01T00:41:00.000-07:00</published><updated>2010-04-01T00:44:40.713-07:00</updated><title type='text'>how to Join Centos Domain 5.2 to Windows2003 Domain Controller</title><content type='html'>Network Setting -- Join Centos Domain 5.2&lt;br /&gt;&lt;br /&gt;EDIT the DNS Network Configuration&lt;br /&gt;-goto -sytem -administration - network&lt;br /&gt;&lt;br /&gt;point the DNS Manually&lt;br /&gt;&lt;br /&gt;Hostname : localhost.localdomain&lt;br /&gt;&lt;br /&gt;Primary DNS : 192.168.1....   - IP of your Domain Controller&lt;br /&gt;&lt;br /&gt;DNS Search hpo.hd ----- Domain DNS&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;continue-----------------------------------&lt;br /&gt;&lt;br /&gt;-goto -sytem -administration - Authentication Configuration&lt;br /&gt;&lt;br /&gt;check - enable winbind support&lt;br /&gt;&lt;br /&gt; Windbind domain : HPO&lt;br /&gt; security model  : ads&lt;br /&gt; winbind ADS Realm : HPO.HD&lt;br /&gt; Winbind Domain Controllers : mars.hpo.hd&lt;br /&gt; Template : /bin/bash&lt;br /&gt;&lt;br /&gt;--Options :&lt;br /&gt;Check shadow passwords&lt;br /&gt;check local authorization is sufficient for local users&lt;br /&gt;check home directories on the first login&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then -- go to File system - etc - samba&lt;br /&gt;&lt;br /&gt;Edit the smb.conf&lt;br /&gt;&lt;br /&gt;[global]&lt;br /&gt;#--authconfig--start-line--&lt;br /&gt;&lt;br /&gt;# Generated by authconfig on 2010/04/01 13:14:56&lt;br /&gt;# DO NOT EDIT THIS SECTION (delimited by --start-line--/--end-line--)&lt;br /&gt;# Any modification may be deleted or altered by authconfig in future&lt;br /&gt;&lt;br /&gt;   workgroup = HPD&lt;br /&gt;   password server = earth.HPO.HD&lt;br /&gt;   realm = HPO.HD&lt;br /&gt;   security = ads&lt;br /&gt;   idmap uid = 16777216-33554431&lt;br /&gt;   idmap gid = 16777216-33554431&lt;br /&gt;   template shell = /bin/bash&lt;br /&gt;   winbind use default domain = true   ----- this should be add&lt;br /&gt;   winbind offline logon = false</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/2855133814522090866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/04/how-to-join-centos-domain-52-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/2855133814522090866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/2855133814522090866'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/04/how-to-join-centos-domain-52-to.html' title='how to Join Centos Domain 5.2 to Windows2003 Domain Controller'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-6740326676987513286</id><published>2010-02-09T18:28:00.000-08:00</published><updated>2010-02-09T19:31:53.652-08:00</updated><title type='text'>Changing to OpenOffice.org 3.1 in CentOS</title><content type='html'>One of the things that I wanted to do since the installation of CentOS is to upgrade the currrently default version of OpenOffice.org, which is 2.3, to the latest available version being &lt;a href=&quot;http://www.openoffice.org/dev_docs/features/3.1/index.html&quot;&gt;OpenOffice.org 3.1&lt;/a&gt;. I have done these upgrades before on Dreamlinux and (X)Ubuntu but this would be the first time on an “rpm based” distribution.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- (remove old file openoffice)&lt;br /&gt;-- yum remove openoffice.org-*&lt;br /&gt;--cd (riht click the extracted file copy with root directory)&lt;br /&gt;-- sudo rpm -i *.rpm&lt;br /&gt;--cd desktop-integration&lt;br /&gt;--ls&lt;br /&gt;--yum install (right click not yet extracted file .tar)&lt;br /&gt;--sudo rpm -i (redhat-centos)&lt;br /&gt;cd ../ root&lt;br /&gt;--sudo rpm -i *.rpm&lt;br /&gt;--restart&lt;br /&gt;--finish&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Link to Resa&#39;s  Blogs..&lt;br /&gt;&lt;br /&gt;http://resa.linux-hardcore.com/?p=154</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/6740326676987513286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/02/changing-to-openofficeorg-31-in-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/6740326676987513286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/6740326676987513286'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/02/changing-to-openofficeorg-31-in-centos.html' title='Changing to OpenOffice.org 3.1 in CentOS'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-2635841154943370577</id><published>2010-02-03T18:58:00.000-08:00</published><updated>2010-02-03T19:03:43.322-08:00</updated><title type='text'>Ubuntu : Active Directory authentication in Ubuntu 8.04 and 8.10</title><content type='html'>&lt;p&gt;This is a second version of &lt;a href=&quot;http://anothersysadmin.wordpress.com/2007/08/03/active-directoy-authentication-with-ubuntu/&quot;&gt;this other guide&lt;/a&gt; that applied to previous Ubuntu versions.&lt;br /&gt;Since Ubuntu 8.04 (Hardy Heron), and now Ubuntu 8.10 (Intrepid Ibex) it come the &lt;a href=&quot;http://www.likewisesoftware.com/products/likewise_open/&quot;&gt;Likewise Open&lt;/a&gt; package that makes basic Active Directory authentication in Ubuntu a breeze.&lt;/p&gt; &lt;p&gt;Just follow these steps:&lt;/p&gt; &lt;ol&gt;&lt;li&gt;&lt;code&gt;sudo apt-get update&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;sudo apt-get install likewise-open&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;sudo  domainjoin-cli join fqdn.of.your.domain Administrator&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;sudo update-rc.d likewise-open defaults&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;sudo /etc/init.d/likewise-open start&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;and you can now log into your machine using your DOMAIN\user credentials. Remember that the DOMAIN\ part is mandatory and that it represents the short name of your Active Directory domain. You can join the domain using any user with sufficient privileges (there’s no need to use Administrator), and you can even directly join the PC in a particular OU passing the –ou argument to domainjoin-cli. The fourth point maybe won’t be necessary when Ubuntu 8.04 LTS wil be released because it seems to be a bug in the package (it won’t start likewise on reboot, so if you don’t issue this command it would seem that nothing is working after a reboot).&lt;/p&gt; &lt;p&gt;I’ve just started to use this method on a test machine so I’ll leave more opinions on this product in the future.&lt;/p&gt; &lt;p&gt;&lt;em&gt;EDIT:&lt;strong&gt; First impressions&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;After some days of not so extensive usage, I’ve seen a couple of things that it’s worth notice:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;the likewise-open process seems to “die” from time to time, blocking all your login accesses with a “ERROR” message. Restarting it through init script solves the issue… but it’s something that definitely should not happen&lt;/li&gt;&lt;li&gt;It informs you on login if your password is going to expire in X days (as set in your GPO). Very nice indeed.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Notes to the readers: if you’re experiencing installation problem, the best way is to report them to the &lt;a title=&quot;Likewise open discuss mailing list&quot; href=&quot;http://lists.likewisesoftware.com/cgi-bin/mailman/listinfo/likewise-open-discuss&quot; target=&quot;_blank&quot;&gt;likewise-open-discuss mailing list&lt;/a&gt;. There you can contact directly likewise developers (of Samba fame) and solve your problems or doubts.&lt;/p&gt; &lt;p&gt;&lt;em&gt;EDIT2&lt;/em&gt;: it seems that with the final Ubuntu 8.04 update, likewise-open package is now 100% stable, I didn’t have a single failure since last update (one week up, while before it died at least once per day)&lt;/p&gt; &lt;p&gt;&lt;em&gt;EDIT3&lt;/em&gt;: as mentioned in the comment, with likewise-open 4.x you can add&lt;br /&gt;&lt;code&gt;&lt;br /&gt;winbind use default domain = yes&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;in &lt;code&gt;/etc/samba/lwiauthd.conf&lt;/code&gt; so you d’nt have to specify the DOMAIN\ part every time you log in your box.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/2635841154943370577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/02/ubuntu-active-directory-authentication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/2635841154943370577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/2635841154943370577'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/02/ubuntu-active-directory-authentication.html' title='Ubuntu : Active Directory authentication in Ubuntu 8.04 and 8.10'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-7109152141897090659</id><published>2010-02-03T17:06:00.000-08:00</published><updated>2010-02-03T17:13:53.479-08:00</updated><title type='text'>Samba Active Directory Integration</title><content type='html'>&lt;h3 class=&quot;title&quot;&gt;Accessing a Samba Share&lt;/h3&gt;                                                                          &lt;p&gt;       Another, use for Samba is to integrate into an existing Windows network.  Once part of an Active Directory domain,       Samba can provide file and print services to AD users.       &lt;/p&gt;                 &lt;p&gt;       The simplest way to join an AD domain is to use &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;Likewise-open&lt;/strong&gt;&lt;/span&gt;.  For detailed instructions       see &lt;a class=&quot;xref&quot; href=&quot;https://help.ubuntu.com/9.10/serverguide/C/likewise-open.html&quot; title=&quot;Likewise Open&quot;&gt;the section called “Likewise Open”&lt;/a&gt;.       &lt;/p&gt;                 &lt;p&gt;       Once part of the domain, install the following packages:       &lt;/p&gt;                 &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo apt-get install samba smbfs smbclient&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                 &lt;p&gt;       Since the &lt;span style=&quot;color: rgb(0, 0, 0);&quot; class=&quot;application&quot;&gt;&lt;strong&gt;likewise-open&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; and &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot; class=&quot;application&quot;&gt;&lt;strong&gt;samba&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; packages use separate        &lt;/span&gt;&lt;code style=&quot;color: rgb(0, 0, 0);&quot; class=&quot;filename&quot;&gt;secrets.tdb&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; files, a symlink will need to be created in &lt;/span&gt;&lt;code style=&quot;color: rgb(0, 0, 0);&quot; class=&quot;filename&quot;&gt;/var/lib/samba&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;:       &lt;/span&gt;&lt;/p&gt;                 &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo mv /var/lib/samba/secrets.tdb /var/lib/samba/secrets.tdb.orig&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo ln -s /etc/samba/secrets.tdb /var/lib/samba&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                 &lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;       Next, edit &lt;code class=&quot;filename&quot;&gt;/etc/samba/smb.conf&lt;/code&gt; changing:       &lt;/p&gt;                 &lt;pre class=&quot;programlisting&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;   workgroup = EXAMPLE&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; ...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; security = ads&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; realm = EXAMPLE.COM&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; ...&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; idmap backend = lwopen&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; idmap uid = 50-9999999999&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; idmap gid = 50-9999999999&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                 &lt;p&gt;       Restart &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;samba&lt;/strong&gt;&lt;/span&gt; for the new settings to take effect:       &lt;/p&gt;                 &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo /etc/init.d/samba restart&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                 &lt;p&gt;       You should now be able to access any &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;Samba&lt;/strong&gt;&lt;/span&gt; shares from a Windows client.  However, be sure to give       the appropriate AD users or groups access to the share directory.  See &lt;a class=&quot;xref&quot; href=&quot;https://help.ubuntu.com/9.10/serverguide/C/samba-fileprint-security.html&quot; title=&quot;Securing a Samba File and Print Server&quot;&gt;the section called “Securing a Samba File and Print Server”&lt;/a&gt; for        more details.       &lt;/p&gt;                              &lt;div class=&quot;sect2&quot; title=&quot;Accessing a Windows Share&quot;&gt;                 &lt;div class=&quot;titlepage&quot;&gt;                   &lt;div&gt;                     &lt;div&gt;                       &lt;h3 class=&quot;title&quot;&gt;Accessing a Windows Share&lt;/h3&gt;                     &lt;/div&gt;                   &lt;/div&gt;                 &lt;/div&gt;                 &lt;p&gt;       Now that the Samba server is part of the Active Directory domain you can access any Windows server shares:       &lt;/p&gt;                 &lt;div class=&quot;itemizedlist&quot;&gt;                   &lt;ul class=&quot;itemizedlist&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;           To mount a Windows file share enter the following in a terminal prompt:           &lt;/p&gt;                       &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;mount.cifs //fs01.example.com/share mount_point&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                       &lt;p&gt;           It is also possible to access shares on computers not part of an AD domain, but a username and password            will need to be provided.           &lt;/p&gt;                     &lt;/li&gt;&lt;li style=&quot;color: rgb(0, 0, 0);&quot; class=&quot;listitem&quot;&gt;                       &lt;p&gt;           To mount the share during boot place an entry in &lt;code class=&quot;filename&quot;&gt;/etc/fstab&lt;/code&gt;, for example:           &lt;/p&gt;                       &lt;pre class=&quot;programlisting&quot;&gt;//192.168.0.5/share /mnt/windows cifs auto,username=steve,password=secret,rw 0        0&lt;br /&gt;&lt;/pre&gt;                     &lt;/li&gt;&lt;li style=&quot;color: rgb(0, 0, 0);&quot; class=&quot;listitem&quot;&gt;                       &lt;p&gt;           Another way to copy files from a Windows server is to use the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;smbclient&lt;/strong&gt;&lt;/span&gt; utility.  To            list the files in a Windows share:           &lt;/p&gt;                       &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;smbclient //fs01.example.com/share -k -c &quot;ls&quot;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;           To copy a file from the share, enter:           &lt;/p&gt;                       &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;smbclient //fs01.example.com/share -k -c &quot;get file.txt&quot;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                       &lt;p&gt;           This will copy the &lt;code class=&quot;filename&quot;&gt;file.txt&lt;/code&gt; into the current directory.           &lt;/p&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;           And to copy a file to the share:           &lt;/p&gt;                       &lt;pre style=&quot;color: rgb(0, 0, 0);&quot; class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;smbclient //fs01.example.com/share -k -c &quot;put /etc/hosts hosts&quot;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                       &lt;p style=&quot;color: rgb(0, 0, 0);&quot;&gt;           This will copy the &lt;code class=&quot;filename&quot;&gt;/etc/hosts&lt;/code&gt; to &lt;code class=&quot;filename&quot;&gt;//fs01.example.com/share/hosts&lt;/code&gt;.           &lt;/p&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;           The &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;-c&lt;/em&gt;&lt;/span&gt; option used above allows you to execute the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;smbclient&lt;/strong&gt;&lt;/span&gt; command           all at once.  This is useful for scripting and minor file operations.  To enter the &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;smb: \&gt;&lt;/em&gt;&lt;/span&gt;           prompt, a FTP like prompt where you can execute normal file and directory commands, simply execute:           &lt;/p&gt;                       &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;smbclient //fs01.example.com/share -k&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                     &lt;/li&gt;&lt;/ul&gt;                 &lt;/div&gt;                 &lt;div class=&quot;note&quot; title=&quot;Note&quot; style=&quot;margin-left: 0.5in; margin-right: 0.5in;&quot;&gt;                   &lt;table style=&quot;width: 628px; height: 4360px;&quot; summary=&quot;Note&quot; border=&quot;0&quot;&gt;                     &lt;tbody&gt;&lt;tr&gt;                       &lt;td rowspan=&quot;2&quot; valign=&quot;top&quot; width=&quot;25&quot; align=&quot;center&quot;&gt;                         &lt;img style=&quot;width: 26px; height: 26px;&quot; alt=&quot;[Note]&quot; src=&quot;https://help.ubuntu.com/9.10/libs/admon/note.png&quot; /&gt;                       &lt;/td&gt;                       &lt;th align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/th&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                       &lt;td valign=&quot;top&quot; align=&quot;left&quot;&gt;                         &lt;p&gt;         Replace all instances of &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;fs01.example.com/share&lt;/em&gt;&lt;/span&gt;, &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;//192.168.0.5/share&lt;/em&gt;&lt;/span&gt;,          &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;username=steve,password=secret&lt;/em&gt;&lt;/span&gt;, and &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;file.txt&lt;/em&gt;&lt;/span&gt; with your server&#39;s IP, hostname,          share name, file name, and an actual username and password with rights to the share.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: rgb(255, 0, 0);&quot;&gt;Likewise Open - winbind based &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;     &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;Likewise Open&lt;/strong&gt;&lt;/span&gt; simplifies the necessary configuration needed to authenticate a Linux machine to an     Active Directory domain.  Based on &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;winbind&lt;/strong&gt;&lt;/span&gt;, the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;likewise-open&lt;/strong&gt;&lt;/span&gt; package     takes the pain out of integrating Ubuntu authentication into an existing Windows network.     &lt;/p&gt;               &lt;div class=&quot;sect2&quot; title=&quot;Installation&quot;&gt;                 &lt;div class=&quot;titlepage&quot;&gt;                   &lt;div&gt;                     &lt;div&gt;                       &lt;h3 class=&quot;title&quot;&gt;Installation&lt;/h3&gt;                     &lt;/div&gt;                   &lt;/div&gt;                 &lt;/div&gt;                 &lt;p&gt;       There are two ways to use Likewise Open, &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;likewise-open&lt;/strong&gt;&lt;/span&gt; the command line utility and        &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;likewise-open-gui&lt;/strong&gt;&lt;/span&gt;.  This section focuses on the command line utility.       &lt;/p&gt;                 &lt;p&gt;       To install the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;likewise-open&lt;/strong&gt;&lt;/span&gt; package, open a terminal prompt and enter:       &lt;/p&gt;                 &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo apt-get install likewise-open&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                 &lt;p&gt;       With Ubuntu 9.04 &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;Likewise Open 5.0&lt;/strong&gt;&lt;/span&gt; is available in the &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Universe&lt;/em&gt;&lt;/span&gt; repository.         However, since upgrading from &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;Likewise Open 4.1&lt;/strong&gt;&lt;/span&gt; currently requires the system to leave the        domain and re-join, a separate package for version five was created.       &lt;/p&gt;                 &lt;p&gt;       To install &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;Likewise Open 5.0&lt;/strong&gt;&lt;/span&gt; enter:       &lt;/p&gt;                 &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo apt-get install likewise-open5&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                 &lt;div class=&quot;warning&quot; title=&quot;Warning&quot; style=&quot;margin-left: 0.5in; margin-right: 0.5in;&quot;&gt;                   &lt;table summary=&quot;Warning&quot; border=&quot;0&quot;&gt;                     &lt;tbody&gt;&lt;tr&gt;                       &lt;td rowspan=&quot;2&quot; valign=&quot;top&quot; width=&quot;25&quot; align=&quot;center&quot;&gt;                         &lt;img style=&quot;width: 25px; height: 25px;&quot; alt=&quot;[Warning]&quot; src=&quot;https://help.ubuntu.com/9.10/libs/admon/warning.png&quot; /&gt;                       &lt;/td&gt;                       &lt;th align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/th&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                       &lt;td valign=&quot;top&quot; align=&quot;left&quot;&gt;                         &lt;p&gt;         Installing likewise-open5 over an existing likewise-open (4.1) installation will replace it. You will have to rejoin          the domain after install.         &lt;/p&gt;                       &lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                 &lt;/div&gt;               &lt;/div&gt;               &lt;div class=&quot;sect2&quot; title=&quot;Joining a Domain&quot;&gt;                 &lt;div class=&quot;titlepage&quot;&gt;                   &lt;div&gt;                     &lt;div&gt;                       &lt;h3 class=&quot;title&quot;&gt;Joining a Domain&lt;/h3&gt;                     &lt;/div&gt;                   &lt;/div&gt;                 &lt;/div&gt;                 &lt;p&gt;       The main executable file of the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;likewise-open&lt;/strong&gt;&lt;/span&gt; package is        &lt;code class=&quot;filename&quot;&gt;/usr/bin/domainjoin-cli&lt;/code&gt;, which is used to join your computer to the domain. Before you join        a domain you will need to make sure you have:       &lt;/p&gt;                 &lt;div class=&quot;itemizedlist&quot;&gt;                   &lt;ul class=&quot;itemizedlist&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;    Access to an Active Directory user with appropriate rights to join the domain.    &lt;/p&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;    The &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Fully Qualified Domain Name&lt;/em&gt;&lt;/span&gt; (FQDN) of the domain you want to join.  If your AD domain           does not match a valid domain such as &lt;span class=&quot;italic&quot;&gt;example.com&lt;/span&gt;, it is likely that it has           the form of &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;domainname.local&lt;/em&gt;&lt;/span&gt;.      &lt;/p&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;    DNS for the domain setup properly.  In a production AD environment this should be the case.  Proper Microsoft            DNS is needed so that client workstations can determine the Active Directory domain is available.    &lt;/p&gt;                       &lt;p&gt;           If you don&#39;t have a Windows DNS server on your network, see &lt;a class=&quot;xref&quot; href=&quot;https://help.ubuntu.com/9.10/serverguide/C/likewise-open.html#likewise-open-ms-dns&quot; title=&quot;Microsoft DNS&quot;&gt;the section called “Microsoft DNS”&lt;/a&gt; for details.           &lt;/p&gt;                     &lt;/li&gt;&lt;/ul&gt;                 &lt;/div&gt;                 &lt;p&gt;       To join a domain, from a terminal prompt enter:       &lt;/p&gt;                 &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo domainjoin-cli join example.com Administrator&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                 &lt;div class=&quot;note&quot; title=&quot;Note&quot; style=&quot;margin-left: 0.5in; margin-right: 0.5in;&quot;&gt;                   &lt;table summary=&quot;Note&quot; border=&quot;0&quot;&gt;                     &lt;tbody&gt;&lt;tr&gt;                       &lt;td rowspan=&quot;2&quot; valign=&quot;top&quot; width=&quot;25&quot; align=&quot;center&quot;&gt;                         &lt;img style=&quot;width: 32px; height: 32px;&quot; alt=&quot;[Note]&quot; src=&quot;https://help.ubuntu.com/9.10/libs/admon/note.png&quot; /&gt;                       &lt;/td&gt;                       &lt;th align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/th&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                       &lt;td valign=&quot;top&quot; align=&quot;left&quot;&gt;                         &lt;p&gt;  Replace &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;example.com&lt;/em&gt;&lt;/span&gt; with your domain name, and &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Administrator&lt;/em&gt;&lt;/span&gt; with the         appropriate user name.  &lt;/p&gt;                       &lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                 &lt;/div&gt;                 &lt;p&gt;       You will then be prompted for the user&#39;s password.  If all goes well a &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;SUCCESS&lt;/em&gt;&lt;/span&gt; message should be       printed to the console.       &lt;/p&gt;                 &lt;div class=&quot;note&quot; title=&quot;Note&quot; style=&quot;margin-left: 0.5in; margin-right: 0.5in;&quot;&gt;                   &lt;table style=&quot;width: 467px; height: 81px;&quot; summary=&quot;Note&quot; border=&quot;0&quot;&gt;                     &lt;tbody&gt;&lt;tr&gt;                       &lt;td rowspan=&quot;2&quot; valign=&quot;top&quot; width=&quot;25&quot; align=&quot;center&quot;&gt;                         &lt;img style=&quot;width: 24px; height: 24px;&quot; alt=&quot;[Note]&quot; src=&quot;https://help.ubuntu.com/9.10/libs/admon/note.png&quot; /&gt;                       &lt;/td&gt;                       &lt;th align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/th&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                       &lt;td valign=&quot;top&quot; align=&quot;left&quot;&gt;                         &lt;p&gt;      After joining the domain, it is necessary to reboot before      attempting to authenticate against the domain.     &lt;/p&gt;                       &lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                 &lt;/div&gt;                 &lt;p&gt;       After successfully joining an Ubuntu machine to an Active Directory domain you can authenticate using any valid AD user.         To login you will need to enter the user name as &#39;domain\username&#39;. For example to ssh to a server joined to the domain       enter:       &lt;/p&gt;                 &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;ssh &#39;example\steve&#39;@hostname&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                 &lt;div class=&quot;note&quot; title=&quot;Note&quot; style=&quot;margin-left: 0.5in; margin-right: 0.5in;&quot;&gt;                   &lt;table summary=&quot;Note&quot; border=&quot;0&quot;&gt;                     &lt;tbody&gt;&lt;tr&gt;                       &lt;td rowspan=&quot;2&quot; valign=&quot;top&quot; width=&quot;25&quot; align=&quot;center&quot;&gt;                         &lt;img style=&quot;width: 26px; height: 26px;&quot; alt=&quot;[Note]&quot; src=&quot;https://help.ubuntu.com/9.10/libs/admon/note.png&quot; /&gt;                       &lt;/td&gt;                       &lt;th align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/th&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                       &lt;td valign=&quot;top&quot; align=&quot;left&quot;&gt;                         &lt;p&gt;  If configuring a Desktop the user name will need to be prefixed with &lt;span class=&quot;italic&quot;&gt;domain\&lt;/span&gt; in the         graphical logon as well.         &lt;/p&gt;                       &lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                 &lt;/div&gt;                 &lt;p&gt;       To make likewise-open use a default domain, you can add the following statement to &lt;code class=&quot;filename&quot;&gt;/etc/samba/lwiauthd.conf&lt;/code&gt;:       &lt;/p&gt;                 &lt;pre class=&quot;programlisting&quot;&gt;winbind use default domain = yes&lt;br /&gt;&lt;/pre&gt;                 &lt;p&gt;       Then restart the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;likewise-open&lt;/strong&gt;&lt;/span&gt; daemons:       &lt;/p&gt;                 &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo /etc/init.d/likewise-open restart&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                 &lt;div class=&quot;note&quot; title=&quot;Note&quot; style=&quot;margin-left: 0.5in; margin-right: 0.5in;&quot;&gt;                   &lt;table summary=&quot;Note&quot; border=&quot;0&quot;&gt;                     &lt;tbody&gt;&lt;tr&gt;                       &lt;td rowspan=&quot;2&quot; valign=&quot;top&quot; width=&quot;25&quot; align=&quot;center&quot;&gt;                         &lt;img style=&quot;width: 26px; height: 26px;&quot; alt=&quot;[Note]&quot; src=&quot;https://help.ubuntu.com/9.10/libs/admon/note.png&quot; /&gt;                       &lt;/td&gt;                       &lt;th align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/th&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                       &lt;td valign=&quot;top&quot; align=&quot;left&quot;&gt;                         &lt;p&gt;         Once configured for a &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;default domain&lt;/em&gt;&lt;/span&gt; the &lt;span class=&quot;italic&quot;&gt;&#39;domain\&#39;&lt;/span&gt; is no longer required,          users can login using only their username.         &lt;/p&gt;                       &lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                 &lt;/div&gt;                 &lt;p&gt;       The &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;domainjoin-cli&lt;/strong&gt;&lt;/span&gt; utility can also be used to leave the domain.  From a terminal:       &lt;/p&gt;                 &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo domainjoin-cli leave&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;               &lt;/div&gt;               &lt;div class=&quot;sect2&quot; title=&quot;Other Utilities&quot;&gt;                 &lt;div class=&quot;titlepage&quot;&gt;                   &lt;div&gt;                     &lt;div&gt;                       &lt;h3 class=&quot;title&quot;&gt;Other Utilities&lt;/h3&gt;                     &lt;/div&gt;                   &lt;/div&gt;                 &lt;/div&gt;                 &lt;p&gt;       The &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;likewise-open&lt;/strong&gt;&lt;/span&gt; package comes with a few other utilities that may be useful for gathering       information about the Active Directory environment.  These utilities are used to join the machine to the domain, and are       the same as those available in the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;samba-common&lt;/strong&gt;&lt;/span&gt; and &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;winbind&lt;/strong&gt;&lt;/span&gt;        packages:       &lt;/p&gt;                 &lt;div class=&quot;itemizedlist&quot;&gt;                   &lt;ul class=&quot;itemizedlist&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;    &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;lwinet&lt;/strong&gt;&lt;/span&gt;:  Returns information about the network and the domain.    &lt;/p&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;    &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;lwimsg&lt;/strong&gt;&lt;/span&gt;:  Allows interaction with the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;likewise-winbindd&lt;/strong&gt;&lt;/span&gt; daemon.    &lt;/p&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;    &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;lwiinfo&lt;/strong&gt;&lt;/span&gt;:  Displays information about various parts of the Domain.    &lt;/p&gt;                     &lt;/li&gt;&lt;/ul&gt;                 &lt;/div&gt;                 &lt;p&gt;       Please refer to each utility&#39;s man page specific for details.       &lt;/p&gt;               &lt;/div&gt;               &lt;div class=&quot;sect2&quot; title=&quot;Troubleshooting&quot;&gt;                 &lt;div class=&quot;titlepage&quot;&gt;                   &lt;div&gt;                     &lt;div&gt;                       &lt;h3 class=&quot;title&quot;&gt;Troubleshooting&lt;/h3&gt;                     &lt;/div&gt;                   &lt;/div&gt;                 &lt;/div&gt;                 &lt;div class=&quot;itemizedlist&quot;&gt;                   &lt;ul class=&quot;itemizedlist&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;             If the client has trouble joining the domain, double check that the Microsoft DNS is listed first in &lt;code class=&quot;filename&quot;&gt;/etc/resolv.conf&lt;/code&gt;.             For example:             &lt;/p&gt;                       &lt;pre class=&quot;programlisting&quot;&gt;nameserver 192.168.0.1&lt;br /&gt;&lt;/pre&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;             For more information when joining a domain, use the &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;--loglevel verbose&lt;/em&gt;&lt;/span&gt; or &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;--advanced&lt;/em&gt;&lt;/span&gt; option of the              &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;domainjoin-cli&lt;/strong&gt;&lt;/span&gt; utility:             &lt;/p&gt;                       &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo domainjoin-cli --loglevel verbose join example.com Administrator&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;             If an Active Directory user has trouble logging in, check the &lt;code class=&quot;filename&quot;&gt;/var/log/auth.log&lt;/code&gt; for details.             &lt;/p&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;             When joining an Ubuntu Desktop workstation to a domain, you may need to edit &lt;code class=&quot;filename&quot;&gt;/etc/nsswitch.conf&lt;/code&gt; if your AD domain              uses the &lt;span class=&quot;italic&quot;&gt;.local&lt;/span&gt; syntax.  In order to join the domain the &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;&quot;mdns4&quot;&lt;/em&gt;&lt;/span&gt; entry from the             &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;hosts&lt;/em&gt;&lt;/span&gt; option.  For example:             &lt;/p&gt;                       &lt;pre class=&quot;programlisting&quot;&gt;hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4&lt;br /&gt;&lt;/pre&gt;                       &lt;p&gt;             Change the above to:             &lt;/p&gt;                       &lt;pre class=&quot;programlisting&quot;&gt;hosts: files dns [NOTFOUND=return]&lt;br /&gt;&lt;/pre&gt;                       &lt;p&gt;             Then restart networking by entering:             &lt;/p&gt;                       &lt;pre class=&quot;screen&quot;&gt;&lt;span class=&quot;command&quot;&gt;&lt;strong&gt;sudo /etc/init.d/networking restart&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;                       &lt;p&gt;             You should now be able to join the Active Directory domain.             &lt;/p&gt;                     &lt;/li&gt;&lt;/ul&gt;                 &lt;/div&gt;               &lt;/div&gt;                                &lt;div class=&quot;titlepage&quot;&gt;                   &lt;div&gt;                     &lt;div&gt;                       &lt;h3 class=&quot;title&quot;&gt;Microsoft DNS&lt;/h3&gt;                     &lt;/div&gt;                   &lt;/div&gt;                 &lt;/div&gt;                 &lt;p&gt;         The following are instructions for installing DNS on an Active Directory domain controller running Windows Server 2003,          but the instructions should be similar for other versions:         &lt;/p&gt;                                    &lt;ul class=&quot;itemizedlist&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;               Click                &lt;span class=&quot;guimenuitem&quot;&gt;Start&lt;/span&gt; → &lt;span class=&quot;guimenuitem&quot;&gt;Administrative Tools&lt;/span&gt; → &lt;span class=&quot;guimenuitem&quot;&gt;Manager Your Server&lt;/span&gt;.               This will open the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;Server Role Mangement&lt;/strong&gt;&lt;/span&gt; utility.               &lt;/p&gt;                       &lt;div class=&quot;orderedlist&quot;&gt;                         &lt;ol class=&quot;orderedlist&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Add or remove a role&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Next&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Select &quot;DNS Server&quot;&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Next&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Next&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Select &quot;Create a forward lookup zone&quot; if it is not selected.&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Next&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Make sure &quot;This server maintains the zone&quot; is selected and click Next.&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Enter your domain name and click Next&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Next to &quot;Allow only secure dynamic updates&quot;&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Next to &quot;Allow only secure dynamic updates&quot;&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt; Enter the IP for DNS servers to forward queries to, or Select &quot;No, it should not forward queries&quot; and click Next. &lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Finish&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Finish&lt;/p&gt;                           &lt;/li&gt;&lt;/ol&gt;                       &lt;/div&gt;                       &lt;p&gt;               DNS is now installed and can be further configured using the &lt;span class=&quot;application&quot;&gt;&lt;strong&gt;Microsoft Management Console&lt;/strong&gt;&lt;/span&gt; DNS snap-in.               &lt;/p&gt;                     &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                       &lt;p&gt;               Next, configure the Server to use itself for DNS queries:                 &lt;/p&gt;                       &lt;div class=&quot;orderedlist&quot;&gt;                         &lt;ol class=&quot;orderedlist&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Start&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Control Panel&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Network Connections&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Right Click &quot;Local Area Connection&quot;&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Properties&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Double click &quot;Internet Protocol (TCP/IP)&quot;&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Enter the Server&#39;s IP Address as the &quot;Preferred DNS server&quot;&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Ok&lt;/p&gt;                           &lt;/li&gt;&lt;li class=&quot;listitem&quot;&gt;                             &lt;p&gt;Click Ok again to save the settings&lt;/p&gt;                           &lt;/li&gt;&lt;/ol&gt;                       &lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/7109152141897090659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/02/samba-active-directory-integration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/7109152141897090659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/7109152141897090659'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/02/samba-active-directory-integration.html' title='Samba Active Directory Integration'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-1776689524184873227</id><published>2010-01-31T11:29:00.000-08:00</published><updated>2010-01-31T11:38:02.502-08:00</updated><title type='text'>how to setup Bind in CentOS 5</title><content type='html'>&lt;strong&gt;BIND&lt;/strong&gt; is an open-source software that implements the Domain Name System (DNS) protocols for the Internet. The name BIND stands for “Berkeley Internet Name Domain”. This article describes how to install and configure BIND in Red Hat Enterprise Linux 5 or CentOS 5.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Installing BIND&lt;/h2&gt; &lt;p&gt;The steps below will install the chrooted BIND and the GUI configuration tool.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-install.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-install.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;1. Type in the command below to install BIND. &lt;pre class=&quot;steps&quot;&gt;yum install bind-chroot system-config-bind&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/service-config.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/service-config.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;2. Start the &lt;em&gt;named&lt;/em&gt; service. &lt;a href=&quot;http://www.linuxmail.info/how-to-start-stop-services-centos-5/&quot;&gt;Learn how to start and stop services.&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/security-level-config.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/security-level-config.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;3. Open the TCP port 53 and UDP port 53. &lt;a href=&quot;http://www.linuxmail.info/firewall-configuration-centos-5/&quot;&gt;Learn how to configure the firewall.&lt;/a&gt;&lt;/div&gt; &lt;h2&gt;Configuring BIND&lt;/h2&gt; &lt;p&gt;The steps shows how to configure BIND using the GUI configuration tool.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-shortcut.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-shortcut.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;1. Click &lt;em&gt;System&lt;/em&gt;, select &lt;em&gt;Administration&lt;/em&gt; and click &lt;em&gt;Domain Name System&lt;/em&gt;. This will launch the &lt;strong&gt;BIND Configuration GUI&lt;/strong&gt; window.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configure.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configure.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;2. Click &lt;em&gt;Ok&lt;/em&gt; to initialize BIND with default values.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;3. BIND has now been initialized. We can now create a DNS zone and add DNS records.&lt;/div&gt; &lt;h2&gt;Creating a DNS Zone&lt;/h2&gt; &lt;p&gt;The steps below will show you how to create a DNS zone named “acme.local”.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-add-zone.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-add-zone.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;1. To create a DNS zone, right click &lt;em&gt;DNS Server&lt;/em&gt;, select &lt;em&gt;Add&lt;/em&gt; and click &lt;em&gt;Zone&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-new-zone-1.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-new-zone-1.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;2. In the &lt;strong&gt;New Zone&lt;/strong&gt; window, click the &lt;em&gt;Ok&lt;/em&gt; button under &lt;em&gt;Class&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-new-zone-2.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-new-zone-2.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;3. Next, click the &lt;em&gt;Ok&lt;/em&gt; button under &lt;em&gt;Origin Type&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-new-zone-3.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-new-zone-3.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;4. Provide the name of the zone and click &lt;em&gt;Ok&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-new-zone-4.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-new-zone-4.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;5. Review the various settings and click &lt;em&gt;Ok&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-save.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-save.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;6. Click &lt;em&gt;Save&lt;/em&gt; and click &lt;em&gt;Yes&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-2.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-2.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;7. You now have a new DNS zone.&lt;/div&gt; &lt;h2&gt;Creating DNS Records&lt;/h2&gt; &lt;p&gt;The steps below describes how to create some of the most common DNS records.&lt;/p&gt;&lt;br /&gt;&lt;h3&gt;Creating an A record&lt;/h3&gt; &lt;p&gt;An A record maps a hostname to its IPv4 address.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-add-ipv4.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-add-ipv4.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;1. Right click the zone you where you want to add an A record, select &lt;em&gt;Add&lt;/em&gt; and click &lt;em&gt;A IPv4 Address&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-aipv4.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-aipv4.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;2. Specify the &lt;em&gt;Domain Name&lt;/em&gt; and &lt;em&gt;IPv4 Address&lt;/em&gt; and click &lt;em&gt;Ok&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-save.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-save.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;3. Click &lt;em&gt;Save&lt;/em&gt; and click &lt;em&gt;Yes&lt;/em&gt;.&lt;/div&gt; &lt;h3&gt;Creating a CNAME record&lt;/h3&gt; &lt;p&gt;A CNAME record specifies that a  domain name is an alias of another domain name.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-add-cname.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-add-cname.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;1. Right click the zone you where you want to add a CNAME record, select &lt;em&gt;Add&lt;/em&gt; and click &lt;em&gt;CNAME Alias&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-cname-alias.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-cname-alias.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;2. Specify the &lt;em&gt;Domain Name&lt;/em&gt; and &lt;em&gt;Canonical Name&lt;/em&gt; (target domain name) and click &lt;em&gt;Ok&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-save.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-save.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;3. Click &lt;em&gt;Save&lt;/em&gt; and click &lt;em&gt;Yes&lt;/em&gt;.&lt;/div&gt; &lt;h3&gt;Creating an MX record&lt;/h3&gt; &lt;p&gt;An MX record specifies how Internet e-mail should be routed using SMTP.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-add-mx.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-configuration-add-mx.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;1. Right click the zone you where you want to add an MX record, select &lt;em&gt;Add&lt;/em&gt; and click &lt;em&gt;MX Mail Exchange&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-mxmail-exchange.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-mxmail-exchange.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;2. Specify the &lt;em&gt;Mail Server Name&lt;/em&gt; and click &lt;em&gt;Ok&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/bind-save.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/bind-save.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;3. Click &lt;em&gt;Save&lt;/em&gt; and click &lt;em&gt;Yes&lt;/em&gt;.&lt;/div&gt; &lt;h2&gt;Testing BIND&lt;/h2&gt; &lt;p&gt;To test your BIND setup, you can use the &lt;em&gt;nslookup&lt;/em&gt; and &lt;em&gt;dig&lt;/em&gt; utility.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/nslookup-localhost.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/nslookup-localhost.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;1. Type the command below in a terminal window to use nslookup &lt;pre class=&quot;steps&quot;&gt;nslookup mail.acme.local localhost&lt;br /&gt;&lt;/pre&gt; Replace &lt;em&gt;mail.acme.local&lt;/em&gt; with the domain you want to check. If your DNS server is not on &lt;em&gt;localhost&lt;/em&gt; then change it. &lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/dig-localhost.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/dig-localhost.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;2. Type in the command below to query any records using dig. &lt;pre class=&quot;steps&quot;&gt;dig @localhost acme.local ANY&lt;br /&gt;&lt;/pre&gt; Replace &lt;em&gt;acme.local&lt;/em&gt; with your own domain. If your DNS server is not on &lt;em&gt;localhost&lt;/em&gt; then change it. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/1776689524184873227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/how-to-setup-bind-in-centos-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/1776689524184873227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/1776689524184873227'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/how-to-setup-bind-in-centos-5.html' title='how to setup Bind in CentOS 5'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-5480734817477471271</id><published>2010-01-31T08:19:00.000-08:00</published><updated>2010-01-31T08:22:41.570-08:00</updated><title type='text'>Samba Server Types and the smb.conf File</title><content type='html'>&lt;p&gt;    Samba configuration is straightforward. All modifications to Samba are done in the &lt;tt class=&quot;filename&quot;&gt;/etc/samba/smb.conf&lt;/tt&gt; configuration file. Although the default &lt;tt class=&quot;filename&quot;&gt;smb.conf&lt;/tt&gt; file is well documented,    it does not address complex topics such as LDAP, Active Directory, and the numerous domain controller implementations.   &lt;/p&gt;       &lt;p&gt; The following sections describe the different ways a Samba server can be configured. Keep in mind your needs and the changes required to the &lt;tt class=&quot;filename&quot;&gt;smb.conf&lt;/tt&gt; file for a successful configuration.   &lt;/p&gt;       &lt;div class=&quot;section&quot; lang=&quot;en-US&quot; lang=&quot;en-US&quot;&gt;         &lt;div class=&quot;titlepage&quot;&gt;           &lt;div&gt;             &lt;div&gt;               &lt;h3 class=&quot;title&quot;&gt;Stand-alone Server&lt;/h3&gt;             &lt;/div&gt;           &lt;/div&gt;                    &lt;/div&gt;                  &lt;p&gt; A stand-alone server can be a workgroup server or a member of a workgroup environment. A stand-alone server is not a domain controller and does not participate in a domain in any way. The following examples include several anonymous share-level security configurations and one user-level security configuration.&lt;/p&gt;         &lt;div class=&quot;section&quot; lang=&quot;en-US&quot; lang=&quot;en-US&quot;&gt;           &lt;div class=&quot;titlepage&quot;&gt;             &lt;div&gt;               &lt;div&gt;                 &lt;h4 class=&quot;title&quot;&gt;Anonymous Read-Only&lt;/h4&gt;               &lt;/div&gt;             &lt;/div&gt;                        &lt;/div&gt;                      &lt;p&gt;      The following &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file shows a sample configuration needed to implement anonymous read-only file sharing. The &lt;tt class=&quot;command&quot;&gt;security = share&lt;/tt&gt; parameter makes a share anonymous. Note, security      levels for a single Samba server cannot be mixed. The &lt;tt class=&quot;command&quot;&gt;security&lt;/tt&gt; directive is a global Samba parameter located in the &lt;tt class=&quot;command&quot;&gt;[global]&lt;/tt&gt; configuration section of the      &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file.     &lt;/p&gt;           &lt;pre class=&quot;screen&quot;&gt;[global]&lt;br /&gt;workgroup = DOCS&lt;br /&gt;netbios name = DOCS_SRV&lt;br /&gt;security = share &lt;br /&gt;[data]&lt;br /&gt;comment = Documentation Samba Server&lt;br /&gt;path = /export&lt;br /&gt;read only = Yes&lt;br /&gt;guest only = Yes&lt;br /&gt;&lt;/pre&gt;         &lt;/div&gt;         &lt;div class=&quot;section&quot; lang=&quot;en-US&quot; lang=&quot;en-US&quot;&gt;           &lt;div class=&quot;titlepage&quot;&gt;             &lt;div&gt;               &lt;div&gt;                 &lt;h4 class=&quot;title&quot;&gt;Anonymous Read/Write&lt;/h4&gt;               &lt;/div&gt;             &lt;/div&gt;                        &lt;/div&gt;                      &lt;p&gt;      The following &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file shows a sample configuration needed to implement anonymous read/write file sharing. To enable anonymous read/write file sharing, set the &lt;tt class=&quot;command&quot;&gt;read only&lt;/tt&gt;      directive to &lt;tt class=&quot;command&quot;&gt;no&lt;/tt&gt;. The &lt;tt class=&quot;command&quot;&gt;force user&lt;/tt&gt; and &lt;tt class=&quot;command&quot;&gt;force group&lt;/tt&gt; directives are also added to enforce the ownership of any newly placed files specified in the      share.     &lt;/p&gt;           &lt;div class=&quot;note&quot;&gt;             &lt;h2&gt;Note&lt;/h2&gt;             &lt;p&gt; Although having an anonymous read/write server is possible, it is not recommended. Any files placed in the share space, regardless of user, are assigned the user/group combination as specified by a generic user (&lt;tt class=&quot;command&quot;&gt;force       user&lt;/tt&gt;) and group (&lt;tt class=&quot;command&quot;&gt;force group&lt;/tt&gt;) in the &lt;tt class=&quot;filename&quot;&gt;smb.conf&lt;/tt&gt; file.      &lt;/p&gt;           &lt;/div&gt;           &lt;pre class=&quot;screen&quot;&gt;[global]&lt;br /&gt;workgroup = DOCS&lt;br /&gt;netbios name = DOCS_SRV&lt;br /&gt;security = share &lt;br /&gt;[data]&lt;br /&gt;comment = Data&lt;br /&gt;path = /export&lt;br /&gt;force user = docsbot&lt;br /&gt;force group = users&lt;br /&gt;read only = No&lt;br /&gt;guest ok = Yes&lt;br /&gt;&lt;/pre&gt;         &lt;/div&gt;         &lt;div class=&quot;section&quot; lang=&quot;en-US&quot; lang=&quot;en-US&quot;&gt;           &lt;div class=&quot;titlepage&quot;&gt;             &lt;div&gt;               &lt;div&gt;                 &lt;h4 class=&quot;title&quot;&gt;Anonymous Print Server&lt;/h4&gt;               &lt;/div&gt;             &lt;/div&gt;                        &lt;/div&gt;                      &lt;p&gt;      The following &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file shows a sample configuration needed to implement an anonymous print server. Setting &lt;tt class=&quot;command&quot;&gt;browseable&lt;/tt&gt; to &lt;tt class=&quot;command&quot;&gt;no&lt;/tt&gt; as shown does not      list the printer in Windows &lt;span&gt;&lt;b class=&quot;guilabel&quot;&gt;Network Neighborhood&lt;/b&gt;&lt;/span&gt;. Although hidden from browsing, configuring the printer explicitly is possible. By connecting to &lt;tt class=&quot;command&quot;&gt;DOCS_SRV&lt;/tt&gt; using NetBIOS, the      client can have access to the printer if the client is also part of the &lt;tt class=&quot;command&quot;&gt;DOCS&lt;/tt&gt; workgroup. It is also assumed that the client has the correct local printer driver installed, as the &lt;tt class=&quot;command&quot;&gt;use client      driver&lt;/tt&gt; directive is set to &lt;tt class=&quot;command&quot;&gt;Yes&lt;/tt&gt;. In this case, the Samba server has no responsibility for sharing printer drivers to the client.     &lt;/p&gt;           &lt;pre class=&quot;screen&quot;&gt;[global]&lt;br /&gt;workgroup = DOCS&lt;br /&gt;netbios name = DOCS_SRV&lt;br /&gt;security = share&lt;br /&gt;printcap name = cups&lt;br /&gt;disable spools= Yes&lt;br /&gt;show add printer wizard = No&lt;br /&gt;printing = cups &lt;br /&gt;[printers]&lt;br /&gt;comment = All Printers&lt;br /&gt;path = /var/spool/samba&lt;br /&gt;guest ok = Yes&lt;br /&gt;printable = Yes&lt;br /&gt;use client driver = Yes&lt;br /&gt;browseable = Yes&lt;br /&gt;&lt;/pre&gt;         &lt;/div&gt;         &lt;div class=&quot;section&quot; lang=&quot;en-US&quot; lang=&quot;en-US&quot;&gt;           &lt;div class=&quot;titlepage&quot;&gt;             &lt;div&gt;               &lt;div&gt;                 &lt;h4 class=&quot;title&quot;&gt;Secure Read/Write File and Print Server&lt;/h4&gt;               &lt;/div&gt;             &lt;/div&gt;                        &lt;/div&gt;                      &lt;p&gt;      The following &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file shows a sample configuration needed to implement a secure read/write print server. Setting the &lt;tt class=&quot;command&quot;&gt;security&lt;/tt&gt; directive to      &lt;tt class=&quot;command&quot;&gt;user&lt;/tt&gt; forces Samba to authenticate client connections. Notice the &lt;tt class=&quot;command&quot;&gt;[homes]&lt;/tt&gt; share does not have a &lt;tt class=&quot;command&quot;&gt;force user&lt;/tt&gt; or &lt;tt class=&quot;command&quot;&gt;force      group&lt;/tt&gt; directive as the &lt;tt class=&quot;command&quot;&gt;[public]&lt;/tt&gt; share does. The &lt;tt class=&quot;command&quot;&gt;[homes]&lt;/tt&gt; share uses the authenticated user details for any files created as opposed to the &lt;tt class=&quot;command&quot;&gt;force      user&lt;/tt&gt; and &lt;tt class=&quot;command&quot;&gt;force group&lt;/tt&gt; in &lt;tt class=&quot;command&quot;&gt;[public]&lt;/tt&gt;.     &lt;/p&gt;           &lt;pre class=&quot;screen&quot;&gt;[global]&lt;br /&gt;workgroup = DOCS&lt;br /&gt;netbios name = DOCS_SRV&lt;br /&gt;security = user&lt;br /&gt;printcap name = cups&lt;br /&gt;disable spools = Yes&lt;br /&gt;show add printer wizard = No&lt;br /&gt;printing = cups &lt;br /&gt;[homes]&lt;br /&gt;comment = Home Directories&lt;br /&gt;valid users = %S&lt;br /&gt;read only = No&lt;br /&gt;browseable = No &lt;br /&gt;[public]&lt;br /&gt;comment = Data&lt;br /&gt;path = /export&lt;br /&gt;force user = docsbot&lt;br /&gt;force group = users&lt;br /&gt;guest ok = Yes &lt;br /&gt;[printers]&lt;br /&gt;comment = All Printers&lt;br /&gt;path = /var/spool/samba&lt;br /&gt;printer admin = john, ed, @admins&lt;br /&gt;create mask = 0600&lt;br /&gt;guest ok = Yes&lt;br /&gt;printable = Yes&lt;br /&gt;use client driver = Yes&lt;br /&gt;browseable = Yes&lt;br /&gt;&lt;/pre&gt;         &lt;/div&gt;       &lt;/div&gt;       &lt;div class=&quot;section&quot; lang=&quot;en-US&quot; lang=&quot;en-US&quot;&gt;         &lt;div class=&quot;titlepage&quot;&gt;           &lt;div&gt;             &lt;div&gt;               &lt;h3 class=&quot;title&quot;&gt;Domain Member Server&lt;/h3&gt;             &lt;/div&gt;           &lt;/div&gt;                    &lt;/div&gt;                  &lt;p&gt; A domain member, while similar to a stand-alone server, is logged into a domain controller (either Windows or Samba) and is subject to the domain&#39;s security rules. An example of a domain member server would be a departmental server running Samba that has a machine account on the Primary Domain Controller (PDC). All of the department&#39;s clients still authenticate with the PDC, and desktop profiles and all network policy files are included. The difference is that the departmental server has the ability to control printer and network shares. &lt;/p&gt;         &lt;div class=&quot;section&quot; lang=&quot;en-US&quot; lang=&quot;en-US&quot;&gt;           &lt;div class=&quot;titlepage&quot;&gt;             &lt;div&gt;               &lt;div&gt;                 &lt;h4 class=&quot;title&quot;&gt;Active Directory Domain Member Server&lt;/h4&gt;               &lt;/div&gt;             &lt;/div&gt;                        &lt;/div&gt;                      &lt;p&gt;      The following &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file shows a sample configuration needed to implement an Active Directory domain member server. In this example, Samba authenticates users for services being run locally but is also a client of the Active Directory. Ensure that your kerberos &lt;tt class=&quot;command&quot;&gt;realm&lt;/tt&gt; parameter is shown in all caps (for example &lt;tt class=&quot;command&quot;&gt;realm = EXAMPLE.COM&lt;/tt&gt;). Since Windows 2000/2003 requires Kerberos for Active      Directory authentication, the &lt;tt class=&quot;command&quot;&gt;realm&lt;/tt&gt; directive is required. If Active Directory and Kerberos are running on different servers, the &lt;tt class=&quot;command&quot;&gt;password server&lt;/tt&gt; directive may be required to help      the distinction.     &lt;/p&gt;           &lt;pre class=&quot;screen&quot;&gt;[global]&lt;br /&gt;realm = EXAMPLE.COM&lt;br /&gt;security = ADS&lt;br /&gt;encrypt passwords = yes&lt;br /&gt;# Optional. Use only if Samba cannot determine the Kerberos server automatically.&lt;br /&gt;password server = kerberos.example.com&lt;br /&gt;&lt;/pre&gt;           &lt;p&gt;      In order to join a member server to an Active Directory domain, the following steps must be completed:     &lt;/p&gt;           &lt;div class=&quot;itemizedlist&quot;&gt;             &lt;ul&gt;&lt;li&gt;                 &lt;p&gt;        Configuration of the &lt;tt class=&quot;filename&quot;&gt;smb.conf&lt;/tt&gt; file on the member server       &lt;/p&gt;               &lt;/li&gt;&lt;li&gt;                 &lt;p&gt;        Configuration of Kerberos, including the &lt;tt class=&quot;filename&quot;&gt;/etc/krb5.conf&lt;/tt&gt; file, on the member server       &lt;/p&gt;               &lt;/li&gt;&lt;li&gt;                 &lt;p&gt;        Creation of the machine account on the Active Directory domain server       &lt;/p&gt;               &lt;/li&gt;&lt;li&gt;                 &lt;p&gt;        Association of the member server to the Active Directory domain       &lt;/p&gt;               &lt;/li&gt;&lt;/ul&gt;           &lt;/div&gt;           &lt;p&gt; To create the machine account and join the Windows 2000/2003 Active Directory, Kerberos must first be initialized for the member server wishing to join the Active Directory domain. To create an administrative Kerberos ticket, type the following command as root on the member server: &lt;/p&gt;           &lt;pre class=&quot;screen&quot;&gt;&lt;b class=&quot;userinput&quot;&gt;&lt;tt&gt;kinit administrator@EXAMPLE.COM&lt;/tt&gt;&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;           &lt;p&gt;      The &lt;tt class=&quot;command&quot;&gt;kinit&lt;/tt&gt; command is a Kerberos initialization script that references the Active Directory administrator account and Kerberos realm. Since Active Directory requires Kerberos tickets, &lt;tt class=&quot;command&quot;&gt;kinit&lt;/tt&gt; obtains and caches a Kerberos ticket-granting ticket for client/server authentication. For more information on Kerberos, the &lt;tt class=&quot;command&quot;&gt;/etc/krb5.conf&lt;/tt&gt; file, and the      &lt;tt class=&quot;command&quot;&gt;kinit&lt;/tt&gt; command, refer to &lt;a href=&quot;http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-kerberos.html&quot; title=&quot;42.6. Kerberos&quot;&gt;Section 42.6, “Kerberos”&lt;/a&gt;.     &lt;/p&gt;           &lt;p&gt;      To join an Active Directory server (windows1.example.com), type the following command as root on the member server:     &lt;/p&gt;           &lt;pre class=&quot;screen&quot;&gt;&lt;b class=&quot;userinput&quot;&gt;&lt;tt&gt;net ads join -S windows1.example.com -U administrator%password&lt;/tt&gt;&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;           &lt;p&gt;      Since the machine &lt;tt class=&quot;command&quot;&gt;windows1&lt;/tt&gt; was automatically found in the corresponding Kerberos realm (the &lt;tt class=&quot;command&quot;&gt;kinit&lt;/tt&gt; command succeeded), the &lt;tt class=&quot;command&quot;&gt;net&lt;/tt&gt; command connects to the Active Directory server using its required administrator account and password. This creates the appropriate machine account on the Active Directory and grants permissions to the Samba domain member server to join the domain. &lt;/p&gt;           &lt;div class=&quot;note&quot;&gt;             &lt;h2&gt;Note&lt;/h2&gt;             &lt;p&gt;       Since &lt;tt class=&quot;command&quot;&gt;security = ads&lt;/tt&gt; and not &lt;tt class=&quot;command&quot;&gt;security = user&lt;/tt&gt; is used, a local password backend such as &lt;tt class=&quot;filename&quot;&gt;smbpasswd&lt;/tt&gt; is not needed. Older clients that do not       support &lt;tt class=&quot;command&quot;&gt;security = ads&lt;/tt&gt; are authenticated as if &lt;tt class=&quot;command&quot;&gt;security = domain&lt;/tt&gt; had been set. This change does not affect functionality and allows local users not previously in the domain.      &lt;/p&gt;           &lt;/div&gt;         &lt;/div&gt;         &lt;div class=&quot;section&quot; lang=&quot;en-US&quot; lang=&quot;en-US&quot;&gt;           &lt;div class=&quot;titlepage&quot;&gt;             &lt;div&gt;               &lt;div&gt;                 &lt;h4 class=&quot;title&quot;&gt;Windows NT4-based Domain Member Server&lt;/h4&gt;               &lt;/div&gt;             &lt;/div&gt;                        &lt;/div&gt;                      &lt;p&gt;      The following &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file shows a sample configuration needed to implement a Windows NT4-based domain member server. Becoming a member server of an NT4-based domain is similar to connecting to an Active Directory. The main difference is NT4-based domains do not use Kerberos in their authentication method, making the &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file simpler. In this instance, the Samba member server functions as a pass through to the NT4-based domain server.     &lt;/p&gt;           &lt;pre class=&quot;screen&quot;&gt;[global]&lt;br /&gt;workgroup = DOCS&lt;br /&gt;netbios name = DOCS_SRV&lt;br /&gt;security = domain &lt;br /&gt;[homes]&lt;br /&gt;comment = Home Directories&lt;br /&gt;valid users = %S&lt;br /&gt;read only = No&lt;br /&gt;browseable = No &lt;br /&gt;[public]&lt;br /&gt;comment = Data&lt;br /&gt;path = /export&lt;br /&gt;force user = docsbot&lt;br /&gt;force group = users&lt;br /&gt;guest ok = Yes&lt;br /&gt;&lt;/pre&gt;           &lt;p&gt; Having Samba as a domain member server can be useful in many situations. There are times where the Samba server can have other uses besides file and printer sharing. It may be beneficial to make Samba a domain member server in instances where Linux-only applications are required for use in the domain environment. Administrators appreciate keeping track of all machines in the domain, even if not Windows-based. In the event the Windows-based server hardware is deprecated, it is quite easy to modify the &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file to convert the server to a Samba-based PDC. If Windows NT-based servers are upgraded to Windows 2000/2003, the &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file is easily modifiable to      incorporate the infrastructure change to Active Directory if needed.     &lt;/p&gt;           &lt;div class=&quot;important&quot;&gt;             &lt;h2&gt;Important&lt;/h2&gt;             &lt;p&gt;       After configuring the &lt;tt class=&quot;command&quot;&gt;smb.conf&lt;/tt&gt; file, join the domain &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;before&lt;/em&gt;&lt;/span&gt; starting Samba by typing the following command as root:      &lt;/p&gt;             &lt;pre class=&quot;screen&quot;&gt;&lt;b class=&quot;userinput&quot;&gt;&lt;tt&gt;net rpc join -U administrator%password&lt;/tt&gt;&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;           &lt;/div&gt;           &lt;p&gt;      Note that the &lt;tt class=&quot;option&quot;&gt;-S&lt;/tt&gt; option, which specifies the domain server hostname, does not need to be stated in the &lt;tt class=&quot;command&quot;&gt;net rpc join&lt;/tt&gt; command. Samba uses the hostname specified by the      &lt;tt class=&quot;command&quot;&gt;workgroup&lt;/tt&gt; directive in the &lt;tt class=&quot;filename&quot;&gt;smb.conf&lt;/tt&gt; file instead of it being stated explicitly.     &lt;/p&gt;         &lt;/div&gt;       &lt;/div&gt;                &lt;div class=&quot;titlepage&quot;&gt;           &lt;div&gt;             &lt;div&gt;               &lt;h3 class=&quot;title&quot;&gt;Domain Controller&lt;/h3&gt;             &lt;/div&gt;           &lt;/div&gt;                    &lt;/div&gt;                  &lt;p&gt; A domain controller in Windows NT is functionally similar to a Network Information Service (NIS) server in a Linux environment. Domain controllers and NIS servers both host user/group information databases as well as related services. Domain controllers are mainly used for security, including the authentication of users accessing domain resources. The service that maintains the user/group database integrity is called the &lt;i class=&quot;firstterm&quot;&gt;Security Account Manager&lt;/i&gt; (SAM). The SAM database is stored differently between Windows and Linux Samba-based systems, therefore SAM replication cannot be achieved and platforms cannot be mixed in a PDC/BDC environment. &lt;/p&gt;         &lt;p&gt;     In a Samba environment, there can be only one PDC and zero or more BDCs.    &lt;/p&gt;         &lt;div class=&quot;important&quot;&gt;           &lt;h2&gt;Important&lt;/h2&gt;           &lt;p&gt; Samba cannot exist in a mixed Samba/Windows domain controller environment (Samba cannot be a BDC of a Windows PDC or vice versa). Alternatively, Samba PDCs and BDCs &lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;can&lt;/em&gt;&lt;/span&gt; coexist.     &lt;/p&gt;         &lt;/div&gt;                    &lt;div class=&quot;titlepage&quot;&gt;             &lt;div&gt;               &lt;div&gt;                 &lt;h4 class=&quot;title&quot;&gt;Primary Domain Controller (PDC) using &lt;tt class=&quot;command&quot;&gt;tdbsam&lt;/tt&gt;&lt;/h4&gt;               &lt;/div&gt;             &lt;/div&gt;                        &lt;/div&gt;                      &lt;p&gt;      The simplest and most common implementation of a Samba PDC uses the &lt;tt class=&quot;command&quot;&gt;tdbsam&lt;/tt&gt; password database backend. The &lt;tt class=&quot;command&quot;&gt;passdb backend&lt;/tt&gt; directive controls which backend is to be used      for the PDC.     &lt;/p&gt;           &lt;pre class=&quot;screen&quot;&gt;[global]&lt;br /&gt;workgroup = DOCS&lt;br /&gt;netbios name = DOCS_SRV &lt;br /&gt;passdb backend = tdbsam&lt;br /&gt;security = user&lt;br /&gt;add user script = /usr/sbin/useradd -m %u&lt;br /&gt;delete user script = /usr/sbin/userdel -r %u&lt;br /&gt;add group script = /usr/sbin/groupadd %g &lt;br /&gt;delete group script = /usr/sbin/groupdel %g &lt;br /&gt;add user to group script = /usr/sbin/usermod -G %g %u&lt;br /&gt;add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null  -g machines %u&lt;br /&gt;# The following specifies the default logon script &lt;br /&gt;# Per user logon scripts can be specified in the user&lt;br /&gt;# account using pdbedit logon script = logon.bat&lt;br /&gt;# This sets the default profile path.&lt;br /&gt;# Set per user paths with pdbedit&lt;br /&gt;logon drive = H:&lt;br /&gt;domain logons = Yes&lt;br /&gt;os level = 35&lt;br /&gt;preferred master = Yes&lt;br /&gt;domain master = Yes &lt;br /&gt;[homes]&lt;br /&gt; comment = Home Directories&lt;br /&gt; valid users = %S&lt;br /&gt; read only = No &lt;br /&gt;[netlogon]&lt;br /&gt; comment = Network Logon Service&lt;br /&gt; path = /var/lib/samba/netlogon/scripts&lt;br /&gt; browseable = No &lt;br /&gt; read only = No&lt;br /&gt;# For profiles to work, create a user directory under the&lt;br /&gt;# path shown.&lt;br /&gt;&lt;tt class=&quot;command&quot;&gt;mkdir -p /var/lib/samba/profiles/john&lt;/tt&gt;&lt;br /&gt;[Profiles]&lt;br /&gt; comment = Roaming Profile Share&lt;br /&gt; path = /var/lib/samba/profiles&lt;br /&gt; read only = No&lt;br /&gt; browseable = No&lt;br /&gt; guest ok = Yes&lt;br /&gt; profile acls = Yes &lt;br /&gt;# Other resource shares ... ...&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/5480734817477471271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/samba-server-types-and-smbconf-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/5480734817477471271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/5480734817477471271'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/samba-server-types-and-smbconf-file.html' title='Samba Server Types and the smb.conf File'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-1327844769667354915</id><published>2010-01-31T08:05:00.000-08:00</published><updated>2010-01-31T08:07:03.743-08:00</updated><title type='text'>Update CentOS 5.0 to 5.1</title><content type='html'>&lt;p&gt;To update CentOS 5.0 to CentOS 5.1, all you have to do is type in &lt;tt&gt;yum update&lt;/tt&gt; from the Terminal window. This command will automatically get the updated packages over the internet. But if you have the CentOS 5.1 DVD, the steps below will show you how to update from that.&lt;/p&gt; &lt;span id=&quot;more-58&quot;&gt;&lt;/span&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/desktop.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/desktop.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;1. Insert the CentOS 5.1 DVD into the DVD drive and double click the &lt;em&gt;Computer&lt;/em&gt; icon in the CentOS Desktop.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/file-browser-computer.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/file-browser-computer.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;2. On the &lt;strong&gt;Computer – File Browser&lt;/strong&gt; window, double click on the &lt;em&gt;CD-ROM Drive&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/file-browser-computer.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/file-browser-dvd.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;3. The CentOS 5.1 DVD should now be available on &lt;em&gt;/media/CentOS_5.1_Final&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/terminal-ln.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/terminal-ln.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;4. From a terminal window, type in &lt;tt&gt;ln -sf /media/CentOS_5.1_Final /media/CentOS&lt;/tt&gt; and press &lt;em&gt;Enter&lt;/em&gt;. This enables the CentOS 5.1 DVD to be located on the yum search path.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/edit-centos-media.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/edit-centos-media.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;5. Edit the file &lt;em&gt;/etc/yum.repos.d/CentOS-Media.repo&lt;/em&gt; and change &lt;em&gt;beta&lt;/em&gt; into &lt;em&gt;CentOS-5&lt;/em&gt; in the line &lt;tt&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta&lt;/tt&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/terminal-yum.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/terminal-yum.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;6. Finally, type in &lt;tt&gt;yum --disablerepo=* --enablerepo=c5-media&lt;/tt&gt; and press &lt;em&gt;Enter&lt;/em&gt; to begin the update process.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;img class=&quot;icon32x32 left&quot; alt=&quot;Note&quot; src=&quot;http://www.linuxmail.info/images/emblem-note.png&quot; /&gt;For 64-bit users: You need to add the line &lt;tt&gt;login_process_size = 64&lt;/tt&gt; in the file &lt;em&gt;/etc/dovecot.conf&lt;/em&gt; and restart dovecot after upgrading.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/1327844769667354915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/update-centos-50-to-51.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/1327844769667354915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/1327844769667354915'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/update-centos-50-to-51.html' title='Update CentOS 5.0 to 5.1'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-7669754211523837075</id><published>2010-01-31T07:08:00.000-08:00</published><updated>2010-01-31T07:10:49.102-08:00</updated><title type='text'>how to administer a Red Hat Enterprise Linux 5 or CentOS 5 server.</title><content type='html'>&lt;h2&gt;System Management&lt;/h2&gt; &lt;p&gt;This section describes how to perform system management tasks.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/user-manager.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/user-manager.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/how-to-add-remove-user-accounts-centos-5/&quot;&gt;How to add, edit or remove a user account&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/package-manager-apps.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/package-manager-apps.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/how-to-add-remove-applications-centos-5/&quot;&gt;How to add or remove packages or applications&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/service-config-2.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/service-config-2.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/how-to-start-stop-services-centos-5/&quot;&gt;How to start, stop or restart a background service&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/how-to-start-stop-services-centos-5/&quot;&gt;How to enable or disable an on demand service&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/security-level-config.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/security-level-config.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/firewall-configuration-centos-5/&quot;&gt;How to configure the firewall&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/date-time-properties-2.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/date-time-properties-2.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/synchronize-system-clock-centos-5/&quot;&gt;How to synchronize the system clock using NTP&lt;/a&gt;&lt;/div&gt; &lt;h2&gt;System Utilities&lt;/h2&gt; &lt;p&gt;This section describes utilities you can use to manage your system.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/windows-xp/putty-terminal.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/windows-xp/putty-terminal.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/ssh-howto/&quot;&gt;How to setup SSH to remotely administer a Linux server using a command line&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/windows-xp/tightvnc-session.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/windows-xp/tightvnc-session.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/vnc-remote-desktop-howto/&quot;&gt;How to use VNC to remotely administer a Linux server using a GUI&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/webmin-main.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/webmin-main.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/webmin-setup-howto/&quot;&gt;How to setup Webmin, a web based system administration tool&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/service-rsync.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/service-rsync.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/rsync-howto/&quot;&gt;How to use rsync to synchronize files between two computers&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/vi/vi-3.gif&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/vi/vi-3.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmail.info/vi-editor-tutorial/&quot;&gt;How to use vi, a command line editor&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/7669754211523837075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/how-to-administer-red-hat-enterprise.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/7669754211523837075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/7669754211523837075'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/how-to-administer-red-hat-enterprise.html' title='how to administer a Red Hat Enterprise Linux 5 or CentOS 5 server.'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-3584811071371965955</id><published>2010-01-31T06:57:00.000-08:00</published><updated>2010-02-01T20:41:14.812-08:00</updated><title type='text'>How to Setup Webmin in CentOS 5</title><content type='html'>&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/firefox-webmin.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/firefox-webmin.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1.Go to &lt;a href=&quot;http://www.webmin.com/&quot;&gt;www.webmin.com&lt;/a&gt; and download the Webmin RPM package. &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/webmin-install.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/webmin-install.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;2. Double click the downloaded file to install Webmin.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/security-level-config-2.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/security-level-config-2.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;3. After installing Webmin, configure the firewall to allow traffic on the TCP port 10000. &lt;a href=&quot;http://www.linuxmail.info/firewall-configuration-centos-5/&quot;&gt;Learn how to configure the firewall&lt;/a&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/service-config.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/service-config.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;4. Start the &lt;em&gt;httpd&lt;/em&gt; service. &lt;a href=&quot;http://www.linuxmail.info/how-to-start-stop-services-centos-5/&quot;&gt;Learn how to start and stop services here.&lt;/a&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/webmin-login.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/webmin-login.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;5. From a web browser, connect to &lt;strong&gt;https://localhost:10000&lt;/strong&gt; and login using root.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/webmin-main.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/webmin-main.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;6. That’s it. It’s working.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;post-content no-border&quot;&gt; &lt;p&gt;&lt;strong&gt;Webmin&lt;/strong&gt; is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. This article will show you how to install Webmin.&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/3584811071371965955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/how-to-setup-webmin-in-centos-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/3584811071371965955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/3584811071371965955'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/how-to-setup-webmin-in-centos-5.html' title='How to Setup Webmin in CentOS 5'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-5947361781525974257</id><published>2010-01-31T06:53:00.000-08:00</published><updated>2010-01-31T06:55:10.408-08:00</updated><title type='text'>Setup and Configure LDAP User Information</title><content type='html'>&lt;p&gt;It is recommended to an Active Directory enabled DNS server, this will ensure that the LDAP lookups and Kerberos authentication will work properly. Also, provide a user account dedicated for the LDAP authentication.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/authentication.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/authentication.png&quot; /&gt;&lt;/a&gt;1. Click &lt;em&gt;System&lt;/em&gt;, select &lt;em&gt;Administration&lt;/em&gt; and click &lt;em&gt;Authentication&lt;/em&gt;. This will launch the &lt;strong&gt;Authentication Configuration&lt;/strong&gt; window.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/auth-config-user-information.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/auth-config-user-information.png&quot; /&gt;&lt;/a&gt;2. Check &lt;em&gt;Enable LDAP Support&lt;/em&gt; and click the &lt;em&gt;Configure LDAP&lt;/em&gt; button.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/auth-config-ldap-settings.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/auth-config-ldap-settings.png&quot; /&gt;&lt;/a&gt;3. Fill in the &lt;em&gt;LDAP Search Base DN&lt;/em&gt; and &lt;em&gt;LDAP Server&lt;/em&gt; fields. Click &lt;em&gt;Ok&lt;/em&gt; when you are done.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/auth-config-options.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/auth-config-options.png&quot; /&gt;&lt;/a&gt;4. Click the &lt;em&gt;Options&lt;/em&gt; tab and check &lt;em&gt;Local authorization is sufficient for local users&lt;/em&gt; and &lt;em&gt;Create home directories on the first login&lt;/em&gt;. Click &lt;em&gt;Ok&lt;/em&gt; when you are done.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/edit-ldap-conf.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/edit-ldap-conf.png&quot; /&gt;&lt;/a&gt;4. Edit the file &lt;em&gt;/etc/ldap.conf&lt;/em&gt; and add the following lines below. &lt;pre class=&quot;steps&quot;&gt;binddn &lt;em&gt;user account&lt;/em&gt;&lt;br /&gt;bindpw &lt;em&gt;password for binddn&lt;/em&gt;&lt;br /&gt;nss_map_objectclass posixAccount User&lt;br /&gt;nss_map_objectclass posixGroup Group&lt;br /&gt;nss_map_attribute homeDirectory unixHomeDirectory&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;If you are using Services for Unix 3.5, remove the homeDirectory mapping above and add the lines below. &lt;pre class=&quot;steps&quot;&gt;nss_map_attribute uid msSFU30Name&lt;br /&gt;nss_map_attribute uidNumber msSFU30UidNumber&lt;br /&gt;nss_map_attribute gidNumber msSFU30GidNumber&lt;br /&gt;nss_map_attribute homeDirectory msSFU30HomeDirectory&lt;br /&gt;nss_map_attribute loginShell msSFU30LoginShell&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;img class=&quot;icon32x32 left&quot; alt=&quot;Note&quot; src=&quot;http://www.linuxmail.info/images/emblem-note.png&quot; /&gt;If you are not using an Active Directory enabled DNS server, you need to add the line &lt;tt&gt;referrals no&lt;/tt&gt; to make this work.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/terminal-getent-passwd.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/terminal-getent-passwd.png&quot; /&gt;&lt;/a&gt;5. Type in &lt;tt&gt;getent passwd&lt;/tt&gt; in a terminal window. You should see your Active Directory user accounts.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/terminal-getent-group.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/terminal-getent-group.png&quot; /&gt;&lt;/a&gt;6. Type in &lt;tt&gt;getent group&lt;/tt&gt; in a terminal window. You should see your Active Directory groups.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/5947361781525974257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/setup-and-configure-ldap-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/5947361781525974257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/5947361781525974257'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/setup-and-configure-ldap-user.html' title='Setup and Configure LDAP User Information'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-7045637103360162268</id><published>2010-01-31T06:44:00.000-08:00</published><updated>2010-01-31T06:50:16.444-08:00</updated><title type='text'>Active Directory Integration with Samba for RHEL/CentOS 5</title><content type='html'>This article will show you how to join your Linux server into the Active Directory domain, how to integrate the Active Directory user accounts into the Linux user accounts and how to authenticate users in Active Directory using Winbind, a component of Samba.&lt;br /&gt;&lt;br /&gt;A better way to integrate Active Directory into your Linux mail server is by using &lt;a href=&quot;http://www.linuxmail.info/postfix-dovecot-ldap-centos-5/&quot;&gt;Postfix’s Virtual User Accounts&lt;/a&gt;. &lt;div class=&quot;clearfix steps&quot;&gt;&lt;img class=&quot;icon32x32 left&quot; alt=&quot;Note&quot; src=&quot;http://www.linuxmail.info/images/emblem-note.png&quot; /&gt;Samba is installed by default when you select the Server installation type during the installation process. In case you need to install or reinstall it, just add the &lt;em&gt;Windows File Server&lt;/em&gt; package located in the &lt;em&gt;Servers&lt;/em&gt; category using the &lt;a href=&quot;http://www.linuxmail.info/how-to-add-remove-applications-centos-5/&quot;&gt;Package Manager&lt;/a&gt; tool.&lt;/div&gt; &lt;h2&gt;Setup and Configure Winbind&lt;/h2&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/authentication.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/authentication.png&quot; /&gt;&lt;/a&gt;1. Click &lt;em&gt;System&lt;/em&gt;, select &lt;em&gt;Administration&lt;/em&gt; and click &lt;em&gt;Authentication&lt;/em&gt;. This will launch the &lt;strong&gt;Authentication Configuration&lt;/strong&gt; window.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/auth-config.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/auth-config.png&quot; /&gt;&lt;/a&gt;2. Check the &lt;em&gt;Enable Winbind Support&lt;/em&gt; and click &lt;em&gt;Configure Winbind&lt;/em&gt;. This will launch the &lt;strong&gt;Winbind Settings&lt;/strong&gt; window.&lt;/div&gt; &lt;div id=&quot;winbind-settings&quot; class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/winbind-settings.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/winbind-settings.png&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;m&quot;&gt;3. In the &lt;strong&gt;Winbind Settings&lt;/strong&gt; window, set the &lt;em&gt;Security Model&lt;/em&gt; to &lt;em&gt;ads&lt;/em&gt; and fill in the &lt;em&gt;Winbind Domain&lt;/em&gt;, &lt;em&gt;Winbind ADS Realm&lt;/em&gt; and &lt;em&gt;Winbind Domain Controllers&lt;/em&gt;. See sample settings below.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div class=&quot;m&quot;&gt;     &lt;div class=&quot;fw&quot;&gt;Winbind Domain&lt;/div&gt;&lt;div&gt;acme&lt;/div&gt;     &lt;div class=&quot;fw&quot;&gt;Winbind ADS Realm&lt;/div&gt;&lt;div&gt;acme.local&lt;/div&gt;     &lt;div class=&quot;fw&quot;&gt;Domain Controllers&lt;/div&gt;&lt;div&gt;server1.acme.local,server2.acme.local&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;img class=&quot;icon32x32 left&quot; alt=&quot;Note&quot; src=&quot;http://www.linuxmail.info/images/emblem-note.png&quot; /&gt;If you would like to allow your Active Directory users to login to your Linux system, change &lt;strong&gt;Template Shell&lt;/strong&gt; to &lt;em&gt;/bin/bash&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;img class=&quot;icon32x32 left&quot; alt=&quot;Important&quot; src=&quot;http://www.linuxmail.info/images/emblem-important.png&quot; /&gt;To ensure the success of the Active Directory integration, make sure that your Active Directory DNS is working, you are using the Active Directory DNS, you can ping the domain controllers and that the difference between the domain controllers’ clock and the mail server’s clock is not more than five minutes.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/join-winbind.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/join-winbind.png&quot; /&gt;&lt;/a&gt;4. Click &lt;em&gt;Join Winbind Domain&lt;/em&gt;. You will be asked to save your changes, click &lt;em&gt;Save&lt;/em&gt;. In the &lt;strong&gt;Joining Winbind Domain&lt;/strong&gt; window, fill in the &lt;em&gt;Domain Administrator&lt;/em&gt; and &lt;em&gt;Password&lt;/em&gt;. Click &lt;em&gt;Ok&lt;/em&gt; when you are done. Click &lt;em&gt;Ok&lt;/em&gt; again to close the &lt;strong&gt;Winbind Settings&lt;/strong&gt; window.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/auth-config-2.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/auth-config-2.png&quot; /&gt;&lt;/a&gt;5. Click the &lt;em&gt;Authentication&lt;/em&gt; tab and check the &lt;em&gt;Enable Winbind Support&lt;/em&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/auth-config-3.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/auth-config-3.png&quot; /&gt;&lt;/a&gt;6. Click the &lt;em&gt;Options&lt;/em&gt; tab and check the &lt;em&gt;Local authorization is sufficient for local users&lt;/em&gt;. Click &lt;em&gt;Ok&lt;/em&gt; when you are done.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/edit-smb-conf.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/edit-smb-conf.png&quot; /&gt;&lt;/a&gt;7. Open the file &lt;em&gt;/etc/samba/smb.conf&lt;/em&gt; for editing and change the key values below.&lt;div class=&quot;m&quot;&gt;&lt;pre class=&quot;steps&quot;&gt;winbind use default domain = yes&lt;br /&gt;winbind enum users = yes&lt;br /&gt;winbind enum groups = yes&lt;br /&gt;obey pam restrictions = yes&lt;br /&gt;allow trusted domains = no&lt;br /&gt;idmap backend = idmap_rid:acme=16777216-33554431&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt; For the last line, replace &lt;em&gt;acme&lt;/em&gt; with the value of &lt;em&gt;workgroup&lt;/em&gt; and ensure that the range matches your &lt;em&gt;idmap uid&lt;/em&gt; range. &lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;img class=&quot;icon32x32 left&quot; alt=&quot;Note&quot; src=&quot;http://www.linuxmail.info/images/emblem-note.png&quot; /&gt;The last line activates algorithmic mapping of the Windows IDs to Unix IDs. This enables you to use Samba across several Linux machines or recreate a corrupted mapping database since the mapping is consistent.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/smb-home-dir.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/smb-home-dir.png&quot; /&gt;&lt;/a&gt;8. Create the folder that will contain the home directory of the Active Directory users. From the terminal window, type in the commands below.&lt;div class=&quot;m&quot;&gt;&lt;pre class=&quot;steps&quot;&gt;mkdir /home/DOMAIN&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;m&quot;&gt;Replace &lt;em&gt;DOMAIN&lt;/em&gt; with your domain. Make sure to capitalize your domain like &lt;em&gt;ACME&lt;/em&gt; in our example.&lt;/div&gt;&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/edit-system-auth.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/edit-system-auth.png&quot; /&gt;&lt;/a&gt;9. Edit the file &lt;em&gt;/etc/pam.d/system-auth&lt;/em&gt; and add the line below.&lt;/div&gt; &lt;pre class=&quot;steps&quot;&gt;session required pam_oddjob_mkhomedir.so skel=/etc/skel/ umask=0022&lt;/pre&gt; &lt;div class=&quot;steps&quot;&gt;This will automatically create the user’s home directory whenever a PAM session is opened. Winbind and Dovecot will be opening the PAM session thus automatically creating the user’s home directory.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/service-config.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/service-config.png&quot; /&gt;&lt;/a&gt;10. Restart the &lt;em&gt;winbind&lt;/em&gt; service and start the &lt;em&gt;oddjobd&lt;/em&gt; service. &lt;a href=&quot;http://www.linuxmail.info/how-to-start-stop-services-centos-5/&quot;&gt;Learn how to start and restart services here.&lt;/a&gt;&lt;/div&gt; &lt;h2 id=&quot;test-active-directory&quot;&gt;Test the Active Directory Integration&lt;/h2&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/wbinfo-u.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/wbinfo-u.png&quot; /&gt;&lt;/a&gt;1. From a terminal window, type in &lt;tt&gt;wbinfo -u&lt;/tt&gt;. You should see the Active Directory user accounts.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/wbinfo-a.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/wbinfo-a.png&quot; /&gt;&lt;/a&gt;2. Try the Active Directory authentication, type in &lt;tt&gt;wbinfo -a &quot;username&quot;%&quot;password&quot;&lt;/tt&gt;.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/getent-passwd.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/getent-passwd.png&quot; /&gt;&lt;/a&gt;3. Finally, type in &lt;tt&gt;getent passwd&lt;/tt&gt;. You should see the Linux system accounts along with the Active Directory user accounts.&lt;/div&gt; &lt;img class=&quot;icon32x32 left&quot; alt=&quot;Note&quot; src=&quot;http://www.linuxmail.info/images/emblem-note.png&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/7045637103360162268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/active-directory-integration-with-samba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/7045637103360162268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/7045637103360162268'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/active-directory-integration-with-samba.html' title='Active Directory Integration with Samba for RHEL/CentOS 5'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1515405961596935511.post-8857967288467416890</id><published>2010-01-31T06:40:00.000-08:00</published><updated>2010-01-31T06:43:57.085-08:00</updated><title type='text'>Active Directory and Cyrus SASL Authentication</title><content type='html'>The Postfix Cyrus SASL support is used to authenticate remote SMTP clients to the Postfix SMTP server. Thanks to the Pluggable Authentication Modules (PAM) in Linux, we can configure Cyrus SASL to delegate the authentication process to an Active Directory server.&lt;br /&gt;&lt;h2&gt;Setup and Configure Kerberos&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;The steps below describes how to configure Kerberos using the GUI tool. You can apply the changes manually by editing the file &lt;em&gt;/etc/krb5.conf&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;&lt;img class=&quot;icon32x32 left&quot; alt=&quot;Important&quot; src=&quot;http://www.linuxmail.info/images/emblem-important.png&quot; /&gt;The Kerberos network authentication protocol requires the clocks of the involved machines to be synchronized or at least the difference is less than 5 minutes.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/authentication.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/authentication.png&quot; /&gt;&lt;/a&gt;1. Click &lt;em&gt;System&lt;/em&gt;, select &lt;em&gt;Administration&lt;/em&gt; and click &lt;em&gt;Authentication&lt;/em&gt;. This will launch the &lt;strong&gt;Authentication Configuration&lt;/strong&gt; window.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/auth-config-a.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/auth-config-a.png&quot; /&gt;&lt;/a&gt;2. Click the &lt;em&gt;Authentication&lt;/em&gt; tab and check the &lt;em&gt;Enable Kerberos Support&lt;/em&gt;. Next, click the &lt;em&gt;Configure Kerberos&lt;/em&gt; button.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/kerberos-settings.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/kerberos-settings.png&quot; /&gt;&lt;/a&gt;3. In the &lt;strong&gt;Kerberos Settings&lt;/strong&gt; window, fill in the &lt;em&gt;Realm&lt;/em&gt;, clear out &lt;em&gt;KDC&lt;/em&gt; and &lt;em&gt;Admin Servers&lt;/em&gt; and check the &lt;em&gt;Use DNS to locate KDCs for realms&lt;/em&gt;. Realm is usually your domain name capitalized, &lt;em&gt;capitalization is important.&lt;/em&gt; KDC is your Active Directory server. Click &lt;em&gt;Ok&lt;/em&gt; when you’re done.&lt;/div&gt; &lt;p&gt;&lt;img class=&quot;icon32x32 left&quot; alt=&quot;Note&quot; src=&quot;http://www.linuxmail.info/images/emblem-note.png&quot; /&gt;To make sure that your KDC can be automatically located, type in the command &lt;tt&gt;host -t any _kerberos._tcp.acme.local&lt;/tt&gt; in a terminal window. Replace &lt;em&gt;acme.local&lt;/em&gt; with your own realm. If it replies “_kerberos._tcp.acme.local has SRV record …” then it works, otherwise you’ll have to fill in the KDC field above. This is how the Windows workstation is able to find the domain controller during domain logon.&lt;/p&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/auth-config-b.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/auth-config-b.png&quot; /&gt;&lt;/a&gt;4. Uncheck the &lt;em&gt;Enable Kerberos Support&lt;/em&gt; and click &lt;em&gt;Ok&lt;/em&gt;. We don’t actually want to use Kerberos authentication in Linux, we just want the tool to setup Kerberos for us.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/terminal-kinit.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/terminal-kinit.png&quot; /&gt;&lt;/a&gt;5. Test Kerberos by typing in &lt;tt&gt;kinit username&lt;/tt&gt; in a terminal window. If you need help in making sense of the kinit error messages, check out &lt;a href=&quot;http://www.linuxmail.info/troubleshooting-active-directory-centos-5/#test-kerberos&quot;&gt;Test the Kerberos Authentication&lt;/a&gt;.&lt;/div&gt; &lt;h2&gt;Configuring Cyrus SASL&lt;/h2&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/edit-pam-smtp-postfix.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/edit-pam-smtp-postfix.png&quot; /&gt;&lt;/a&gt;1. Edit the file &lt;em&gt;/etc/pam.d/smtp.postfix&lt;/em&gt; and replace the content with the lines below. &lt;/div&gt; &lt;pre class=&quot;steps&quot;&gt;auth        sufficient   pam_krb5.so no_user_check validate&lt;br /&gt;account     sufficient   pam_permit.so&lt;br /&gt;&lt;/pre&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/service-config-saslauthd.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/service-config-saslauthd.png&quot; /&gt;&lt;/a&gt;2. Restart the saslauthd service.&lt;/div&gt; &lt;div class=&quot;clearfix steps&quot;&gt;&lt;a href=&quot;http://www.linuxmail.info/images/centos-5/terminal-testsaslauthd.png&quot;&gt;&lt;img class=&quot;full&quot; alt=&quot;&quot; src=&quot;http://www.linuxmail.info/images/centos-5/terminal-testsaslauthd.png&quot; /&gt;&lt;/a&gt;3. Test saslauthd by typing in &lt;tt&gt;testsaslauthd -u &lt;em&gt;username&lt;/em&gt; -p &lt;em&gt;password&lt;/em&gt; -r &lt;em&gt;domain&lt;/em&gt; -s smtp&lt;/tt&gt; in a terminal window.&lt;/div&gt; &lt;p&gt;Cyrus SASL is now configured to authenticate against an Active Directory server. Proceed to &lt;a href=&quot;http://www.linuxmail.info/smtp-authentication-postfix-centos-5/&quot;&gt;Postfix SMTP Authentication&lt;/a&gt; for instructions on configuring Postfix. Or restart Postfix or MailScanner and jump directly to the &lt;a href=&quot;http://www.linuxmail.info/smtp-authentication-postfix-centos-5/#test-postfix&quot;&gt;Test Postfix using Telnet&lt;/a&gt; part if you have already done so.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-s-guide.blogspot.com/feeds/8857967288467416890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/active-directory-and-cyrus-sasl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/8857967288467416890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1515405961596935511/posts/default/8857967288467416890'/><link rel='alternate' type='text/html' href='http://linux-s-guide.blogspot.com/2010/01/active-directory-and-cyrus-sasl.html' title='Active Directory and Cyrus SASL Authentication'/><author><name>mofan</name><uri>http://www.blogger.com/profile/11633837173886886730</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQsNau7RHrZoL0X1xeu7QCQLHSptRYg5L_E7mrPBBw_715y7IVsQJuDdvvU1q4nWR47VVgY1iVdhH17Fd25GAwXRcFf10CXZ2la7pgUfKQH6ie9DjEwyJ_xlewpRJRjI/s220/Downhill.jpg'/></author><thr:total>0</thr:total></entry></feed>