Solved

rsh is working for root, but not for other users? --urgent

Posted on 2003-12-08
10
372 Views
Last Modified: 2013-12-15
Hi All,

I have installed rsh server and is working fine for the root but not for other users.

if i say ls -l /usr/bin/rsh it gives
-rwsr-xr-x    1 root     root         7764 Feb  5  2001 /usr/bin/rsh

the setuid has been set, but still rsh is not working for other users.
What else need to be changed??

-Mantram




0
Comment
Question by:mantram
  • 3
  • 2
  • 2
  • +1
10 Comments
 
LVL 22

Expert Comment

by:pjedmond
ID: 9900181
What error are you getting when you try to use rsh?

Does using the full path:

/usr/bin/rsh

work for other users? If so you need to add /usr/bin/ to your path
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 9900212
You should not use rsh at all. It's a security risk.

Use the secure shell (ssh) instead. It supports all that rsh does and more (e.g. X11 tunneling). Chances are that your distribution does have OpenSSH, you just need to install it. You an also get it from http://www.openssh.com/

You can find more information about the problems with the "r" commands at CERT: http://www.cert.org/tech_tips/usc20_full.html#2.4

BTW: If you question is really that urgent, you should offer more points. The EE guidelines for points suggest 20 points for a not urgent, not complicated question.
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 9900473
I confess that I use rsh for a few things, but access is greatly restricted to the system/network concerned. However, I agree ssh is the recommended approach for most circumstances:)
0
 

Author Comment

by:mantram
ID: 9900890
Thanks buddies!!!  But I need rsh to run a tool, infact SPEcsfs benchmark.

 pjedmond,

The error I am getting is "rcmd: socket: oermission denied"
I tried using the full path too /usr/bin/rsh but getting the same error.

-Mantram
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 9901316
Depending on your distribution, the rsh will use e.g. PAM for authentication. Check the directory /etc/pam.d/ for a file named rsh (or wherever PAM on your system stores it's config files).
Try to rlogin into your system. If this works for non-root users, copy the contents of the rlogin file to the rsh file in the PAM directory.
I just installed rsh (for the first time in ten years) on my Linux system, and that's what I had to do in order to get it to work.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 9901321
These changes need to be made on the server.
0
 

Author Comment

by:mantram
ID: 9901606
I got rsh working :)
have setuid for rsh as well as rlogin, since rsh also needs rlogin...

Thanks all
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 15644834
PAQed with points refunded (20)

CetusMOD
Community Support Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now