<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>linuxbuddies.com &#187; Core Linux</title>
	<atom:link href="http://linuxbuddies.com/category/linux-core-commands-and-utilities/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbuddies.com</link>
	<description>For linux documentations.</description>
	<lastBuildDate>Fri, 11 Sep 2009 10:11:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How Kerberos Works</title>
		<link>http://linuxbuddies.com/2009/09/10/how-kerberos-authentication-works/</link>
		<comments>http://linuxbuddies.com/2009/09/10/how-kerberos-authentication-works/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 08:41:05 +0000</pubDate>
		<dc:creator>Eldo</dc:creator>
				<category><![CDATA[Core Linux]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=365</guid>
		<description><![CDATA[As we know the kerberos authentication method is the most secure network authentication method ever build. In normal method the password is sent accross the network, which is vulnerable but in kerberos method no password is sent accross the network.
The Steps included in kerberos authentication
users enters his user name and ...]]></description>
			<content:encoded><![CDATA[<p>As we know the kerberos authentication method is the most secure network authentication method ever build. In normal method the password is sent accross the network, which is vulnerable but in kerberos method no password is sent accross the network.</p>
<p>The Steps included in kerberos authentication</p>
<p>users enters his user name and password to login program, in kerberos  each user have his own principal. Login program converts the username to his principal and request the KDC (key distrubtion centre) for TGT (ticket granding ticket) for this principal. KDC then check his database if the principal is there KDC create two secret keys. One key is encrypted with the password for the principal stored in his database and is sent back to the login program.</p>
<p>Login program tries to decrypt the packet received from KDC using the password entered by the user, if is possible to decrypt the user is authenticated.</p>
<p>User    (username + password) &#8212;&gt; Login Program</p>
<p>Login program ( principal for the username )  &#8212;&gt; KDC</p>
<p>KDC (create two secret keys ) &#8212;&#8212;&#8212;&#8211;&gt; S1 &amp; S2</p>
<p>KDC (encrypt the S1 with password associated with principal ) &#8212;&#8212;&#8212;&#8211;&gt; Login program</p>
<p>Login Program ( tries to decrypt it with the password entered by the user) &#8212;&#8212;&gt; user is authenticated</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/how-kerberos-authentication-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Internet Users</title>
		<link>http://linuxbuddies.com/2009/09/10/add-proxy-users/</link>
		<comments>http://linuxbuddies.com/2009/09/10/add-proxy-users/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:55:01 +0000</pubDate>
		<dc:creator>Eldo</dc:creator>
				<category><![CDATA[Core Linux]]></category>
		<category><![CDATA[Proxy]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=362</guid>
		<description><![CDATA[We usally configure the proxy server to share the internet over the internal network, users inside the network can access the internet through the proxy server. All the logs of the internet usage are stored in proxy server logs files, but there is a problem in this condition. we cannot ...]]></description>
			<content:encoded><![CDATA[<p>We usally configure the proxy server to share the internet over the internal network, users inside the network can access the internet through the proxy server. All the logs of the internet usage are stored in proxy server logs files, but there is a problem in this condition. we cannot track the usage of internet by user wise and also there is no authentication method used in this. To over this situation we can use the authentication method inbuilt in the proxy server ( Squid), by this method all users in the network will got a username and password for accessing the interwork and admins are able to track the usage by userwise.</p>
<p>Configration changes in the squid.conf file</p>
<p>auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/sqpasswd<br />
acl ncsa_users proxy_auth REQUIRED<br />
http_access allow ncsa_users</p>
<p>create user and password for squid access</p>
<p>htpasswd -cm /etc/squid/sqpasswd eldo</p>
<p>Enter the password for eldo inorder to get internet access</p>
<p>We can sarg  package for Squid Analysis Report Generator, sarg will make HTML report page</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/add-proxy-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dhcp Server Provides Multiple Range of Ips</title>
		<link>http://linuxbuddies.com/2009/09/10/dhcp-server-provides-multiple-range-of-ips/</link>
		<comments>http://linuxbuddies.com/2009/09/10/dhcp-server-provides-multiple-range-of-ips/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:17:11 +0000</pubDate>
		<dc:creator>Eldo</dc:creator>
				<category><![CDATA[Core Linux]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=355</guid>
		<description><![CDATA[
In some areas they are different networks in the same building, we need a DHCP server to provide Ip address for the computers in this different networks. It is possible to configure DHCP server with multiple range of ip address.
Configuration  Example


 
In the working example configuration shown below, the DHCP ...]]></description>
			<content:encoded><![CDATA[<h4 style="font-size: 10pt">
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">In some areas they are different networks in the same building, we need a DHCP server to provide Ip address for the computers in this different networks. It is possible to configure DHCP server with multiple range of ip address.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">Configuration  Example</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"><br />
</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"> </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">In the working example configuration shown below, the DHCP server host is only connected to the 192.168.0.0/24 IP subnet. DHCP clients in the ethernet network segment using a 192.168.2.0/24 IP subnet will be served IP configuration leases in the 192.168.2.100 &#8211; 192.168.2.200 range because the requests are relayed by the 192.168.2.1 DHCP Relay Agent (this DHCP Relay is assumed to already be present on the 192.168.2.0/24 subnet and configured to relay DHCP messages for this DHCP server).</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"> </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">Most significantly, a host previously connected to the 192.168.0.0/24 network, but later moved to the 192.168.2.0/24 network segment, will be forced to obtain a new IP configuration lease in the 192.168.2.100 &#8211; 192.168.2.200 range, so that it can function correctly on this separate network and IP subnet.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"><br />
</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"> </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">Example /etc/dhcpd.conf </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"><br />
</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"> </span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">ddns-update-style none;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">default-lease-time 3600;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">max-lease-time 7200;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">authoritative;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">log-facility local5;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">subnet 192.168.0.0 netmask 255.255.255.0 {</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">range 192.168.0.100 192.168.0.200;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">option domain-name-servers 192.168.0.2;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">option routers 192.168.0.1;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">}</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">subnet 192.168.2.0 netmask 255.255.255.0 {</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">range 192.168.2.100 192.168.2.200;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">option domain-name-servers 192.168.2.2;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">option routers 192.168.2.1;</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">}</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">Configure the DHCP Relay Agent</span></div>
<div style="margin-top: 0px;margin-bottom: 0px">
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">The DHCP Relay Agent (dhcrelay) allows for the relay of DHCP and BOOTP requests from a subnet with no DHCP server on it to one or more DHCP servers on other subnets.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">When a DHCP client requests information, the DHCP Relay Agent forwards the request to the list of DHCP servers specified when the DHCP Relay Agent is started. When a DHCP server returns a reply, the reply is broadcast or unicast on the network that sent the original request.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">The DHCP Relay Agent listens for DHCP requests on all interfaces unless the interfaces are specified in /etc/sysconfig/dhcrelay with the INTERFACES directive.</span></div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal">To start the DHCP Relay Agent, use the command service dhcrelay start</span></div>
</div>
<div style="margin-top: 0px;margin-bottom: 0px"><span style="font-weight: normal"><br />
</span></div>
<div>
<div style="width: 1px;height: 1px">The DHCP Relay Agent (dhcrelay) allows for the relay of DHCP and BOOTP requests from a subnet with no DHCP server on it to one or more DHCP servers on other subnets.</div>
<div style="width: 1px;height: 1px">When a DHCP client requests information, the DHCP Relay Agent forwards the request to the list of DHCP servers specified when the DHCP Relay Agent is started. When a DHCP server returns a reply, the reply is broadcast or unicast on the network that sent the original request.</div>
<div style="width: 1px;height: 1px">The DHCP Relay Agent listens for DHCP requests on all interfaces unless the interfaces are specified in /etc/sysconfig/dhcrelay with the INTERFACES directive.</div>
<div style="width: 1px;height: 1px"></div>
</div>
</h4>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/dhcp-server-provides-multiple-range-of-ips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Types of Aliases Can Used on mail service</title>
		<link>http://linuxbuddies.com/2009/09/10/types-of-aliases-can-used-on-mail-service/</link>
		<comments>http://linuxbuddies.com/2009/09/10/types-of-aliases-can-used-on-mail-service/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 06:45:11 +0000</pubDate>
		<dc:creator>Eldo</dc:creator>
				<category><![CDATA[Core Linux]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=352</guid>
		<description><![CDATA[In mail service we can use alias function to forward the mails  coming to a mail id to a another mail address, In some cases the destination mail address may be one for more. Basically they are 5 different types of alias methods which can be used to forward the ...]]></description>
			<content:encoded><![CDATA[<p>In mail service we can use alias function to forward the mails  coming to a mail id to a another mail address, In some cases the destination mail address may be one for more. Basically they are 5 different types of alias methods which can be used to forward the mails.</p>
<p>The 5 types are</p>
<p>1. one to one</p>
<p>2. one to many</p>
<p>3. Include function</p>
<p>4. File function</p>
<p>5. Pipe Function</p>
<p><strong><span style="text-decoration: underline">One to One </span></strong></p>
<p>This is the common forward method used  in the mail service, in this method mail coming to user inbox is forward to a another user.</p>
<p>Ex: If we need to forward a user mail to another user</p>
<p>eldo@linuxbuddies.com: riyesh@linuxbuddies.com</p>
<p>By adding this entry in /etc/aliases  the mail coming to eldo is forwarded to riyesh</p>
<p><strong><span style="text-decoration: underline">One to Many</span></strong></p>
<p>In the previous method we seen that the incoming mail is forwarded to a another single mail id, some cases we need to add more users id at the receivers area.</p>
<p>Ex: If  Eldo and Riyesh were in the admin group, and they also need the mails coming to the admin@linuxbuddies.com in that situation we can use the followwing entry in /etc/aliases</p>
<p>admin@linuxbuddies.com: eldo@linuxbuddies.com, riyesh@linuxbuddies.com</p>
<p><strong><span style="text-decoration: underline">Include Function</span></strong></p>
<p>Using the one to many method we can add multiple mail id&#8217;s at the destination area, but there areas this method are not recommended in areas like mailing list, if they are ten thousand users in receivers section we cannot one to many function because it is diffcult to manage that number of users. In include function we include a file which contains the users</p>
<p>Ex: If maillinglist@linuxbuddies.com contains users like eldo,riyesh,arun,philip&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p>For this need create a file</p>
<p>vi /etc/postfix/maillinglist then add mail id&#8217;s in that file, one id per line</p>
<p>then add the entry in /etc/aliases</p>
<p>maillinglist@linuxbuddies.com:  :include: /etc/postfix/maillinglist</p>
<p><strong><span style="text-decoration: underline">File Function</span></strong></p>
<p>In all mail systems we make particular mail id to capture the abuse mails, if we need to store the mails coming to abuse mail id.  In that case we can use the file function, by this method the mails coming for the abuse id is appened to a file and can be used for later reference in need.</p>
<p>Ex: create a file /var/log/abusemaillog</p>
<p>make the following entry in /etc/aliases</p>
<p>abuse@linuxbuddies.com:  /var/log/abusemaillog</p>
<p><strong><span style="text-decoration: underline">Pipes Function</span></strong></p>
<p>They are situations that we need to run a script in server only on particular times, for that we can use pipe function for that. We need to create a particular mail id for that, when ever a mail for id comes the script will get executed. We can use perl or shell script for this.</p>
<p>Ex: If there is alert program on the server, when ever a mail for alert@linuxbuddies.com comes the alert binary get executed.</p>
<p>for this need, add like this on /etc/aliases</p>
<p>alert@linuxbuddies.com:  |/usr/local/bin/alert</p>
<div style="width: 1px;height: 1px">Venue Details:</div>
<div style="width: 1px;height: 1px">Survey #13/1, KB halli ,</div>
<div style="width: 1px;height: 1px">Varthur Hoobli,</div>
<div style="width: 1px;height: 1px">Outer ring road,</div>
<div style="width: 1px;height: 1px">Marathahalli</div>
<div style="width: 1px;height: 1px">Bangalore &#8211; 87</div>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2009/09/10/types-of-aliases-can-used-on-mail-service/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
