mantram
asked on
rsh is working for root, but not for other users? --urgent
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
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
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.
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.
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:)
ASKER
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
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
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.
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.
These changes need to be made on the server.
ASKER
I got rsh working :)
have setuid for rsh as well as rlogin, since rsh also needs rlogin...
Thanks all
have setuid for rsh as well as rlogin, since rsh also needs rlogin...
Thanks all
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Does using the full path:
/usr/bin/rsh
work for other users? If so you need to add /usr/bin/ to your path