<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://brandonhutchinson.com/mediawiki/skins/common/feed.css?97"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Disabling r services on Solaris - Revision history</title>
		<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Disabling_r_services_on_Solaris&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.11.0rc1</generator>
		<lastBuildDate>Fri, 24 May 2013 06:24:05 GMT</lastBuildDate>
		<item>
			<title>Hutch: New page: Note: Even if ''inetd'' is not running, it is a good idea to comment out ''r'' services in ''inetd.conf'' in case ''inetd'' is ever inadvertently started.  Are any ''r'' services enabled i...</title>
			<link>http://brandonhutchinson.com/mediawiki/index.php5?title=Disabling_r_services_on_Solaris&amp;diff=396&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: Note: Even if ''inetd'' is not running, it is a good idea to comment out ''r'' services in ''inetd.conf'' in case ''inetd'' is ever inadvertently started.  Are any ''r'' services enabled i...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Note: Even if ''inetd'' is not running, it is a good idea to comment out ''r'' services in ''inetd.conf'' in case ''inetd'' is ever inadvertently started.&lt;br /&gt;
&lt;br /&gt;
Are any ''r'' services enabled in ''inetd.conf''?&lt;br /&gt;
 $ '''egrep '^shell|^exec|^login' /etc/inet/inetd.conf'''&lt;br /&gt;
 shell   stream  tcp     nowait  root    /usr/sbin/in.rshd       in.rshd&lt;br /&gt;
 shell   stream  tcp6    nowait  root    /usr/sbin/in.rshd       in.rshd&lt;br /&gt;
 login   stream  tcp6    nowait  root    /usr/sbin/in.rlogind    in.rlogind&lt;br /&gt;
 exec    stream  tcp     nowait  root    /usr/sbin/in.rexecd     in.rexecd&lt;br /&gt;
 exec    stream  tcp6    nowait  root    /usr/sbin/in.rexecd     in.rexecd&lt;br /&gt;
&lt;br /&gt;
If so, disable the ''r'' services in ''inetd.conf''. The version of ''perl'' on this system does not support the ''-i'' flag.&lt;br /&gt;
 # '''perl -pe 's/^shell/#shell/;s/^login/#login/;s/^exec/#exec/' /etc/inet/inetd.conf &amp;gt; /etc/inet/inetd.conf.new'''&lt;br /&gt;
 # '''mv /etc/inet/inetd.conf.new /etc/inet/inetd.conf'''&lt;br /&gt;
 # '''chmod 444 /etc/inet/inetd.conf'''&lt;br /&gt;
 # '''chown root:sys /etc/inet/inetd.conf'''&lt;br /&gt;
&lt;br /&gt;
Send ''inetd'' a SIGHUP for the changes to take effect.&lt;br /&gt;
 # '''pkill -HUP inetd'''&lt;br /&gt;
&lt;br /&gt;
Links:&lt;br /&gt;
* [http://www.itworld.com/nl/lnx_tip/01042002/ R-Services]&lt;/div&gt;</description>
			<pubDate>Mon, 01 Oct 2007 18:38:00 GMT</pubDate>			<dc:creator>Hutch</dc:creator>			<comments>http://brandonhutchinson.com/wiki/Talk:Disabling_r_services_on_Solaris</comments>		</item>
	</channel>
</rss>