* any other rexec ideas?
@ 1998-10-28 17:23 Reid van Melle
1998-10-29 5:39 ` Wes Bauske
0 siblings, 1 reply; 2+ messages in thread
From: Reid van Melle @ 1998-10-28 17:23 UTC (permalink / raw)
To: axp-list
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)
Reid van Melle
TRLabs Network Admin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: any other rexec ideas?
1998-10-28 17:23 any other rexec ideas? Reid van Melle
@ 1998-10-29 5:39 ` Wes Bauske
0 siblings, 0 replies; 2+ messages in thread
From: Wes Bauske @ 1998-10-29 5:39 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-10-29 5:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-28 17:23 any other rexec ideas? Reid van Melle
1998-10-29 5:39 ` Wes Bauske
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox