Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Enabling the rexec service under Redhat 9

Enabling the rexec service under Redhat 9

2005-02-07       - By George Haeh

 Back
I saw Hanny Tidore's effort to make this work last month, but did not see any
indication of success.  This is what I have been up to this weekend to get
rexec working from a z/OS client (IBM mainframe):

Response from REXEC after working over RH 9 iptables and xinetd.conf:

EZA4801I  MVS TCP/IP REXEC CS V1R5
EZA4810E  The call to rexec_af() function failed:
EZA4744I  Foreign host aborted the connection.
rexecd-connect    :rexecd-connect-success:

The bottom line is the contents of splash files I set up in the xinetd.conf
member:

[flexes@(protected) flexes]$ cat /etc/xinetd.d/rexec
# default: off
# description: Rexecd is the server for the rexec(3) routine.  The server \
# provides remote execution facilities with authentication based \
# on user names and passwords.
service exec
{
disable = no
socket_type  = stream
wait   = no
user   = root
log_on_success  += USERID
log_on_failure   += USERID
server   = /usr/sbin/in.rexecd
only_from = 192.168.1.7
log_type  = FILE /usr/flexes/rexecd.log
log_on_success += PID
log_on_success += HOST
log_on_success += EXIT
log_on_success += DURATION

log_on_failure += HOST

banner         = /usr/flexes/rexecd-connect.txt
banner_success = /usr/flexes/rexecd-connect-success.txt
banner_fail    = /usr/flexes/rexecd-connect-fail.txt
}
[flexes@(protected) flexes]$


The log shows:

START: exec pid=27821 from=192.168.1.7
EXIT: exec status=1 pid=27821 duration=31(sec)
START: exec pid=27868 from=192.168.1.7
EXIT: exec status=1 pid=27868 duration=30(sec)
START: exec pid=27886 from=127.0.0.1             <=== Loopback inside Linux
FAIL: exec address from=127.0.0.1
EXIT: exec status=0 pid=27886 duration=0(sec)
START: exec pid=5885 from=192.168.1.7             <=== tried touch
EXIT: exec signal=13 pid=5885 duration=30(sec)    <=== Broken pipe
START: exec pid=6101 from=192.168.1.7
EXIT: exec status=1 pid=6101 duration=30(sec)
START: exec pid=6179 from=192.168.1.7
EXIT: exec status=1 pid=6179 duration=30(sec)

Note that the rexec on the loopback (i.e. from inside Linux) had to be aborted
manually as it sat and did nothing for several minutes.

Here's selected netstat and iptables output:

[root@(protected) root]# netstat -ap|grep exec
tcp        0      0 *:exec                  *:*                     LISTEN
6174/xinetd

Chain RH-Lokkit-0 (See http://kit-0.ora-code.com)-50-INPUT (2 references)
target     prot opt source               destination
ACCEPT     tcp  --  192.168.1.7          anywhere           tcp dpt:exec
ACCEPT     tcp  --  192.168.1.7          anywhere           tcp dpt:shell
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:telnet flags
:SYN,RST,ACK/SYN

I tried with and without --syn

I also enabled and tried rsh and got less response.


By the way, I tried rexec from the same client to a Unixware system -- it works
just fine -- excepting that I should tighten up that firewall.

--
George Haeh

--
Shrike-list mailing list
Shrike-list@(protected)
https://www.redhat.com/mailman/listinfo/shrike-list