Solved

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

Posted on 2003-12-08
10
375 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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
 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

809 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