Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I have two computers running Slackware 10.2 (Kernel 126.96.36.199, SMP Kernel on both computers), these are only connected to each other, so no connection to the internet or any other network. No "firewall" is up on both.
For several reasons i need rsh instead of ssh.
I have configured /etc/inetd.conf to allow rsh:
shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L
login stream tcp nowait root /usr/sbin/tcpd in.rlogind
exec stream tcp nowait root /usr/sbin/tcpd in.rexecd
Then on both computers the same user is set with ~/.rhosts on both computers
Then /etc/hosts.equiv is set on both computers, as well as /etc/hosts.allow which looks like this:
(to allow all connections from all hosts)
Again this two computers are only connected to each other via a small 2 port switch.
But when i try rsh rcp etc.. i get
rcmd: socket: Permission denied.
Can anybody tell me what else i could do try etc.. to get it working?
Is there another config file etc...
~/.rhosts has permissions 600 and is owned by the correct user.
I have been testing around with the iBook later then and i found out that i can do a rsh from the iBook to both of the computers. Then i set up rsh on some old "Noname" Notebook where Slackware 10.2 is running and i can rsh from both "mainboxes" to the noname notebook. But when i try to rsh from one of the mainboxes to the other i still get
rcmd: socket: Permission denied.
Have you tried removing each of the two mainboxes from each other's /etc/host.equiv? I'm grasping at straws, but maybe stripping the problem down to the minimum number of variables might help. Remove hosts.equiv, remove .rhosts and see if you can login with a password.
I have removed ~/.rhosts and /etc/hosts.equiv on both boxes and i canīt login with a password either.
rcmd: socket: Permission denied is all i get...
Could it be that the package which contains rsh has a bug?
Also i donīt find a "newer" package than the one i have installed for Slackware 10.2
After some testing and playing around with it i guess there must be something wrong with the package i have installed, as other hosts expect the second Slackware-box can connect but the outgoing connections to other hosts just donīt work.
I try to get / install a newer version and see if that helps.
Hmm, i reinstalled the package and found out that i can do rsh -l username host as user root but if i try to do this as normal user i get Permission denied, then i checked the permissions for rsh and rlogin which are correct.