<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Linux Admin Blog</title>
	<atom:link href="http://sanjaybdalal.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sanjaybdalal.wordpress.com</link>
	<description>System Administration, Linux, Solaris, Backup, Networking, Security, Mysql, Script, Tips &#38; Tricks</description>
	<lastBuildDate>Fri, 23 Oct 2009 13:49:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='sanjaybdalal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/140632fcb59fd6667485726d2fac7e8f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Linux Admin Blog</title>
		<link>http://sanjaybdalal.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sanjaybdalal.wordpress.com/osd.xml" title="Linux Admin Blog" />
		<item>
		<title>Call to undefined function: mysql_connect()</title>
		<link>http://sanjaybdalal.wordpress.com/2009/10/23/call-to-undefined-function-mysql_connect/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/10/23/call-to-undefined-function-mysql_connect/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 13:49:04 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[Problems & Solutions]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/?p=300</guid>
		<description><![CDATA[Solutions:
Solution 1)   Remove php5-mysql with “apt-get remove php5-mysql”  and install it again or
Solution 2)   Check your php.ini file to ensure it’s including the mysql.so library (extension=mysql.so)  or
Solution 3)   Type “dpkg-reconfigure php5-mysql” (For ubuntu and debian users)
Posted in Problems &#38; Solutions       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=300&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Solutions:</strong></p>
<p>Solution 1)   Remove php5-mysql with “apt-get remove php5-mysql”  and install it again or</p>
<p>Solution 2)   Check your php.ini file to ensure it’s including the mysql.so library (extension=mysql.so)  or</p>
<p>Solution 3)   Type “dpkg-reconfigure php5-mysql” (For ubuntu and debian users)</p>
Posted in Problems &amp; Solutions  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/300/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=300&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/10/23/call-to-undefined-function-mysql_connect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>
	</item>
		<item>
		<title>Solaris and Linux Runlevel</title>
		<link>http://sanjaybdalal.wordpress.com/2009/09/30/solaris-linux-runlevel/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/09/30/solaris-linux-runlevel/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 06:43:42 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[Unix/Solaris]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/?p=296</guid>
		<description><![CDATA[Default Linux Run Level: Total 7 Run Level
RunLevel 0: Halt System &#8211; To shutdown the system
RunLevel 1: Single user mode
RunLevel 2: Basic multi user mode without NFS
RunLevel 3: Full multi user mode (text based)
RunLevel 4: unused
RunLevel 5: Multi user mode with Graphical User Interface
RunLevel 6: Reboot System
Default Solaris Run Level: Total 8 Run Level
RunLevel S: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=296&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Default Linux Run Level: Total 7 Run Level</strong></p>
<p>RunLevel 0: Halt System &#8211; To shutdown the system<br />
RunLevel 1: Single user mode<br />
RunLevel 2: Basic multi user mode without NFS<br />
RunLevel 3: Full multi user mode (text based)<br />
RunLevel 4: unused<br />
RunLevel 5: Multi user mode with Graphical User Interface<br />
RunLevel 6: Reboot System</p>
<p><strong>Default Solaris Run Level: Total 8 Run Level</strong></p>
<p>RunLevel S: Single user state (useful for recovery)</p>
<p>RunLevel 0: Access Sun Firmware (ok&gt; prompt)</p>
<p>RunLevel 1: System administrator mode</p>
<p>RunLevel 2: Multi-user w/o NFS</p>
<p>RunLevel 3: Multi-user with NFS</p>
<p>RunLevel 4: Unused</p>
<p>RunLevel 5: Completely shutdown the host (like performing a power-off)</p>
<p>RunLevel 6: Reboot but depend upon initdefault entry in /etc/inittab</p>
Posted in Unix/Solaris  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/296/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=296&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/09/30/solaris-linux-runlevel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>
	</item>
		<item>
		<title>Update system</title>
		<link>http://sanjaybdalal.wordpress.com/2009/09/29/update-system/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/09/29/update-system/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 11:51:16 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[Update system]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/?p=293</guid>
		<description><![CDATA[
Posted in Update system       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=293&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignnone size-full wp-image-294" title="update" src="http://sanjaybdalal.files.wordpress.com/2009/09/update.jpg?w=515&#038;h=29" alt="update" width="515" height="29" /></p>
Posted in Update system  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/293/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/293/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/293/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=293&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/09/29/update-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/update.jpg" medium="image">
			<media:title type="html">update</media:title>
		</media:content>
	</item>
		<item>
		<title>Configure Services in CentOs5/RHEL5</title>
		<link>http://sanjaybdalal.wordpress.com/2009/09/29/configure-services-in-centos5rhel5/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/09/29/configure-services-in-centos5rhel5/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 10:45:45 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[Configure Services]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/?p=279</guid>
		<description><![CDATA[1) List All services

2)  List Running services at Runlevel 3

3) Start service

4)      Stop service

5)   Start service on different RunLevel

6)  Restart services

