The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: problem in rlogin
dewouter
Newbie
Rank: 1



UID 115
Digest Posts 0
Credits 0
Posts 63
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 15, 2007 07:43 AM  Profile | P.M. 
problem in rlogin



problem in rlogin



dear experts,
i want to make one script ,by running that script it should rlogin from one mashine to another and the username and passord should be in the script so that it could not ask from me the username and password of another machine from me .

please help me out.
regards,


Top
clvezlys
Newbie
Rank: 1



UID 92
Digest Posts 0
Credits 0
Posts 44
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 15, 2007 07:43 AM  Profile | P.M. 
using ~/.rhosts



hi,
i think you can make use of ${home}/.rhosts file to make login without requiring password to be keyed in.

create the file ~/.rhosts in the target host and add the line,

cat ~/.rhosts

code:

localhost loginid

by using ~/.rhosts file to can login on the target host using,

code:
rlogin targethost

ensure the ~/.rhosts file is protected from the other users.

thanks
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:28 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.004662 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP