{"id":536,"date":"2011-01-28T00:30:38","date_gmt":"2011-12-17T13:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/root-rsh-on-redhat-linux\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-12-17T13:51:50","slug":"root-rsh-on-redhat-linux","status":"publish","type":"post","link":"\/blog\/index.php\/root-rsh-on-redhat-linux\/","title":{"rendered":"root rsh on redhat linux"},"content":{"rendered":"<p>DO NOT DO THIS AT HOME, it is highly insecure.<br \/>\nAfter the rude warning, just had to let you know that if you ever need to have a passwordless root login with<br \/>\nrsh on redhat you have to do this&#8230;<br \/>\nAdd these lines to \/etc\/securetty<br \/>\nrexec<br \/>\nrsh<br \/>\nrlogin<br \/>\npts\/0<br \/>\npts\/1<br \/>\nActivate the services by issuing<br \/>\nchkconfig rexec on<br \/>\nchkconfig rlogin on<br \/>\nchkconfig rsh on<br \/>\nadd a \/root\/.rhosts file with the name of the host you want to trust to enter as root<br \/>\nIn my case it contains only<br \/>\notherpc<br \/>\nChange the permissions of the file to 600<br \/>\nchmod 600 \/root\/.rhosts<br \/>\nAdd &#8220;otherpc&#8221; to your \/etc\/hosts file<br \/>\n10.10.10.1 otherpc<br \/>\nYou&#8217;re all set, you can rsh from &#8220;otherpc&#8221; without having to type the root password.<br \/>\nI REPEAT, do not do this for daily production servers, or any server you take seriously, it is foolish.<br \/>\n226\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DO NOT DO THIS AT HOME, it is highly insecure. After the rude warning, just had to let you know that if you ever need to have a passwordless root login with rsh on redhat you have to do this&#8230; Add these lines to \/etc\/securetty rexec rsh rlogin pts\/0 pts\/1 Activate the services by issuing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-536","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=536"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/536\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}