Solved

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

Posted on 2003-12-08
10
373 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux crontab output 3 66
Xymon customize http timeout 2 64
AWS CLI issues with Tags 3 63
Run DOS2UNIX and then execute the command 21 32
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Fine Tune your automatic Updates for Ubuntu / Debian
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

911 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

25 Experts available now in Live!

Get 1:1 Help Now