7)  Add services

8 ) Remove Services

 
Posted in Configure Services       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=279&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>1) </strong><strong>List All services</strong></p>
<p><strong><img class="alignnone size-full wp-image-280" title="listservices" src="http://sanjaybdalal.files.wordpress.com/2009/09/listservices.jpg?w=515&#038;h=34" alt="listservices" width="515" height="34" /></strong></p>
<p><strong>2)  List Running services at Runlevel 3</strong></p>
<p><strong><img class="alignnone size-full wp-image-281" title="listservices34" src="http://sanjaybdalal.files.wordpress.com/2009/09/listservices34.jpg?w=516&#038;h=34" alt="listservices34" width="516" height="34" /></strong></p>
<p><strong>3) Start service</strong></p>
<p><strong><img class="alignnone size-full wp-image-282" title="startservices" src="http://sanjaybdalal.files.wordpress.com/2009/09/startservices.jpg?w=521&#038;h=98" alt="startservices" width="521" height="98" /></strong></p>
<p><strong>4)      Stop service</strong></p>
<p><strong><img class="alignnone size-full wp-image-283" title="stopservice" src="http://sanjaybdalal.files.wordpress.com/2009/09/stopservice.jpg?w=522&#038;h=90" alt="stopservice" width="522" height="90" /></strong></p>
<p><strong>5)   Start service on different RunLevel</strong></p>
<p><strong><img class="alignnone size-full wp-image-284" title="stopservice" src="http://sanjaybdalal.files.wordpress.com/2009/09/stopservice1.jpg?w=522&#038;h=90" alt="stopservice" width="522" height="90" /></strong></p>
<p><strong>6)  Restart services</strong></p>
<p><strong><img class="alignnone size-full wp-image-285" title="restartservice" src="http://sanjaybdalal.files.wordpress.com/2009/09/restartservice.jpg?w=509&#038;h=30" alt="restartservice" width="509" height="30" /></strong></p>
<p><strong>7)  Add services</strong></p>
<p><strong><img class="alignnone size-full wp-image-286" title="addservice" src="http://sanjaybdalal.files.wordpress.com/2009/09/addservice.jpg?w=514&#038;h=89" alt="addservice" width="514" height="89" /></strong></p>
<p><strong>8 ) Remove Services</strong></p>
<p><strong><img class="alignnone size-full wp-image-290" title="deleteservice" src="http://sanjaybdalal.files.wordpress.com/2009/09/deleteservice1.jpg?w=514&#038;h=90" alt="deleteservice" width="514" height="90" /></strong></p>
<p><strong> </strong></p>
Posted in Configure Services  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=279&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/09/29/configure-services-in-centos5rhel5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/listservices.jpg" medium="image">
			<media:title type="html">listservices</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/listservices34.jpg" medium="image">
			<media:title type="html">listservices34</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/startservices.jpg" medium="image">
			<media:title type="html">startservices</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/stopservice.jpg" medium="image">
			<media:title type="html">stopservice</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/stopservice1.jpg" medium="image">
			<media:title type="html">stopservice</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/restartservice.jpg" medium="image">
			<media:title type="html">restartservice</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/addservice.jpg" medium="image">
			<media:title type="html">addservice</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/deleteservice1.jpg" medium="image">
			<media:title type="html">deleteservice</media:title>
		</media:content>
	</item>
		<item>
		<title>CentOS5/RHEL5 User Administration</title>
		<link>http://sanjaybdalal.wordpress.com/2009/09/29/user-administration/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/09/29/user-administration/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 05:17:02 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[User Administration]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/?p=250</guid>
		<description><![CDATA[1)	Add User

2)      Delete user

