batched rlogin


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users batched rlogin
# 1  
Old 11-05-2001
batched rlogin

I want to write a batch file that issues the rlogin command with the username and password. Is there a way to pass a user password to the rlogin command?

Thanks.
# 2  
Old 11-05-2001
Not directly, but the same thing can be accomplished with the use of an .rhosts file. See the rlogin man page for details. Standard disclaimer applies: rlogin is totally insecure. Consider using ssh instead.
# 3  
Old 11-05-2001
Hi

I don't remember exactly what is the link, but if you search through the forums for rlogin you will find some useful info on rlogin since this was discussed recently.

Hope this helps you

Smilie
# 4  
Old 11-05-2001
There is a way you can do this with rlogin, telnet, ftp, ssh by writing a script in Expect. Expect if a great way to automate any task, and you can write an extremely basic login script in Expect that doesn't require too much time to learn.

Just remember that all concerns about secrutiy should be addressed before using any login script in Expect.
# 5  
Old 11-06-2001
Any and all login scripts are flawed in the sense that the password is hard-coded, usually in plain text. That is a very common way for a cracker in your account/machine to spread their access to other places...

Say, for example, someone gets lucky and hits your account, or worse yet, the root account. It's a simple search to find files with passwords, then take those accounts too...
# 6  
Old 11-06-2001
True, this is also true for SSH using a public key with a null password or equivalence file. You are basically relying on the security setup of you local computer to shield your remote computer.

Depends on how confident you are and how willing you are to suffer a security breach. If a security breach on the remote computer will be devistating than don't use login scripts.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

rlogin help!

Guys, I'm running solaris 9 on two systems: 1 and 2, let's say. From 1, if I say rlogin 2, i can just login. No passwd prompt! From 2, if I say rlogin 1, it asks for the passwd. (able to login with a passwd) But, they both have the same config files, same set up, same network etc. What... (13 Replies)
Discussion started by: the_red_dove
13 Replies

2. Shell Programming and Scripting

rlogin

Hi all, i need to remotely execute a couple of commands on anyother server, but rsh is not allowed. for that matter i am bound to use rlogin. so what i am trying to do in the script is : 1) rlogin asad 2) Wait for Login prompt 3) Waiting for Password Prompt 4) Once authenticated, execute... (4 Replies)
Discussion started by: asadlone
4 Replies

3. UNIX for Dummies Questions & Answers

Rlogin

i got a dout in rlogin . whether rlogin is same as telnet (1 Reply)
Discussion started by: shanmugam
1 Replies

4. UNIX for Dummies Questions & Answers

Question about batched commands

Hi everyone I am a newbbie in the linux enviroment. My problem is: I have tried to use the at command to compile and keep running a program and close the terminal window. Every time I use the at command I get the next error "Can't open /var/run/atd.pid to signal atd. No atd running?" ... (2 Replies)
Discussion started by: fenixbeta
2 Replies

5. IP Networking

rlogin problem

On the HP-UX hostA, the command rlogin hostB generates the error "rlogind: Host address mismatch" even though the hostname & IP of hostA are defined in the .rhosts file and the /etc/hosts files of hostB respectively. The IP and the hostname of hostB are defined in the /etc/hosts file of hostA. (1 Reply)
Discussion started by: vijaysharma.vs
1 Replies

6. Cybersecurity

not allow rlogin

does anyone know how to stop rlogin to my sunsolaris so I have 2 machines...I can not telnet one becouse that is not allowed but I can telnet the other and do rlogin to first one..I want to stop that.. so.. telnet A from C machine - works telnet B from C machine - does not work but... (3 Replies)
Discussion started by: amon
3 Replies

7. Shell Programming and Scripting

rlogin

I'm comparing a table from two databases on two different servers to check for equality. 1. How do I use rlogin from a script , is it like this ? rlogin -l $username $server1 where $username and $server1 are passed from the command line. 2.create a copy of that table, compress it and... (3 Replies)
Discussion started by: seaten
3 Replies

8. UNIX for Dummies Questions & Answers

rlogin

Hi, I have a script and need to use rlogin to access "server1". As there will be different servers used and there will be different usernames and passwords. Is it possible to pass the server name, username and password as arguments on the command line and the script work from there. ... (2 Replies)
Discussion started by: seaten
2 Replies

9. Solaris

rlogin on solaris 5.8

i have two identical Solaris 5.8 machines, on one machine I can rlogin, on the other machine I cannot, I can only telnet. Does anyone know why? FYI /etc/default/login #CONSOLE=/dev/console this is indentical on both..... (6 Replies)
Discussion started by: csaunders
6 Replies

10. UNIX for Dummies Questions & Answers

Rlogin???

From any computer on our network when you rlogin into one machine (this only happens on this machine) it'll hang for about 3 minutes before loggin into that machine. If your sick of waiting you can do a <ctrl> C and then it'll rlogin into the machine it is meant to BUT it wont keep the shell... (1 Reply)
Discussion started by: merlin
1 Replies
Login or Register to Ask a Question