<?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>rajaseelan.com &#187; login</title>
	<atom:link href="http://rajaseelan.com/tag/login/feed/" rel="self" type="application/rss+xml" />
	<link>http://rajaseelan.com</link>
	<description>junk food for the brain ...</description>
	<lastBuildDate>Tue, 28 Jul 2009 16:37:17 +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 passwordless rsh login in RHEL5</title>
		<link>http://rajaseelan.com/2009/07/03/how-to-enable-passwordless-rsh-login-in-rhel5/</link>
		<comments>http://rajaseelan.com/2009/07/03/how-to-enable-passwordless-rsh-login-in-rhel5/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:31:28 +0000</pubDate>
		<dc:creator>raja</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[no password]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rsh]]></category>

		<guid isPermaLink="false">http://rajaseelan.com/?p=126</guid>
		<description><![CDATA[When you administer clusters, you will eventually encounter applications that still use rsh to connect between nodes.
In my place, we use Red Hat Enterprise Linux 5 (RHEL5) for the cluster nodes. In order for the application to run, we need to enable passwordless logins via rsh, in order for the Message Passing Interface &#038; Node [...]]]></description>
			<content:encoded><![CDATA[<p>When you administer clusters, you will eventually encounter applications that still use <code>rsh</code> to connect between nodes.</p>
<p>In my place, we use Red Hat Enterprise Linux 5 (RHEL5) for the cluster nodes. In order for the application to run, we need to enable passwordless logins via rsh, in order for the Message Passing Interface &#038; Node Management Software to work. There are a few ways to do this, this is how I did it. Security Professionals will be screaming though.</p>
<ol>
<li>Firstly, make sure you have installed the <code>rsh-server</code> rpm package.
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">[root@node01 ~]# yum install rsh-server
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package rsh-server.i386 0:0.17-38.el5 set to be updated
--&gt; Finished Dependency Resolution
&nbsp;
Dependencies Resolved
&nbsp;
================================================================================
 Package           Arch        Version               Repository            Size
================================================================================
Installing:
 rsh-server        i386        0.17-38.el5           rhel-selrepos         39 k
&nbsp;
Transaction Summary
================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
&nbsp;
Total download size: 39 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : rsh-server                                        [1/1]
&nbsp;
Installed: rsh-server.i386 0:0.17-38.el5
Complete!</pre>
</div>
</div>
</li>
<li>Make sure the <code>rsh, rlogin, rexec, xinetd</code> are turned on and then restart <code>xinetd</code>.
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">[root@node01 ~]# chkconfig rsh on
[root@node01 ~]# chkconfig rexec on
[root@node01 ~]# chkconfig rlogin on
[root@node01 ~]# chkconfig xinetd on
[root@node01 ~]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]</pre>
</div>
</div>
</li>
<li>Edit your <code>/etc/securetty</code> file. Append the following
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">rsh
rexec
rlogin</pre>
</div>
</div>
</li>
<li>You&#8217;ll then need to create a <code>.rhosts</code> file in the user&#8217;s home directory, with the host names of the machines you wish to allow to connect.<br />
<strong>Note:</strong>These machines should be resolvable via either DNS or put in your <code>/etc/hosts</code> file.</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">node01
node02
node03</pre>
</div>
</div>
<p>Also, make sure the file permissions are 0600.</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">chmod 0600 ~/.rhosts</pre>
</div>
</div>
</li>
</ol>
<p>You should be able to rsh in now. <img src='http://rajaseelan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://rajaseelan.com/2009/07/03/how-to-enable-passwordless-rsh-login-in-rhel5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
