Bug 464465

Summary: rsh didn't close connection
Product: Red Hat Enterprise Linux 4 Reporter: Sergey V. Beduev <shaman>
Component: rshAssignee: Adam Tkac <atkac>
Status: CLOSED NOTABUG QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 13:36:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sergey V. Beduev 2008-09-29 10:00:10 UTC
Description of problem:
rsh didn't close connection from remote server, and process still exist in process table.

# date
Mon Sep 29 14:57:59 TMT 2008
# ps -o pid,start,ni,pri,psr,pcpu,stat,wchan:14,comm -p 14979
  PID  STARTED  NI PRI PSR %CPU STAT WCHAN          COMMAND
14979   Sep 04   0  23   0  0.0 S    -              rsh

# lsof -n -p 14979 | grep TCP
rsh     14979 root    3u  IPv4 1962395              TCP 10.0.10.1:1005->172.20.0.6:shell (FIN_WAIT2)
rsh     14979 root    5u  IPv4 1962397              TCP 10.0.10.1:1004->172.20.0.6:1023 (CLOSE_WAIT)

Version-Release number of selected component (if applicable):
kernel-smp-2.6.9-67.EL
rsh-0.17-25.4

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Adam Tkac 2008-10-06 11:51:35 UTC
I'm not able to reproduce this problem. Could you please specify how did you reproduced it? I tried:

- shell & login services enabled (in /etc/xinetd.d/{rsh,rlogin})
- /etc/securetty and ~/.rhosts configured properly
- run "rsh <hostname> ls"
- run "rsh <hostname>"

After that I'm not able to find any rsh process in process table.

Comment 2 Sergey V. Beduev 2009-01-19 14:11:28 UTC
It's my fault. 
Please close this bug.