<?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>Fnode Online &#187; UNIX</title>
	<atom:link href="http://www.fnode.com/category/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fnode.com</link>
	<description>A Network Systems &#38; Technology Blog</description>
	<lastBuildDate>Fri, 01 Jan 2010 19:57:07 +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 to enable SSH key Authentication: SSH login without a password!</title>
		<link>http://www.fnode.com/2009/09/how-to-enable-ssh-key-authentication-ssh-login-without-a-password/</link>
		<comments>http://www.fnode.com/2009/09/how-to-enable-ssh-key-authentication-ssh-login-without-a-password/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 11:54:43 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=478</guid>
		<description><![CDATA[If you want to jump between servers without any password authentication but you still need security here is what you have to do.
There are two ways of achieving this:
On Debian/Ubuntu you can just type:

  $ cd $HOME
~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key:

Press Enter each question and you [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you want to jump between servers without any password authentication but you still need security here is what you have to do.<br />
There are two ways of achieving this:</p>
<p>On Debian/Ubuntu you can just type:<br />
<code><br />
  $ cd $HOME<br />
~$ ssh-keygen<br />
Generating public/private rsa key pair.<br />
Enter file in which to save the key:<br />
</code><br />
Press Enter each question and you will have a pair of keys ready to use.<br />
You will be asked for a passphrase but if you do not want to insert anything just leave it blank.<br />
This procedure will create one private and one public key.<br />
<code>$ ls .ssh/<br />
id_rsa  id_rsa.pub  known_hosts</code><br />
The private key must be secured on your box whereas the public key can be copied across<br />
<code>~$ ssh-copy-id -i .ssh/id_rsa.pub 192.168.1.30</code><br />
At this time you will be asked for the password but once the key has been copied you will be able to ssh just perfectly.</p>
<p><span id="more-478"></span></p>
<p>As additional security you could lock the account to prevent someone without key to ssh into the box. In order to do that<br />
<code><br />
me@mybox:~$ ssh 192.168.1.30<br />
me@server:~$ su -<br />
password:<br />
root@server:~# usermod -L me<br />
</code><br />
usermod -L will lock the account &#8220;me&#8221; preventing anyone using password credentials for that account. You will only be able to access with you trusted ssh-key. If you don&#8217;t want anymore the account locked just type:<br />
<code>root@server:~# usermod -U me</code><br />
-U flag will unlock the account</p>
<p>ON SOME OTHER DISTROS:<br />
the &#8220;ssh-copy-id&#8221; utility doesn&#8217;t exist so you will have to copy it manually.<br />
If you can copy and paste then<br />
<code>~$ cat .ssh/id_rsa.pub<br />
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAv4k0ChLXCfpF+o/4HcqAqYEivRSHHYsTlXfT4I0jmOAI+MKjVTB/CtKqq4h7KMyXrUUo7vtceac4i2FRSm6PdsWksJXsYxkOj+ZXXD2fOnJIDKfIr41URcZH4qmztYO+/9YYcQudPzNlt9tLx5jrkhI7sLy56OmKRwfrxq+UY7ebt+j7y5DmevJP0u7bzREPUA/rcVoPxH0/u015O2BcaJmNoxR1pNfMC3Oefn1eAkodo6fOa3vHHo7WhSpDL/42xsBWPnOAAEDM9tmOUyCJDc8l4Mzm+TindqY2yL2GPspabaEAV3rfuF9O4Ywe+tVIPc2/YXo9XvQxyXZqHxtcw==== me@mybox<br />
</code><br />
and paste the line into the remote server&#8217;s .ssh/authorized_keys file. REMEMBER that it&#8217;s just one line so if during copy and paste you get some new line characters that key won&#8217;t work.</p>
<p>If you can&#8217;t copy and paste and want to have the confidence the key has been correctly copied just scp the id_rsa.pub to the server<br />
<code><br />
me@mybox:~$ scp .ssh/id_rsa.pub 192.168.1.30:/home/me/<br />
me@server:~$ ssh 192.168.1.30<br />
me@server:~$ cat id_rsa.pub >> .ssh/authorized_keys<br />
</code></p>
<p>For more info<br />
<code>man usermod<br />
man ssh-keygen</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/09/how-to-enable-ssh-key-authentication-ssh-login-without-a-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick tip: change default text editor on Linux shell</title>
		<link>http://www.fnode.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/</link>
		<comments>http://www.fnode.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:52:50 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=477</guid>
		<description><![CDATA[Doing visudo you get nano instead of your favorite text editor?
Mine is vim therefore I issue:
DEBIAN/UBUNTU way

# update-alternatives --config editor
There are 4 alternatives which provide `editor'.
  Selection    Alternative
-----------------------------------------------
          1    /usr/bin/vim.tiny
          [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Doing visudo you get nano instead of your favorite text editor?<br />
Mine is vim therefore I issue:</p>
<p><strong>DEBIAN/UBUNTU way</strong><br />
<code><br />
# update-alternatives --config editor<br />
There are 4 alternatives which provide `editor'.<br />
  Selection    Alternative<br />
-----------------------------------------------<br />
          1    /usr/bin/vim.tiny<br />
          2    /bin/ed<br />
*+        3    /bin/nano<br />
          4    /usr/bin/vim.basic<br />
Press enter to keep the default[*], or type selection number:<br />
</code><br />
Selecting 4 I&#8217;m ready to use my full syntax colors when I edit any file.</p>
<p><strong>OTHER DISTROS</strong><br />
Edit your .bashrc file and add the following:<br />
<code>EDITOR=vim<br />
export EDITOR</code><br />
Next login you will have your VIM working.<br />
If you want to have it immediately and only for this session just type<br />
<code># export EDITOR=vim</code><br />
and press enter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Debian from USB drive</title>
		<link>http://www.fnode.com/2009/08/how-to-install-debian-from-usb-drive/</link>
		<comments>http://www.fnode.com/2009/08/how-to-install-debian-from-usb-drive/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 13:13:19 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=472</guid>
		<description><![CDATA[I&#8217;ve come across multiple ways of doing it but so far the best way is the following (I assume you are on i386 platform and you have access to the net):
1. Download boot.img.gz from Debian website
2. Download the net-install image choosing i386.
3. Plug your USB drive into a Linux PC, open the shell and type

$ [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#8217;ve come across multiple ways of doing it but so far the best way is the following (I assume you are on i386 platform and you have access to the net):<br />
1. Download <a href="ftp://ftp.debian.nl/debian/dists/stable/main/installer-i386/current/images/hd-media/boot.img.gz">boot.img.gz</a> from Debian website<br />
2. Download the <a href="http://www.debian.org/distrib/netinst#smallcd" target="_blank">net-install</a> image choosing i386.<br />
3. Plug your USB drive into a Linux PC, open the shell and type<br />
<code><br />
$ dmesg<br />
</code><br />
Last few lines should be like the following:<br />
<code><br />
 sd 7:0:0:0: [sdb] Attached SCSI removable disk<br />
 sd 8:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 GB/1.92 GiB)<br />
 sd 8:0:0:0: [sdb] Write Protect is off<br />
</code><br />
Now we know it has been mapped as sdb</p>
<p>4. Use zcat to load the boot.img.gz onto your USB drive<br />
<code><br />
# zcat boot.img.gz > /dev/sdb<br />
</code><br />
CAUTION!!! this will destroy the entire data on the USB drive, make sure you have done the backup.<br />
If you get an error  ensure the following:<br />
- You are root (don&#8217;t use sudo)<br />
- The USB drive it&#8217;s not mounted, if it is umount it before issuing the above command.</p>
<p>5. Now mount the USB drive and copy the net-inst.iso image on it.</p>
<p>All done! Now plug it into the box you want to setup and enjoy the old fashion Debian installer <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/08/how-to-install-debian-from-usb-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change the file timestamp on Linux</title>
		<link>http://www.fnode.com/2009/08/how-to-change-the-file-timestamp-in-a-linux-system/</link>
		<comments>http://www.fnode.com/2009/08/how-to-change-the-file-timestamp-in-a-linux-system/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 19:09:02 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=464</guid>
		<description><![CDATA[This tip might comes handy when you do a system check and you want to make sure you don&#8217;t check the same file twice.
Let&#8217;s pretend that our &#8220;file1&#8243; is a conf file that needs review. As you can see the output of the command issued below shows that the file was last edited in June.
Today [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This tip might comes handy when you do a system check and you want to make sure you don&#8217;t check the same file twice.</p>
<p>Let&#8217;s pretend that our &#8220;file1&#8243; is a conf file that needs review. As you can see the output of the command issued below shows that the file was last edited in June.<br />
Today I want to check the file without editing it and make sure next time I won&#8217;t check it again:<br />
<code><br />
$ ls -l<br />
total 0<br />
-rw-r--r-- 1 luca luca 290 2009-06-29 16:33 file1<br />
</code></p>
<p><a href="http://www.manpagez.com/man/1/touch/" target="_blank">Touch</a> is an excellent tool in this case:<br />
<code><br />
$ touch file1<br />
$ ls -l<br />
total 0<br />
-rw-r--r-- 1 luca luca 0 2009-08-29 19:43 file1<br />
</code><br />
The Modification Time has changed and so has the access time.</p>
<p>If you want to change just the modification time leaving the access time untouched try with the -m option<br />
<code><br />
$ touch -m file1<br />
$ ls -l<br />
total 0<br />
-rw-r--r-- 1 luca luca 0 2009-08-29 19:46 file1<br />
$ stat file1<br />
[..]<br />
Access: 2009-08-29 19:43:45.000000000 +0100<br />
Modify: 2009-08-29 19:46:15.000000000 +0100<br />
Change: 2009-08-29 19:46:15.000000000 +0100<br />
</code><br />
And -a is just for the Access Time.</p>
<p>Another interesting option is -t. It lets you set the time and the date with whatever you like. This is often used to do fishy things <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<code><br />
$ touch -t 200701012301 file1<br />
$ stat file1<br />
[..]<br />
Access: 2007-01-01 23:01:00.000000000 +0000<br />
Modify: 2007-01-01 23:01:00.000000000 +0000<br />
Change: 2009-08-29 19:52:26.000000000 +0100<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/08/how-to-change-the-file-timestamp-in-a-linux-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Nameservers on Sun Solaris</title>
		<link>http://www.fnode.com/2008/08/adding-nameservers-on-sun-solaris/</link>
		<comments>http://www.fnode.com/2008/08/adding-nameservers-on-sun-solaris/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 23:51:15 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Adding Nameserver on Solaris]]></category>
		<category><![CDATA[Solaris Name Server]]></category>

		<guid isPermaLink="false">http://www.nishv.com/?p=358</guid>
		<description><![CDATA[This is how to add a DNS Server to Solaris Box&#8230;
First of all, Open up your favourite text editor and add the name servers into /etc/resolv.conf
nameserver 192.168.1.1
If you need to add more, just add another one in the next line&#8230;
Following the instructions below will walk you through the process&#8230;
bash-3.00# ping www.google.com
ping: unknown host www.google.com
bash-3.00# cat [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is how to add a DNS Server to Solaris Box&#8230;</p>
<p>First of all, Open up your favourite text editor and add the name servers into <strong>/etc/resolv.conf</strong></p>
<p><strong>nameserver 192.168.1.1</strong></p>
<p>If you need to add more, just add another one in the next line&#8230;</p>
<p>Following the instructions below will walk you through the process&#8230;</p>
<p><code>bash-3.00# ping www.google.com<br />
ping: unknown host www.google.com<br />
bash-3.00# cat /etc/resolv.conf<br />
nameserver 192.168.1.1<br />
bash-3.00# cd /etc/<br />
bash-3.00# cp -p nsswitch.conf nsswitch.conf.org<br />
bash-3.00# cp -p nsswitch.dns nsswitch.conf<br />
bash-3.00# /etc/init.d/nscd stop; /etc/init.d/nscd start<br />
bash-3.00# ping www.google.com<br />
www.google.com is alive<br />
bash-3.00#</code></p>
<p>As you can see, the Name Server is working!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2008/08/adding-nameservers-on-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add IP Address / Default Gateway on Sun Solaris</title>
		<link>http://www.fnode.com/2008/08/how-to-add-ip-address-default-gateway-on-sun-solaris/</link>
		<comments>http://www.fnode.com/2008/08/how-to-add-ip-address-default-gateway-on-sun-solaris/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 23:39:07 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Add Default Gateway on Solaris]]></category>
		<category><![CDATA[Add IP on Solaris]]></category>

		<guid isPermaLink="false">http://www.nishv.com/?p=352</guid>
		<description><![CDATA[Adding IP address and default gateway is rather straight forward as long as the interface is loaded. To see whether the interface is loaded, issue the command ifconfig –a
You should see something like the following&#8230;

bash-3.00# ifconfig -a
lo0: flags=2001000849&#60;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&#62; mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags=1000842&#60;BROADCAST,RUNNING,MULTICAST,IPv4&#62; mtu 1500 index 2
inet 0.0.0.0 netmask 0
ether 0:6:4f:47:76:1e

In this [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Adding IP address and default gateway is rather straight forward as long as the interface is loaded. To see whether the interface is loaded, issue the command <strong>ifconfig –a</strong></p>
<p>You should see something like the following&#8230;</p>
<p><code><br />
bash-3.00# ifconfig -a<br />
lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL&gt; mtu 8232 index 1<br />
inet 127.0.0.1 netmask ff000000<br />
rtls0: flags=1000842&lt;BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 2<br />
inet 0.0.0.0 netmask 0<br />
ether 0:6:4f:47:76:1e<br />
</code></p>
<p>In this case, we will be adding the IP address and subnet mask to <strong>rtls0</strong> along with the default gateway.</p>
<p><strong>IP Address:</strong> 192.168.1.60<br />
<strong>Subnet Mask:</strong> 255.255.255.0<br />
<strong>Default Gateway:</strong> 192.168.1.1</p>
<p>Here is how its done&#8230;</p>
<p><code><br />
bash-3.00# ifconfig rtls0 192.168.1.60 netmask 255.255.255.0 up<br />
bash-3.00# route add default 192.168.1.1<br />
add net default: gateway 192.168.1.1<br />
bash-3.00# ping 4.2.2.2<br />
4.2.2.2 is alive<br />
</code></p>
<p>Success! We can now ping a WAN IP! and here is the new output of <strong>ifconfig -a</strong></p>
<p><code><br />
bash-3.00# ifconfig -a<br />
lo0: flags=2001000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL&gt; mtu 8232 index 1<br />
inet 127.0.0.1 netmask ff000000<br />
rtls0: flags=1000843&lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 2<br />
inet 192.168.1.60 netmask ffffff00 broadcast 192.168.1.255<br />
ether 0:6:4f:47:76:1e<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2008/08/how-to-add-ip-address-default-gateway-on-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS Cache Poisoning Bug</title>
		<link>http://www.fnode.com/2008/08/dns-cache-poisoning-bug/</link>
		<comments>http://www.fnode.com/2008/08/dns-cache-poisoning-bug/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 11:52:39 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[DNS bug]]></category>

		<guid isPermaLink="false">http://www.nishv.com/?p=324</guid>
		<description><![CDATA[When a Name Server looks up a domain for the IP address, it stores the information into the cache so it doesn’t have to look it up every single time a request is made. For example, if someone looks for www.nishv.com the DNS server will look up the domain and stores the IP address 72.52.178.35 [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>When a Name Server looks up a domain for the IP address, it stores the information into the cache so it doesn’t have to look it up every single time a request is made. For example, if someone looks for www.nishv.com the DNS server will look up the domain and stores the IP address 72.52.178.35 into the cache for a given time so it doesn’t have to look up that domain again for a given period of time.</p>
<p>DNS cache poisoning (also known as DNS cache pollution) is a maliciously created or unintended situation that provides data to a DNS Server that did not originate from authoritative DNS sources.</p>
<p>It happens when an attacker sends malicious data in response to a DNS query. For example, DNS query for www.nishv.com can be redirected to another website.</p>
<p>This method is taking the phishing scam to another level, you might be visiting your bank’s website but without you realising it, you will actually be putting in all the login information into some hackers servers which made it look exactly like the bank’s website. Yes, this is very serious!</p>
<p><strong>How do you patch it?</strong></p>
<p>On the client side (we are talking about Microsoft Windows here), your machines should have been patches automatically if you set the Auto-Update option. If not, I recommend you check the available updates and patch it as soon as possible.</p>
<p>If you use a DNS Server, my recommendation is to use the following command to figure out whether it has been patched or not. If it is not, STOP using it and have a look at this post on <a href="http://www.fnode.com/2008/03/opendns/" target="_self">OpenDNS</a> for more info.</p>
<p><strong>Use the following DIG command on UNIX</strong></p>
<p><code><br />
dig +short @{name-server-ip} porttest.dns-oarc.net txt<br />
dig +short @ns1.example.com porttest.dns-oarc.net txt<br />
dig +short @208.67.222.222 porttest.dns-oarc.net txt<br />
</code></p>
<p>and you should get a result similar to this&#8230;</p>
<p><code><br />
nishv@nishv.com [~]# dig +short @208.67.222.222 porttest.dns-oarc.net txt<br />
porttest.y.x.w.v.u.t.s.r.q.p.o.n.m.l.k.j.i.h.g.f.e.d.c.b.a.pt.dns-oarc.net.<br />
"208.67.217.8 is GREAT: 26 queries in 2.1 seconds from 26 ports with std dev 20119"<br />
</code><br />
Or something like this&#8230;<br />
<code><br />
nishv@nishv.com [~]# dig +short @4.2.2.2 porttest.dns-oarc.net txt<br />
porttest.y.x.w.v.u.t.s.r.q.p.o.n.m.l.k.j.i.h.g.f.e.d.c.b.a.pt.dns-oarc.net.<br />
"209.244.4.25 is GOOD: 26 queries in 1.9 seconds from 26 ports with std dev 3880"<br />
</code></p>
<p>If you don’t get <strong>GREAT</strong> or <strong>GOOD</strong> and gets something like <strong>POOR</strong>, you should immediately stop using it.</p>
<p>If you manage that DNS server, patch it or decommission it!</p>
<p><strong>This is how to check on Windows</strong></p>
<p>Open up command prompt by going <strong>Start</strong> --&gt; <strong>Run</strong> --&gt; <strong>CMD</strong> or on Vista typing <strong>CMD</strong> on the <em>Start Search</em> box</p>
<p><code><br />
nslookup -type=txt -timeout=30 porttest.dns-oarc.net<br />
nslookup -type=txt -timeout=30 porttest.dns-oarc.net ns1.your-isp.com<br />
nslookup -type=txt -timeout=30 porttest.dns-oarc.net NS-SERVER-IP<br />
</code></p>
<p>You must see the <strong>GREAT</strong> or <strong>GOOD</strong>, if not your DNS Server is compromised.</p>
<p style="text-align: center;"><a href="http://www.fnode.com/wp-content/uploads/nslookup1.jpg"><img class="size-medium wp-image-362 aligncenter" title="nslookup1" src="http://www.fnode.com/wp-content/uploads/nslookup1-300x150.jpg" alt="" width="300" height="150" /></a></p>
<p style="text-align: center;">
<p>You can see Dan Kaminsky&#8217;s presentation below&#8230;</p>
<p style="text-align: center;"><!-- Smart Youtube --><span class="youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/B0dHDD9fFM4&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/B0dHDD9fFM4&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" ></embed><param name="wmode" value="transparent" /></object></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2008/08/dns-cache-poisoning-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set multiple IPs on Debian</title>
		<link>http://www.fnode.com/2007/12/how-to-set-multiple-ips-on-debian/</link>
		<comments>http://www.fnode.com/2007/12/how-to-set-multiple-ips-on-debian/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 16:41:47 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.nishv.com/2007/12/27/how-to-set-multiple-ips-on-debian/</guid>
		<description><![CDATA[Setting multiple IPs on Linux or in this case Debian is rather straight forward&#8230; All the network info is stored in the file /etc/network/interfaces and you just need to add the info to the file&#8230;
Before making changes to this file, I recommend you check your values at least 3 times! If you have made a [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Setting multiple IPs on Linux or in this case Debian is rather straight forward&#8230; All the network info is stored in the file <strong>/etc/network/interfaces</strong> and you just need to add the info to the file&#8230;</p>
<p>Before making changes to this file, I recommend you check your values at least 3 times! If you have made a mistake and trying to do it from a remote location, <strong>YOU WILL LOCK YOURSELF OUT!</strong></p>
<p>This is a sample configuration with device <strong>eth0</strong> having the IP address of <strong>192.168.1.2</strong> on a Class C Network with <strong>192.168.1.1</strong> as the default gateway.</p>
<p><strong>/etc/network/interfaces:</strong><br />
<code><br />
# /etc/network/interfaces – configuration file for ifup(8), ifdown(8)</p>
<p># the loopback interface<br />
auto lo<br />
iface lo inet loopback</p>
<p>auto eth0<br />
iface eth0 inet static</p>
<p>address 192.168.1.2<br />
netmask 255.255.255.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.1.1<br />
</code><br />
In order to add multiple IPs to the same interface, In this case eth0 You need to add it in the following method&#8230;<br />
<code><br />
auto eth0:0<br />
iface eth0:0 inet static</p>
<p>address 192.168.1.3<br />
netmask 255.255.255.0<br />
broadcast 192.168.1.255</p>
<p>auto eth0:1<br />
iface eth0:1 inet static</p>
<p>address 192.168.1.4<br />
netmask 255.255.255.0<br />
broadcast 192.168.1.255</p>
<p>auto eth0:2<br />
iface eth0:2 inet static</p>
<p>address 192.168.1.5<br />
netmask 255.255.255.0<br />
broadcast 192.168.1.255<br />
</code><br />
Thats it, after you have made all the necessary changes, you need to restart the networking by issueing the following command&#8230;</p>
<p><strong># /etc/init.d/networking restart</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2007/12/how-to-set-multiple-ips-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to gain ROOT access to a Linux Box within 10 Seconds</title>
		<link>http://www.fnode.com/2007/09/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/</link>
		<comments>http://www.fnode.com/2007/09/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 22:49:23 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.nishv.com/2007/08/14/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/</guid>
		<description><![CDATA[It is pretty easy when it comes to gaining root password to any Linux System as long as you have physical access.
This is how to change Fedora&#8217;s ROOT Password.
When your box starts up, You will see the GRUB screen…
What you need to do is, press the a Key instead of Enter
You will see something like [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>It is pretty easy when it comes to gaining root password to any Linux System as long as you have physical access.</p>
<p>This is how to change Fedora&#8217;s ROOT Password.</p>
<p>When your box starts up, You will see the GRUB screen…</p>
<p>What you need to do is, press the <strong>a</strong> Key instead of <strong>Enter</strong></p>
<p>You will see something like the following…</p>
<p><code>kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet</code></p>
<p>Add 1 at the end of that… So it looks like the following…</p>
<p><code>kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet 1</code></p>
<p>This will make the box boot into Runlevel 1</p>
<p>You simply type</p>
<p><code>passwd</code></p>
<p>Enter the new ROOT password and reboot the machine.</p>
<p>Same thing goes for Any Linux System as welll… All you got to do is, add the following kernel argument…</p>
<p><code>init=/bin/bash</code></p>
<p>And then just change the password…</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2007/09/how-to-gain-root-access-to-a-fedora-box-within-10-seconds/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Forcing / eliminating the WWW</title>
		<link>http://www.fnode.com/2006/08/forcing-eliminating-the-www/</link>
		<comments>http://www.fnode.com/2006/08/forcing-eliminating-the-www/#comments</comments>
		<pubDate>Tue, 15 Aug 2006 11:04:32 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.nishv.com/2006/08/15/forcing-eliminating-the-www/</guid>
		<description><![CDATA[If you have a website and want to force www.domain.com Use the following .htaccess code

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

If you want to eliminate the www prefix like domain.com then use the following .htaccess code

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

]]></description>
			<content:encoded><![CDATA[<p></p><p>If you have a website and want to force <strong>www.domain.com</strong> Use the following <strong>.htaccess</strong> code<br />
<code><br />
RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^www\.<br />
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]<br />
</code><br />
If you want to eliminate the www prefix like <strong>domain.com</strong> then use the following <strong>.htaccess</strong> code</p>
<p><code><br />
RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^www\.(.+)$<br />
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2006/08/forcing-eliminating-the-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
