- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- rsh is not working
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2001 12:06 PM
тАО06-15-2001 12:06 PM
rsh is not working
I have redhat 7.1. on system name master and node1.
I have these two package on master and node1.
rsh-0.17-2.5
rsh-server-0.17-2.5
When I run rsh command it gives me error
"Permisson Denied"
I have move /etc/securetty file. I have move /etc/pim.d/rsh file. I have + in my rhosts file. I have account on both system.
Am I missing something?
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2001 11:32 AM
тАО06-17-2001 11:32 AM
Re: rsh is not working
On the client side, make sure that the rsh binary has execute permissions. Moreover, if you are not root user, make sure that you have the proper rights on that binary.
Check the /etc/hosts file or the DNS configuration to make sure that the server name is properly resolved.
On the server side, make sure that the remote shell service is started. On my system running Mandrake 8.0, rsh is started "on-demand" using xinetd. Therefore, my /etc/xinetd.d/rsh file looks like this :
service shell
{
disable = no
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
}
You may note the "disable" option that is set to "no". Restart the eXtended inet daemon after any changes in the file :
/etc/rc.d/init.d/xinetd restart
To check if it is running :
netstat -a | grep shell
Check the /etc/hosts file or the DNS configuration to make sure that the client name is properly resolved.
After doing all of these if it still doesn't work, check the /etc/hosts.allow and /etc/hosts.deny file for security aspects. Try with empty file (security disabled).
Good luck,
Kodjo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 06:00 AM
тАО06-18-2001 06:00 AM
Re: rsh is not working
I have changed rsh file on both system, restart xinetd but no luck. I do not have hosts.allow and hosts.deny file. Name resoultion work through /etc/hosts file. I can ping node from master and vice-versa.
Anymore idea?
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2001 01:13 PM
тАО06-19-2001 01:13 PM
Re: rsh is not working
It seems that your problem is not link to a network probem, however it looks like a permission problem.
On my RedHat 7.0 and Mandrake 8.0, the permissions of /usr/bin/rsh are -rwsr-xr-x.
Therefore, logon as root, change the /usr/bin/rsh permissions as follows, logout root and try again with your normal user ID :
chmod 4755 /usr/bin/rsh
chown root:root /usr/bin/rsh
As you may know, the set userID bit "s" makes the program execute as user root, even for non-root users. Programs having this bit set should be considered as security holes, unless they have been tested and tested and tested again.
Good luck
Kodjo
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2001 02:47 AM
тАО06-20-2001 02:47 AM
Re: rsh is not working
My default is : rw-rw-r--
This causes a "permission denied".
The permission bits should be: rw-r--r--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2001 06:32 AM
тАО06-20-2001 06:32 AM
Re: rsh is not working
permissions on .rhosts file was wrong.
Sachin