Solved

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

Posted on 2003-12-08
10
374 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

816 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

11 Experts available now in Live!

Get 1:1 Help Now