3)      Modify user

4) Add Group

 
5) Delete group

6) Modify group

7) Add User to Group
Use useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. Syntax:
Syntax:
useradd -G {group-name1},{group-name2} username (for secondary group)
 useradd -g {group-name} username (for primary group)

 
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=250&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>1)	Add User</strong></p>
<p><strong><img class="alignnone size-full wp-image-262" title="Useradd" src="http://sanjaybdalal.files.wordpress.com/2009/09/useradd2.jpg?w=585&#038;h=194" alt="Useradd" width="585" height="194" /></strong></p>
<p><strong>2)      Delete user</strong></p>
<p><strong><img class="alignnone size-full wp-image-263" title="Userdel" src="http://sanjaybdalal.files.wordpress.com/2009/09/userdel2.jpg?w=584&#038;h=123" alt="Userdel" width="584" height="123" /></strong></p>
<p><strong>3)      Modify user</strong></p>
<p><strong><img class="alignnone size-full wp-image-266" title="Usermod" src="http://sanjaybdalal.files.wordpress.com/2009/09/usermod2.jpg?w=585&#038;h=209" alt="Usermod" width="585" height="209" /></strong></p>
<p><strong>4) </strong><strong>Add Group</strong></p>
<p><strong><img class="alignnone size-full wp-image-269" title="gpasswd" src="http://sanjaybdalal.files.wordpress.com/2009/09/gpasswd.jpg?w=596&#038;h=193" alt="gpasswd" width="596" height="193" /></strong></p>
<p><strong> </strong></p>
<p><strong>5) Delete group</strong></p>
<p><strong><img class="alignnone size-full wp-image-268" title="groupdel" src="http://sanjaybdalal.files.wordpress.com/2009/09/groupdel.jpg?w=589&#038;h=37" alt="groupdel" width="589" height="37" /></strong></p>
<p><strong>6) </strong><strong>Modify group</strong></p>
<p><strong><img class="alignnone size-full wp-image-270" title="groupmod" src="http://sanjaybdalal.files.wordpress.com/2009/09/groupmod.jpg?w=587&#038;h=69" alt="groupmod" width="587" height="69" /></strong></p>
<p><strong>7) </strong><strong>Add User to Group</strong></p>
<p>Use useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. Syntax:</p>
<p><strong>Syntax</strong>:</p>
<p>useradd -G {group-name1},{group-name2} username (for secondary group)</p>
<p><strong> </strong>useradd -g {group-name} username (for primary group)</p>
<p><img class="alignnone size-full wp-image-275" title="useradd1" src="http://sanjaybdalal.files.wordpress.com/2009/09/useradd14.jpg?w=574&#038;h=155" alt="useradd1" width="574" height="155" /></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
Posted in User Administration  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/250/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/250/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=250&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/09/29/user-administration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/useradd2.jpg" medium="image">
			<media:title type="html">Useradd</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/userdel2.jpg" medium="image">
			<media:title type="html">Userdel</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/usermod2.jpg" medium="image">
			<media:title type="html">Usermod</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/gpasswd.jpg" medium="image">
			<media:title type="html">gpasswd</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/groupdel.jpg" medium="image">
			<media:title type="html">groupdel</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/groupmod.jpg" medium="image">
			<media:title type="html">groupmod</media:title>
		</media:content>

		<media:content url="http://sanjaybdalal.files.wordpress.com/2009/09/useradd14.jpg" medium="image">
			<media:title type="html">useradd1</media:title>
		</media:content>
	</item>
		<item>
		<title>Automated Installation of DenyHost on RedHat/Fedora</title>
		<link>http://sanjaybdalal.wordpress.com/2009/09/15/automated-installation-of-denyhost-on-redhatfedora/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/09/15/automated-installation-of-denyhost-on-redhatfedora/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 09:01:17 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[Denyhost]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/?p=244</guid>
		<description><![CDATA[#Script
#!/bin/bash
# This script installs Deny Host on RedHat(RHEL) or Fedora.
################################################################################
# This script comes with no warranty or guarantee. Please review the script
# before you run it to ensure that it will not cause adverse effects on your
# system.
#
# If you have any questions or comments, please e-mail: sanjaydalal4u@gmail.com
################################################################################
sudo echo
if [ -f /etc/init.d/denyhosts ]; then
echo Removing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=244&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>#Script</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">#!/bin/bash</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;"># This script installs Deny Host on RedHat(RHEL) or Fedora.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">################################################################################</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;"># This script comes with no warranty or guarantee. Please review the script</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;"># before you run it to ensure that it will not cause adverse effects on your</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;"># system.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">#</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;"># If you have any questions or comments, please e-mail: sanjaydalal4u@gmail.com</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">################################################################################</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">sudo echo</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">if [ -f /etc/init.d/denyhosts ]; then</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo Removing existing init scripts</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">sudo /etc/init.d/denyhosts stop</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">sudo rm -rf /etc/init.d/denyhosts</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">sudo chkconfig &#8211;remove denyhosts</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo &#8216;*********************&#8217;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">fi</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">if [ -d /usr/share/denyhosts/ ]; then</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo Removing existing installation</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">sudo rm -rf /usr/share/denyhosts</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo &#8216;*********************&#8217;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">fi</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo Installing &#8216;python&#8217; and dependencies.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">sudo yum -y install python</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo &#8216;*********************&#8217;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">cd /root</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo Downloading DenyHost</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">wget http://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz?use_mirror=biznetnetworks</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo &#8216;*********************&#8217;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">echo Unpacking DenyHost</div>
<p>#!/bin/bash</p>
<p># This script installs Deny Host on RedHat(RHEL) or Fedora.</p>
<p>################################################################################</p>
<p># This script comes with no warranty or guarantee. Please review the script</p>
<p># before you run it to ensure that it will not cause adverse effects on your</p>
<p># system.</p>
<p># If you have any questions or comments, please e-mail: sanjaydalal4u@gmail.com</p>
<p>################################################################################</p>
<p>sudo echo</p>
<p>if [ -f /etc/init.d/denyhosts ]; then</p>
<p>echo Removing existing init scripts</p>
<p>sudo /etc/init.d/denyhosts stop</p>
<p>sudo rm -rf /etc/init.d/denyhosts</p>
<p>sudo chkconfig &#8211;remove denyhosts</p>
<p>echo &#8216;*********************&#8217;</p>
<p>echo</p>
<p>fi</p>
<p>if [ -d /usr/share/denyhosts/ ]; then</p>
<p>echo Removing existing installation</p>
<p>sudo rm -rf /usr/share/denyhosts</p>
<p>echo &#8216;*********************&#8217;</p>
<p>echo</p>
<p>fi</p>
<p>echo Installing &#8216;python&#8217; and dependencies.</p>
<p>sudo yum -y install python</p>
<p>echo &#8216;*********************&#8217;</p>
<p>echo</p>
<p>cd /root</p>
<p>echo Downloading DenyHost</p>
<p>wget http://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz?use_mirror=biznetnetworks</p>
<p>echo &#8216;*********************&#8217;</p>
<p>echo</p>
<p>echo Unpacking DenyHost</p>
<div>
<div>tar -xzf DenyHosts-2.6.tar.gz</div>
<div></div>
<div></div>
<div>cd /root/DenyHosts-2.6</div>
<div>echo &#8216;*********************&#8217;</div>
<div>echo</div>
<div></div>
<div>echo Installing DenyHost</div>
<div>sudo python setup.py install</div>
<div>echo &#8216;*********************&#8217;</div>
<div>echo</div>
<div></div>
<div>cd /usr/share/denyhosts</div>
<div></div>
<div>echo Configuring DenyHost</div>
<div>sudo cp denyhosts.cfg-dist denyhosts.cfg</div>
<div>sudo sed -i.bak &#8217;s/^\s*\(SECURE_LOG\s*=.*\)$/#\1/&#8217; denyhosts.cfg</div>
<div>sudo sed -i.bak &#8217;s/^\s*#\s*SECURE_LOG\s*=\s*\/var\/log\/secure/SECURE_LOG = \/var\/log\/secure/&#8217; denyhosts.cfg</div>
<div>sudo sed -i.bak &#8217;s/^\s*\(LOCK_FILE\s*=.*\)$/#\1/&#8217; denyhosts.cfg</div>
<div>sudo sed -i.bak &#8217;s/^\s*#\s*LOCK_FILE\s*=\s*\/var\/run\/denyhosts.pid/LOCK_FILE = \/var\/run\/denyhosts.pid/&#8217; denyhosts.cfg</div>
<div>sudo sed -i.bak &#8217;s/^\s*\(BLOCK_SERVICE\s*=.*\)$/#\1/&#8217; denyhosts.cfg</div>
<div>sudo sed -i.bak &#8217;s/^\s*#\s*BLOCK_SERVICE\s*=\s*ALL/BLOCK_SERVICE  = ALL/&#8217; denyhosts.cfg</div>
<div>echo &#8216;*********************&#8217;</div>
<div>echo</div>
<div></div>
<div>echo Configuring executable</div>
<div>sudo cp daemon-control-dist daemon-control</div>
<div>sudo sed -i.bak &#8217;s/^\(\s*DENYHOSTS_BIN\s*=\s\).*$/\1&#8243;\/usr\/bin\/denyhosts.py&#8221;/&#8217; daemon-control</div>
<div>sudo sed -i.bak &#8217;s/^\(\s*DENYHOSTS_LOCK\s*=\s\).*$/\1&#8243;\/var\/run\/denyhosts.pid&#8221;/&#8217; daemon-control</div>
<div>sudo sed -i.bak &#8217;s/^\(\s*DENYHOSTS_CFG\s*=\s\).*$/\1&#8243;\/usr\/share\/denyhosts\/denyhosts.cfg&#8221;/&#8217; daemon-control</div>
<div>sudo chown root daemon-control</div>
<div>sudo chmod 700 daemon-control</div>
<div>echo &#8216;*********************&#8217;</div>
<div>echo</div>
<div></div>
<div>echo Adding ddclient to rc scripts</div>
<div>cd /etc/init.d</div>
<div>sudo ln -s /usr/share/denyhosts/daemon-control denyhosts</div>
<div>sudo chkconfig &#8211;add denyhosts</div>
<div>sudo chkconfig &#8211;level 35 denyhosts on</div>
<div>echo &#8216;*********************&#8217;</div>
<div>echo</div>
<div></div>
</div>
Posted in Denyhost  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/244/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=244&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/09/15/automated-installation-of-denyhost-on-redhatfedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Open 7zip Files Under Ubuntu</title>
		<link>http://sanjaybdalal.wordpress.com/2009/08/01/how-to-open-7zip-files-under-ubuntu/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/08/01/how-to-open-7zip-files-under-ubuntu/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 05:05:57 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[Linux Commands]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/?p=236</guid>
		<description><![CDATA[Step 1 : Install application
#sudo apt-get install p7zip
Step 2 : Exectute this command
#p7zip -d filename.7z
Posted in Linux Commands       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=236&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Step 1 : Install application</strong></p>
<p>#sudo apt-get install p7zip</p>
<p><strong>Step 2 : Exectute this command</strong></p>
<p>#p7zip -d filename.7z<strong></strong></p>
Posted in Linux Commands  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=236&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/08/01/how-to-open-7zip-files-under-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>
	</item>
		<item>
		<title>Setup SAMBA server on Ubuntu 9.04</title>
		<link>http://sanjaybdalal.wordpress.com/2009/07/27/setup-samba-server-on-ubuntu-9-04/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/07/27/setup-samba-server-on-ubuntu-9-04/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 06:44:19 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[Samba server]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/2009/07/27/setup-samba-server-on-ubuntu-9-04/</guid>
		<description><![CDATA[Step 1: Installation
#apt-get install samba
Step 2: Configuration
Configuration file : /etc/samba/smb.conf

Edit below section

Workgroup = EXAMPLE
…………
Security = user

Create a new section at the bottom of the file /etc/samba/smb.conf

[Samba Share]
Comment= Samba  File Server Share
Path=/path to directory
Browsable = yes
Guest ok = yes
Read only = no
Create mask = 0755
Step 3: Create directory and change permissions
#mkdir /path to directoy
#chown  -R nobody:nobody [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=235&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Step 1: Installation</strong></p>
<p>#apt-get install samba</p>
<p><strong>Step 2: Configuration</strong></p>
<p>Configuration file : /etc/samba/smb.conf</p>
<ul>
<li>Edit below section</li>
</ul>
<p>Workgroup = EXAMPLE</p>
<p>…………</p>
<p>Security = user</p>
<ul>
<li>Create a new section at the bottom of the file /etc/samba/smb.conf</li>
</ul>
<p>[Samba Share]</p>
<p>Comment= Samba  File Server Share</p>
<p>Path=/path to directory</p>
<p>Browsable = yes</p>
<p>Guest ok = yes</p>
<p>Read only = no</p>
<p>Create mask = 0755</p>
<p><strong>Step 3: Create directory and change permissions</strong></p>
<p>#mkdir /path to directoy</p>
<p>#chown  -R nobody:nobody /path to directory</p>
<p>Step 4 : Restart Samba service</p>
<p>#/etc/init.d/samba restart</p>
<p>Enjoy!!!!!!!!!!!!</p>
Posted in Samba server  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=235&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/07/27/setup-samba-server-on-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>
	</item>
		<item>
		<title>Open ports using IPTABLES</title>
		<link>http://sanjaybdalal.wordpress.com/2009/07/09/open-ports-using-iptables/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/07/09/open-ports-using-iptables/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 12:23:52 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[Iptables]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/?p=232</guid>
		<description><![CDATA[If you want your machine to respond to requests initiated from elsewhere on the internet you need to open the required ports. You need to know below details first:
1. Service name you want to open up
2. Is it a tcp or udp service?
3. Port number(s) uses by service?
Example:
To enable ssh access to your box from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=232&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="line-height:14.25pt;background:white;"><span style="font-family:&quot;color:black;">If you want your machine to respond to requests initiated from elsewhere on the </span><span><span style="font-family:&quot;">internet</span></span><span style="font-family:&quot;color:black;"> you need to open the required ports. You need to know below details first:</span></p>
<p style="line-height:14.25pt;background:white;"><span style="font-family:&quot;color:black;">1. Service name you want to open up<br />
2. Is it a tcp or udp service?<br />
3. Port number(s) uses by service?</span></p>
<p style="line-height:14.25pt;background:white;"><span style="font-family:&quot;color:black;">Example:</span></p>
<p style="line-height:14.25pt;background:white;"><span style="font-family:&quot;color:black;">To enable ssh access to your box from anywhere on for Class A networks, you could use something like</span></p>
<p style="line-height:14.25pt;background:white;"><span style="font-family:&quot;color:black;">iptables -A allowed -p tcp &#8211;dport 22 -s 10.2.0.0/16 -j ACCEPT<br />
iptables -A allowed -p udp &#8211;dport 22 -s 10.2.0.0/16 -j ACCEPT</span></p>
<p style="line-height:14.25pt;background:white;"><span style="font-family:&quot;color:black;">iptables -A allowed -p tcp &#8211;dport 22 -s 10.8.0.0/16 -j ACCEPT<br />
iptables -A allowed -p udp &#8211;dport 22 -s 10.8.0.0/16 -j ACCEPT</span></p>
<p style="line-height:14.25pt;background:white;"><span style="font-family:&quot;color:black;">This allows both udp and tcp traffic from either of the two class A networks to access port 22 on your machine. </span></p>
Posted in Iptables, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/232/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=232&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/07/09/open-ports-using-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>
	</item>
		<item>
		<title>Work with tcpwrappers hosts.deny and hosts.allow</title>
		<link>http://sanjaybdalal.wordpress.com/2009/07/09/work-with-tcpwrappers-hosts-deny-and-hosts-allow/</link>
		<comments>http://sanjaybdalal.wordpress.com/2009/07/09/work-with-tcpwrappers-hosts-deny-and-hosts-allow/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 12:05:52 +0000</pubDate>
		<dc:creator>sanjaydalal4u</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://sanjaybdalal.wordpress.com/?p=230</guid>
		<description><![CDATA[You can use tcpwrappers to Block user,ip,daemon from outside or your inside newwork. For allow use host.allow file and to block use host.deny file.
Step 1. Use your favorite editor like vi.
 Step 2. Type vi /etc/hosts.deny
Step 3. At the bottom line just type “ALL:ALL:deny” to restricted all of daemon process
Step 4. Save it.
Step 5. Open “/etc/hosts.allow” [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=230&subd=sanjaybdalal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="line-height:14.25pt;background:white;">You can use tcpwrappers to Block user,ip,daemon from outside or your inside newwork. For allow use host.allow file and to block use host.deny file.</p>
<p style="line-height:14.25pt;background:white;"><span style="font-family:Verdana;">Step 1. Use your favorite editor like vi.</span></p>
<p style="line-height:14.25pt;background:white;"><span style="font-family:&quot;color:black;"> Step 2. Type vi /etc/hosts.deny<br />
Step 3. At the bottom line just type “ALL:ALL:deny” to restricted all of daemon process<br />
Step 4. Save it.<br />
Step 5. Open “/etc/hosts.allow” with vi editor<br />
Step 6. At the buttom line “ALL <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> some ip that you allow):allow” to allow anything from my IP address<br />
Step 7. Save it.</span></p>
Posted in Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanjaybdalal.wordpress.com/230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanjaybdalal.wordpress.com/230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanjaybdalal.wordpress.com/230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanjaybdalal.wordpress.com/230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanjaybdalal.wordpress.com/230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanjaybdalal.wordpress.com/230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanjaybdalal.wordpress.com/230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanjaybdalal.wordpress.com/230/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanjaybdalal.wordpress.com/230/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanjaybdalal.wordpress.com/230/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanjaybdalal.wordpress.com&blog=7547485&post=230&subd=sanjaybdalal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sanjaybdalal.wordpress.com/2009/07/09/work-with-tcpwrappers-hosts-deny-and-hosts-allow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf23368a2c69ab0ddab7c5526ff7cdeb?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sanju</media:title>
		</media:content>
	</item>
	</channel>
</rss>