LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-14-2005, 11:45 PM   #1
deveshs
LQ Newbie
 
Registered: Mar 2005
Location: Pune India
Distribution: FC3, RH9
Posts: 12

Rep: Reputation: 0
Question RSH On fedora core 3


Hi all,
I am trying to execute " rsh 'hostname' ls -l " on fedora core 3 from a RH9 machine I am
getting an error message 'Permission Denied.' How can I resolve this

I have already enabled the service and "rsh hostname" command is successfully running

what to do?
plz help me out.
 
Old 03-15-2005, 12:47 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
You should use ssh instead, rsh is highly insecure. The syntax with ssh is: ssh -l <username> <machinename>
 
Old 03-15-2005, 03:48 PM   #3
sandgroper
Member
 
Registered: Jul 2004
Location: Perth , Western Australia
Distribution: Fedora Core 5 , Mint 9
Posts: 118

Rep: Reputation: 15
Re: RSH On fedora core 3

Quote:
Originally posted by deveshs
Hi all,
I am trying to execute " rsh 'hostname' ls -l " on fedora core 3 from a RH9 machine I am
getting an error message 'Permission Denied.' How can I resolve this

I have already enabled the service and "rsh hostname" command is successfully running

what to do?
plz help me out.
On your FC3 machine edit the /etc/hosts.allow file and add the line

in.rshd : <client IP address or IP range /sub mask>


The correct syntax is
rsh -l <username> host <command>

Last edited by sandgroper; 03-15-2005 at 03:51 PM.
 
Old 03-18-2005, 02:01 AM   #4
deveshs
LQ Newbie
 
Registered: Mar 2005
Location: Pune India
Distribution: FC3, RH9
Posts: 12

Original Poster
Rep: Reputation: 0
Hi,
The problem has been resolved by reinstalling the FC3 with X componants. Is there any X configuration file which is requered to execute the "rsh 'hostname' 'command name' " command?
 
Old 06-21-2005, 08:35 PM   #5
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Rep: Reputation: 30
Re: Re: RSH On fedora core 3

Quote:
Originally posted by sandgroper
On your FC3 machine edit the /etc/hosts.allow file and add the line

in.rshd : <client IP address or IP range /sub mask>


The correct syntax is
rsh -l <username> host <command>
This still doesn't make rsh passwordless :S
 
Old 08-03-2005, 05:38 AM   #6
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Rep: Reputation: 30
I just like to tell everybody that at last I found out why my rsh was using
Kerbos5 resulting in annoying messages (when am trying to get a clean passwordless rsh). As I analysed from the list:

Connection refused
Trying krb4
Connection refused
Trying normal

The first being a kerberos 5, then a version 4 try before finally a normal
being successful. I thought there must be more than one version of rsh installed. So I typed 'locate rsh'. I try the first on the list. I typed '/usr/bin/rsh localhost' and that worked fine. Then typed 'which rsh'. To my surprise it says '/usr/kerberos/bin/rsh'. I then
looked at my $PATH and see that that's the first folder that's being pathed. So I removed it. Problem solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RSH: remuser too long error when rsh is executed from IIS dev33445 Programming 0 08-29-2005 09:34 AM
Severe problems with Fedora Core 1 and Fedora Core 2 installatiom TheOneKEA Fedora - Installation 2 07-14-2004 02:12 PM
Upgrading via Internet Fedora Core 1 to Fedora Core 2 cdean Linux - Newbie 2 05-30-2004 11:14 PM
Fedora Core 2 - Just days away! Final comments on Fedora Core 1 lrt2003 Fedora 3 05-12-2004 02:09 AM
Will Fedora Core 1 RPMs still be compatable with Fedora Core 2? yarjar Linux - Software 1 05-02-2004 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration