From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5296 invoked from network); 29 Oct 1998 05:43:28 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 29 Oct 1998 05:43:28 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA02768 for ; Thu, 29 Oct 1998 00:32:17 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Wed, 28 Oct 1998 23:33:43 -0600 Received: by paralleldata.com from paralleldata.com (208.254.18.178::mail daemon; unverified,SLMail V2.5); Wed, 28 Oct 1998 23:33:41 -0600 Sender: "Wsb" Message-ID: <3637FFA9.E38F1483@paralleldata.com> Date: Thu, 29 Oct 1998 05:39:53 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: any other rexec ideas? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reid van Melle wrote: > > Does anybody have any other ideas concerning why rexec does not > seem to work from PC/Mac clients? Is anybody successfully running rexec > clients such as xterm to PC and/or Macs through software such as Exodus or > WebTermX? This seems like it should be a very easy thing to get working. > I've read every relevant book sections, man page, faqs, etc I can get my > hands on and no luck. Are there any UNIX programs which use rexec > facilities for testing? i.e. could this be an incompatibility in the > format of the rexec call? > > I think I've eliminated all the obvious possibilities: > > - service is correctly configured in the inetd.conf and listed in services > inetd: exec stream tcp nowait root /usr/sbin/tcpd in.rexecd > services: exec 512/tcp # BSD rexecd(8) > > - installed the very latest TCP wrappers (7.6-5) and rsh (0.10-4) > facilities (no difference) > > - X-traffic and such is routed no problem between the RedHat boxes and > PC-clients > > - no authentication failures are showing up in /var/log/messages or > /var/log/secure > > - /etc/hosts.allow is set as follows: > ALL : ALL > > -/etc/pam.d/rexec entries are as follows: > #%PAM-1.0 > auth required /lib/security/pam_securetty.so > auth required /lib/security/pam_pwdb.so shadow nullok > auth required /lib/security/pam_nologin.so > account required /lib/security/pam_pwdb.so > > -% tcpdchk -v > Using network configuration file: /etc/inetd.conf > > >>> Rule /etc/hosts.allow line 7: > daemons: ALL > clients: ALL > access: granted > > -no problems with name resolution, routing etc (simple LAN hidden behind a > firewall) > >From what I can tell, PAM is failing in authentification for a little test program I tried: #include #include #include int main(int argc, char ** argv) { int istat, sock=0; int portno=512; struct servent * myservent; /* * directly use command line args */ char * hostnm; hostnm=argv[1]; fprintf(stderr,"args: %s %s %s %s\n",argv[1],argv[2],argv[3],argv[4]); myservent=getservbyname("exec","tcp"); if(myservent) fprintf(stderr,"s_name=%s s_port=%d\n",myservent->s_name, myservent->s_port); /* username passwd cmd */ istat=rexec(&hostnm, myservent->s_port, argv[2], argv[3], argv[4], 0); fprintf(stderr,"status from rexec == %d\n", istat); } This code returns "No such file or directory" when run against my Alpha or an Intel Linux box. At least it's not specific to Alpha.... Probably some sort of config problem. Looks like PAM can load modules on the fly. I'd bet one of them is missing on the systems. Wes