- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- rexec does not work in my RedHat 7.1 (2.4.2)
Operating System - Linux
1820695
Members
2844
Online
109627
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО11-27-2001 03:23 PM
тАО11-27-2001 03:23 PM
rexec does not work in my RedHat 7.1 (2.4.2)
I have rsh-server installed, I commented out
auth required /lib/security/pam_securitty.so for both /etc/pam.d/rexec and /etc/pam.d/login. I was trying to login as root. I did ntsysv and verify that rexec is checked. What am I missing? Please help.
auth required /lib/security/pam_securitty.so for both /etc/pam.d/rexec and /etc/pam.d/login. I was trying to login as root. I did ntsysv and verify that rexec is checked. What am I missing? Please help.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 07:15 AM
тАО11-28-2001 07:15 AM
Re: rexec does not work in my RedHat 7.1 (2.4.2)
Hello Fay
To test, make localhost equivalent to itself:
(as root)
cd /root
echo 127.0.0.1 >>.rhosts
chmod 600 .rhosts
Still as root, try
rlogin localhost
You should see the '#' prompt. If you do not:
1) If it takes a long time before you get an error message, your service may be disabled (check /etc/inetd.conf and see if it's commented out). If that's the case, enable the service and try again.
2) If it just gives you a 'password' prompt (and does not accept your root password), check /var/log/messages for any explanations. If you see a message saying that 'root is not allowed' then you need to comment out the 'pam_securetty' line on your /etc/pam.d/r* files. (I believe you did that already).
In any event, you should seriously consider SSH for this job. RSH is a gaping security hole and should not be relied upon.
Regards,
Paga
To test, make localhost equivalent to itself:
(as root)
cd /root
echo 127.0.0.1 >>.rhosts
chmod 600 .rhosts
Still as root, try
rlogin localhost
You should see the '#' prompt. If you do not:
1) If it takes a long time before you get an error message, your service may be disabled (check /etc/inetd.conf and see if it's commented out). If that's the case, enable the service and try again.
2) If it just gives you a 'password' prompt (and does not accept your root password), check /var/log/messages for any explanations. If you see a message saying that 'root is not allowed' then you need to comment out the 'pam_securetty' line on your /etc/pam.d/r* files. (I believe you did that already).
In any event, you should seriously consider SSH for this job. RSH is a gaping security hole and should not be relied upon.
Regards,
Paga
Keeping alive, until I die.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2001 03:51 PM
тАО11-28-2001 03:51 PM
Re: rexec does not work in my RedHat 7.1 (2.4.2)
Check /etc/xinetd.d/rsh
By default, the service is disabled, like so:
[root@redhat xinetd.d]# cat rsh
# default: off
# description: The rshd server is the server for the rcmd(3) routine and, # consequently, for the rsh(1) program. The server provides # remote execution facilities with authentication based on # privileged port numbers from trusted hosts.
service shell
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
disable = yes
}
[root@redhat xinetd.d]#
change the yes in that last line to no, and try again.
Best Regards.
By default, the service is disabled, like so:
[root@redhat xinetd.d]# cat rsh
# default: off
# description: The rshd server is the server for the rcmd(3) routine and, # consequently, for the rsh(1) program. The server provides # remote execution facilities with authentication based on # privileged port numbers from trusted hosts.
service shell
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
disable = yes
}
[root@redhat xinetd.d]#
change the yes in that last line to no, and try again.
Best Regards.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP