LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2010, 11:16 AM   #1
lewpatch
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Rep: Reputation: 0
rsh/rdist hangs on a read(0, from RHEL3.8 to SLES9


Our Web Engineers use rdist/rsh from a RHEL3.8 server to push out their monitoring scripts to various Linux web servers. Their rsh/rdist process using a distfile always seems to hang after completion when the target server is a SLES9 server - the session always seem to complete/end successfully if the rdist target server is a RHEL server.

An strace of the RSH PID on both sides shows the process on the RHEL 3.8
source server as read(8, while on the target SLES server the PID shows as read(0,

A netstat -a|grep CLOSE_WAIT does not show any tcp session relating
to the rsh sessions.

Would appreciate any thoughts on this. Thank you.
 
Old 01-11-2010, 11:31 AM   #2
lewpatch
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
What I see is that a password prompt is being initiated even though a valid .rhosts file exists and an entry in
/var/log/authlog would seem to indicate that the .rhosts is working:
Jan 11 12:22:41 xaqc1dsx pam_rhosts_auth[26511]: allowed to a320398@xwel1q.aetna.com as a320398

The rsh session just 'hangs' at the password promtp seemingly forever because days later I will have to logon and kill all of these rsh sessions to the SLES9 servers.

Seems to be related to Active Directory and/or VAS since rsh using a locally defined user account on the target server (with an .rhosts) works successfulyl with no prompts.

Last edited by lewpatch; 01-11-2010 at 02:10 PM.
 
Old 01-13-2010, 10:21 AM   #3
lewpatch
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Resolved by adding 'auth sufficient pam_rhosts_auth.so' as the first non-comment line in /etc/pam.d/rsh.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL3 U2 system: Treminal hangs with commands like ps and top p_test Linux - Enterprise 2 02-15-2008 07:24 AM
Perl rsh hangs Xris718 Programming 2 11-01-2007 10:06 PM
Filesystem set to read-only after reboot (RHEL3 ES) FishR Red Hat 7 02-17-2006 06:38 AM
"java -version" hangs on RHEL3 nuzzy Red Hat 7 02-03-2006 11:29 AM
solaris rdist/slackware rdist version problem jerry950 Slackware 0 02-07-2004 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration