Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: any other rexec ideas?
Date: Thu, 29 Oct 1998 05:39:53 +0000	[thread overview]
Message-ID: <3637FFA9.E38F1483@paralleldata.com> (raw)
In-Reply-To: Pine.LNX.3.96.981028110823.12960B-100000@funnel.sask.trlabs.ca

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 <errno.h>
#include <stdio.h>
#include <netdb.h>

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


      reply	other threads:[~1998-10-29  5:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-28 17:23 any other rexec ideas? Reid van Melle
1998-10-29  5:39 ` Wes Bauske [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox