Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
what is the difference between rsh client program and rshd server program? Do I need both packages installed in each system to run command on remote system via rsh? I have the first one system with rsh client installed. (/usr/bin/rsh), the second system has both rsh and rshd installed, (/usr/bin/rsh and /usr/sbin/in.rshd), both systems has "+ +" entry in both .rhosts and hosts.equiv files and "ALL : ALL : ALLOW" in hosts.allow file, but I still could not get rsh worked?? I tried (rsh -l login second-system "ls") from the first system, I got permission denied. I tried (rsh -l login first-system "ls") from the second system, I got connection refused.
rshd is the daemon which listens for connections. rsh is the client. The process is works like this
1. you start the client rsh on the box you are working from.
2. The client then calls the server rshd on the remote box you wish to connect to
3. you enter the username and password for your account on the remote box NOT the local box you are currently using.
4. Authentication is completed and you are connected to a shell service (command line) on the remote box.
I am in the situation that I dont really care about the security, rsh was built in my testing environment that I can not change.
I installed rshd in the first system and tried "rsh localhost ls" and got "Permission denied", tried "rsh localhost" got
connect to address 127.0.0.1: Connection refused
and I did "rexec localhost ls" using "root" user,
localhost: Connection refused
rexec: Error in rexec system call,
rexec: (The following system error my itself be in error)
rexec: Illegal seek
also I did "chkconfig | grep rsh", I got "rsh xinetd".
I can ping and telnet from both systems. The /etc/xinetd.d/rsh looks like the follwing,
socket_type = stream
protocol = tcp
wait = no
user = root
group = root
server = /usr/sbin/tcpd
server_args = /usr/sbin/in.rshd -aL
flags = NAMEINARGS
I did "netstat -l --inet", there seems to have an entry
tcp 0 0 *:shell *.* LISTEN
Yast2 showed "shell" as the service instead of "rsh".
I dont have "disable" line in the file /etc/xinetd.d/rsh. I think rsh is enabled through xinetd. I can find /usr/sbin/xinetd is running from "ps" command, but I still kept getting "permission denied" error. I also included "rsh" in /etc/securetty. This is a very hard problem..... I gave up.