<?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>RedHatVN Network &#187; security</title>
	<atom:link href="http://redhatvn.net/category/security/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Tue, 07 Sep 2010 08:08:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to extract RPM or DEB packages</title>
		<link>http://redhatvn.net/how-to-extract-rpm-or-deb-packages</link>
		<comments>http://redhatvn.net/how-to-extract-rpm-or-deb-packages#comments</comments>
		<pubDate>Thu, 22 Apr 2010 10:08:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1172</guid>
		<description><![CDATA[RPM and DEB packages are both containers for other files. An RPM is some sort of cpio archive. On the other hand, a DEB file is a pure ar archive. So, it should be possible to unpack their contents using standard archiving tools, regardless of your distribution’s package format. Under normal conditions, you should use [...]]]></description>
			<content:encoded><![CDATA[<p>RPM and DEB packages are both containers for other files. An RPM is  some sort of <strong>cpio</strong> archive. On the other hand, a DEB  file is a pure <strong>ar</strong> archive. So, it should be possible to  unpack their contents using standard archiving tools, regardless of  your distribution’s package format. Under normal conditions, you should  use your distribution’s standard package manager, <strong>rpm</strong> or <strong>dpkg</strong> and their frontends, to manage those files.  But, if you need to be more generic, here is how to do it.<br />
<span id="more-1172"></span></p>
<h4>RPM</h4>
<p>For RPMs you need two command line utilities, <strong>rpm2cpio</strong> and <strong>cpio</strong>. Extracting the contents of the RPM package  is an <em>one-step</em> process:<br />
<code>rpm2cpio mypackage.rpm | cpio -vid</code><br />
If you just need to list the contents of the package without  extracting them, use the following:<br />
<code>rpm2cpio mypackage.rpm | cpio -vt</code><br />
The <strong>-v</strong> option is used in order to get verbose output  to the stdout. If you don’t need it, you can safely omit this switch.  For more information about the <code>cpio</code> options, please refer  to the <code>cpio(1)</code> manual page.</p>
<h4>DEB</h4>
<p>DEB files are <em>ar archives</em>, which contain three files:</p>
<ul>
<li>debian-binary</li>
<li>control.tar.gz</li>
<li>data.tar.gz</li>
</ul>
<p>As you might have already guessed, the needed archived files exist in  <code>data.tar.gz</code>. It is also obvious that unpacking this file  is a <em>two-step</em> process.</p>
<p>First, extract the aforementioned three files from the DEB file (<strong>ar</strong> archive):<br />
<code>tar vx mypackage.deb</code><br />
Then extract the contents of <code>data.tar.gz</code> using <strong>tar</strong>:<br />
<code>tar -xzvf data.tar.gz</code><br />
Or, if you just need to get a <em>listing</em> of the files:<br />
<code>tar -tzvf data.tar.gz</code><br />
Again the <strong>-v</strong> option in both <strong>ar</strong> and <strong>tar</strong> is used in order to get verbose output. It is safe not to use it. For  more information, read the man pages: <code>tar(1)</code> and <code>ar(1)</code>.</p>
<p><span style="text-decoration: line-through;">If anyone knows an <em>one-step process</em> to extract the  contents of the <code>data.tar.gz</code>, I’d be very interested in it!</span></p>
<p><strong>Update</strong></p>
<p><code>tar p mypackage.deb data.tar.gz | tar zx</code></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-extract-rpm-or-deb-packages/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create your own user-defined services Windows NT/2000/XP/2003</title>
		<link>http://redhatvn.net/create-your-own-user-defined-services-windows-nt2000xp2003</link>
		<comments>http://redhatvn.net/create-your-own-user-defined-services-windows-nt2000xp2003#comments</comments>
		<pubDate>Tue, 01 Jun 2010 04:11:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1203</guid>
		<description><![CDATA[The Windows NT/2000 Resource Kit provides two utilities that allow you to create a Windows user-defined service for Windows applications and some 16-bit applications (but not for batch files). Whats needed for Windows NT/2000: Instrsrv.exe installs and removes system services from Windows NT/2000 Srvany.exe allows any Windows application to run as a service. You can [...]]]></description>
			<content:encoded><![CDATA[<p>The Windows NT/2000 Resource Kit provides two utilities that allow you  to create a Windows user-defined service for Windows applications and  some 16-bit applications (but not for batch files).</p>
<p><strong><span id="more-1203"></span>Whats needed for Windows NT/2000</strong>:<br />
<strong>Instrsrv.exe</strong> installs and removes system services from Windows  NT/2000<br />
<strong>Srvany.exe</strong> allows any Windows application to run as a service.<br />
You can download both files here <a href="http://www.tacktech.com/download.cfm?file=microsoft/service/srvany.zip">srvany.zip</a></p>
<p>This zip includes three files. The two you need srvany.exe and  instsrv.exe to install the services and also srvany.wri which documents  everything you can do with the program.<br />
<strong>Note:</strong> Make sure the Services Manager is closed while running the  DOS commands.</p>
<hr />You will need to put these files in a directory called <strong>reskit</strong> At a MS-DOS command prompt(Start | Run | &#8220;cmd.exe&#8221;), type the following  command:<br />
&lt;path&gt;\reskit\INSTSRV.EXE &#8220;<em>Service Name</em>&#8221;  &lt;path&gt;\reskit\SRVANY.EXE<br />
This creates the service in the Services manager and the registry keys  to setup what program to run.</p>
<p><img src="http://www.tacktech.com/images/articles/197/addsrv.gif" alt="http:www.tacktech.com/" /></p>
<hr />Next open regedit.exe <strong>Start | run | regedit.exe</strong><br />
<strong>WARNING:</strong> Using Registry Editor incorrectly can cause serious  problems that may require you to reinstall your operating system.  Microsoft cannot guarantee that problems resulting from the incorrect  use of Registry Editor can be solved. Use Registry Editor at your own  risk.</p>
<p><img src="http://www.tacktech.com/images/articles/197/regedit.gif" alt="http:www.tacktech.com/" /></p>
<hr />Next navigate to this registry key.<br />
<strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<em>service name</em></strong></p>
<p><img src="http://www.tacktech.com/images/articles/197/key.gif" alt="http:www.tacktech.com/" /></p>
<hr />From the Edit menu, click Add Key and name it <strong>Parameters</strong><br />
Next from the Edit menu, click Add Value and type this information.<br />
<strong>Value Name: Application</strong><br />
<strong>Data Type : REG_SZ</strong><br />
<strong>String : &lt;path&gt;\&lt;application.ext&gt;</strong></p>
<p><img src="http://www.tacktech.com/images/articles/197/addkey.gif" alt="http:www.tacktech.com/" /></p>
<hr />Now you can start your service from the Service Manager</p>
<p><img src="http://www.tacktech.com/images/articles/197/srvmgr.gif" alt="http:www.tacktech.com/" /></p>
<hr />With this same program you can remove the service also. Just run this command from command prompt.<br />
<strong>&lt;path&gt;\reskit\INSTSRV.EXE <em>&#8220;Service Name&#8221;</em> REMOVE</strong></p>
<p><img src="http://www.tacktech.com/images/articles/197/remove.gif" alt="http:www.tacktech.com/" /></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/create-your-own-user-defined-services-windows-nt2000xp2003/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Recover Lost Data?</title>
		<link>http://redhatvn.net/how-to-recover-lost-data</link>
		<comments>http://redhatvn.net/how-to-recover-lost-data#comments</comments>
		<pubDate>Fri, 16 Apr 2010 09:12:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[recover data]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1166</guid>
		<description><![CDATA[We need data recovery tools on daily basis. Once we lose very sensitive data, we get desperate to retrieve them at any cost. Data recovery is very delicate job. The key is that once you lose your data in a particular hard drive, please, do not copy or install anything on it. Leave the drive [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.taragana.com/wp-content/uploads/2010/03/data-recovery310191219_std.jpg" alt="data-recovery310191219_std" width="260" height="211" /> We need data  recovery tools on daily basis. Once we lose very sensitive data, we get  desperate to retrieve them at any cost. Data recovery is very delicate  job. The key is that once you lose your data in a particular hard drive,  please, do not copy or install anything on it. Leave the drive intact.  Otherwise, you wouldn&#8217;t be able to recover data. Just make an image at a  different location of your hard drive where you lost your data and use  the data recovery tool on the image to recover data. There are quite a  few good <strong>open source</strong> data recovery tool available in the market  and <a href="http://memberwebs.com/stef/software/scrounge/"><strong>Scrounge  NTF</strong></a> is one of them. We are going to take a quick look of  the tool.</p>
<p><span id="more-1166"></span></p>
<p>Scrounge NTF is a data recovery program for <strong>NTFS </strong>file  systems. It reads each block of a hard disk and rebuilds the   filesystem tree on  another partition. You should have your partition  information stored somewhere in advance. In order to use Scrounge-ntfs,  you have to know start sector, end sector, cluster  size (size of one  block of data on a partition) and MFT ( Master File  Table). If you  don&#8217;t know the data, just type &#8216;scrounge-ntfs -l disk&#8217;. When you get  back the data, type &#8216;scrounge-ntfs -m 6291456 -c 8 /dev/hdd  206848  566964224′.This command will recover the data and put it at your root  directory. If you want the data in your particular directory, please,  use the command <code>'scrounge-ntfs -m 6291456 -c 8 -o /root/recover /dev/hdd  206848  566964224′</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-recover-lost-data/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Avira Antivir on Linux</title>
		<link>http://redhatvn.net/install-avira-antivir-on-linux</link>
		<comments>http://redhatvn.net/install-avira-antivir-on-linux#comments</comments>
		<pubDate>Wed, 14 Apr 2010 13:28:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[Antivirus]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1160</guid>
		<description><![CDATA[The Avira company offers a number of different solutions. Scan through their product overview to find out which solution is best for you.  But for this article we are looking at the Avira Antivir workstation solution for linux. In this article I will show you how to install and use this outstanding product. Before you [...]]]></description>
			<content:encoded><![CDATA[<p>The Avira company offers a number of different solutions. Scan  through their <a title="Avira product overview" href="http://www.avira.com/en/products/index.php" target="_blank">product  overview</a> to find out which solution is best for you.  But for this  article we are looking at the <a title="Avira antivirus for Linux" href="http://en.kioskea.net/telecharger/download-110-avira-antivir-personal-free-for-linux-freebsd-openbsd-solaris" target="_blank">Avira Antivir workstation solution for linux</a>. In  this article I will show you how to install and use this outstanding  product.<br />
<span id="more-1160"></span><br />
<strong>Before you begin</strong></p>
<p>There  is one pre-requisite for installation. If you want to use the real-time  scanner you have to have Dazuko installed. This is a fairly complex  installation which requires either building your own kernel or compiling  Dazuko against your kernel source. We will deal with this in a later  article, so skip the AvGuard installation for now.</p>
<p>Once this is  finished you are ready to install Antivir.</p>
<p><strong>Unpacking and  installing</strong></p>
<p>Hopefully you have already downloaded the  source from the link above (see Avira Antivir workstation solution for  Linux). Open up a terminal and change to the directory holding that  file.  The first step is to unpack the tar with the command:</p>
<ol>
<li><em>tar  xvzf antivir-workstation-pers.tar.gz</em></li>
<li>Once you’ve done that  change into the new created directory. If you do a listing of this  directory you will find an executable <em>install</em> script. This is  the way to install. Issue the command <em>sudo ./install </em>and enter  your sudo password.</li>
<li>Here are the steps you will have to walk  through:</li>
<li>View the license (space bar to view, Enter for  accepting).</li>
<li>Enter the path to your license key (the key will be <em>hbedv.key</em> that you need to purchase from the site).  For evaluation purposes just  hit Enter here.</li>
<li>Install the internet daemon. If you want to  install the auto updater, hit enter.</li>
<li>Create a link for  avupdater. (You will want this).</li>
<li>Would you like the update  daemon to start automatically? (You will want this).</li>
<li>Do you want  to install AvGuard (real-time scanner). For now we will skip this,  until I have addressed the installation of Dazuko. The installation of  Antivir can be rerun and AvGuarded added to it.</li>
<li>Configure  AntiVir updater. Hit enter to configure.</li>
<li>Would you like to be  notified about updates. This is up to you.</li>
<li>Would you like the  updater to log to  a custom file? You will want this.</li>
<li>Accept the  default location for the updater log.</li>
<li>How often should AntiVir  check for updates (the default is every 2 hours – you might change that  to once a day (d).</li>
<li>What time should updates be done. The default  is RANDOM.</li>
<li>Does this machine use a proxy server? y/n</li>
<li>Save  configuration settings? Hit Enter.</li>
<li>Would you like to apply the  configuration? Hit Enter.</li>
<li>Hit Enter to complete, but take note  of the common commands listed.</li>
</ol>
<p><strong>Usage</strong></p>
<p>Using  AntiVir is actually quite simple.  Here are some of the commands you  will want to know:</p>
<ul>
<li>Configure the updater: <em>/usr/lib/AntiVir/configantivir</em></li>
<li>Start  update daemon: <em>/usr/lib/AntiVir/avupdater start</em></li>
<li>Stop  update deamon: <em>/usr/lib/AntiVir/avupdater stop</em></li>
<li>Update  daemon status: <em>/usr/lib/AntiVir/avupdater status</em></li>
<li>Running  a manual, recursive scan: <em>antivir -s –update –scan-mode=all</em></li>
</ul>
<p>NOTE:  With only a trial license, the <em>–update</em> argument (used to check  for updated virus signatures) will not work. For more arguments to use  with the <em>antivir</em> command issue the command <em>antivir -h</em> (as you will not find a man page for this command).</p>
<p><strong>Final  thoughts</strong></p>
<p>Avira’s Antivir is a powerful tool for the fight  against viruses. And just because you are using a Linux workstation,  does not mean you should snub anti-virus solutions. You get files from  people that you pass on to others (others who may not be using Linux as  their workstation). You will want to make sure those files are  virus-free.</p>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "pub-5406364303442190";/* 300x250, created 2/27/09 */google_ad_slot = "1148508964";google_ad_width = 300;google_ad_height = 250;
// ]]&gt;</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/install-avira-antivir-on-linux/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How To Disable IPv6 in Red Hat Linux</title>
		<link>http://redhatvn.net/how-to-disable-ipv6-in-red-hat-linux</link>
		<comments>http://redhatvn.net/how-to-disable-ipv6-in-red-hat-linux#comments</comments>
		<pubDate>Thu, 08 Apr 2010 07:03:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1144</guid>
		<description><![CDATA[How To Disable IPv6 in Red Hat Linux Since it may be a while before I&#8217;m ready to use the IPv6 on my systems, I&#8217;ve been disabling IPv6 on most servers so far. And since there&#8217;s a particularly elegant way of doing this in Red Hat Linux, I think it&#8217;s worth sharing. How to confirm [...]]]></description>
			<content:encoded><![CDATA[<h1>How To Disable IPv6 in Red Hat Linux</h1>
<p>Since it may be a while before I&#8217;m ready to  use the <strong>IPv6 </strong>on my systems, I&#8217;ve been disabling IPv6 on  most servers so far. And since there&#8217;s a particularly elegant way of  doing this in Red Hat Linux, I think it&#8217;s worth sharing.<br />
<span id="more-1144"></span><br />
<h3>How to confirm if IPv6 is running on your system</h3>
<p><strong>IPv6 </strong>is implemented as a kernel module, so you can  use the <strong>lsmod </strong>command to confirm if it&#8217;s currently  running on your Red Hat system:<br />
<code>$ lsmod | grep ip</code></p>
<blockquote><p>ipv6                  410913  36</p></blockquote>
<p>If <strong>lsmod </strong>doesn&#8217;t return anything, it confirms that  your system isn&#8217;t running IPv6.</p>
<h3>Prevent IPv6 from getting started by modprobe</h3>
<p>As you probably know, modprobe command is used for probing modules  upon system boot. Probing simply means a module is loaded and an attempt  is made to start it up. With any luck, the module starts successfully  and its functionality becomes available to the Linux kernel.</p>
<p>For the boot stage, modprobe uses a  special config file which helps you control its behavior: <strong>/etc/modprobe.conf</strong>.  For now, let&#8217;s just concentrate on the <strong>IPv6</strong> task at  hand. To make sure modprobe doesn&#8217;t load the actual module next time  your OS reboots, add the following line to the top of the <strong>/etc/modprobe.con</strong>f  file (yes, you&#8217;re going to need root privileges for this):</p>
<blockquote><p>install ipv6 /bin/true</p></blockquote>
<p><strong>WHY THIS WORKS</strong>: just to quickly explain the line  above, here&#8217;s why we&#8217;re using the <strong>/bin/true</strong> command.  install is rule of the modprobe config file which overrides the standard  way of probing a module. Effectively, it tells modprobe to just run the  specified command for starting a module. In the line above, we&#8217;re  telling modprobe to use the <strong>/bin/true</strong> command for  probing the <strong>ipv6 </strong>module. And as you remember, <strong>/bin/true</strong> is a command which doesn&#8217;t do anything but still returns a successful  completion code – so in effect we&#8217;re doing nothing instead of loading  the <strong>ipv6 </strong>module, and we&#8217;re looking good while doing  this too.</p>
<p>Next, add the the following two lines to the same <strong>/etc/modprobe.conf</strong> file, and they will ensure that common aliases used for starting the <strong>IPv6 </strong>module are ignored by modprobe:</p>
<blockquote><p>alias net-pf-10 off<br />
alias ipv6 off</p></blockquote>
<p><strong>IMPORTANT</strong>: These change doesn&#8217;t immediately disable <strong>IPv6 </strong>on your system. Being a pretty important module, IPv6 isn&#8217;t  easy to disable on a live system, and so the easiest is to always follow  the changes above with a reboot.</p>
<h3>Make sure your IPv6 firewall is disabled</h3>
<p>The <strong>ip6tables </strong>service (<code>/etc/init.d/ip6tables</code> sciprt) is responsible for starting <strong>IPv6 </strong>firewall, and  so you probably want to disable it:<br />
<code># chkconfig ip6tables off</code><br />
and then confirm that it won&#8217;t be started next time you reboot or  switch to any runlevel:<br />
<code># chkconfig --list ip6tables</code></p>
<blockquote><p>ip6tables       0:off   1:off   2:off   3:off   4:off   5:off   6:off</p></blockquote>
<p>That&#8217;s it, there really is nothing else to disabling <strong>IPv6</strong>.  Let me know if you have any questions, otherwise I&#8217;ll talk to you soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-disable-ipv6-in-red-hat-linux/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->