Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Get around root requirement for Net::Rsh

by blm (Hermit)
on Sep 23, 2002 at 16:21 UTC ( [id://200150]=note: print w/replies, xml ) Need Help??


in reply to Get around root requirement for Net::Rsh

The reason the root privileges are needed is the Net::Rsh module seems to connect from a port < 1024 to server port 514(rsh). I beleive to listen on ports < 1024 or connect from ports <1024 to a server port you neet to be a superuser (like root) (but not on Windows XP)

You could get around this by modifying Rsh.pm to start trying to connect from ports higher then 1024 by altering the value of $end_port to something like 2048

NB THIS INFORMATION BEARS NO WARRANTY. USE ONLY AT YOUR RISK. The author must have done this for a reason. I don't know why so please be careful. Please note rsh is considered a huge security risk .

Update:The server (at least on debian) does not seem to require connection from port < 1024 as indicated above. Some web sites (like here) say the server will terminate connection if source port is < 1024.

I got to get faster at typing and submitting ;-)

--blm--

Replies are listed 'Best First'.
Re: Re: Get around root requirement for Net::Rsh
by jj808 (Hermit) on Sep 23, 2002 at 16:53 UTC
    I have just tried modifying Rsh.pm as you suggest, but on my system (RedHat 7.3) the connection is refused with the following message in the system log:
    Sep 23 17:47:27 mondas rshd[23026]: Connection from 127.0.0.1 on illeg +al port
    Good point and worth a try though, if only to determine if your system has a broken rsh implementation (mmmm, security!) ;-)

    JJ

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200150]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-04-24 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found