Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ruserok?
@ 1997-10-02 14:14 Eric Woudenberg
  1997-10-02 15:47 ` ruserok? Aradia
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Woudenberg @ 1997-10-02 14:14 UTC (permalink / raw)


I'd be very happy if some kind Alpha Linux Redhat 4.2 user could
compile this test program and run it:

/* simple ruserok test */

main(int argc, char **argv)
{
  printf("ruserok=%d\n",
	 ruserok(argv[1], 0, argv[2], argv[2]));
}

$ gcc ruserok.c
$ a.out yourhostname yourloginname

When I run it it core dumps. On my SunOS system it prints "ruserok=0".

Thanks,
Rick Woudenberg

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ruserok?
@ 1997-10-02 14:31 John Banghart
  0 siblings, 0 replies; 7+ messages in thread
From: John Banghart @ 1997-10-02 14:31 UTC (permalink / raw)


Compiled and ran it on 4.1 and got core dump.

--
John Banghart
Systems Administrator
Red Rose SuperNet
john@redrose.net

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ruserok?
@ 1997-10-02 15:08 Stefan Schroepfer
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Schroepfer @ 1997-10-02 15:08 UTC (permalink / raw)


Compiled and ran it on an Linux/Intel machine -> o.k.

Stefan Schroepfer
scr@iis.fhg.de

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ruserok?
  1997-10-02 14:14 ruserok? Eric Woudenberg
@ 1997-10-02 15:47 ` Aradia
  0 siblings, 0 replies; 7+ messages in thread
From: Aradia @ 1997-10-02 15:47 UTC (permalink / raw)


On Thu, 2 Oct 1997, Eric Woudenberg wrote:

> I'd be very happy if some kind Alpha Linux Redhat 4.2 user could
> compile this test program and run it:
> 
> /* simple ruserok test */
> 
> main(int argc, char **argv)
> {
>   printf("ruserok=%d\n",
> 	 ruserok(argv[1], 0, argv[2], argv[2]));
> }
> 
> $ gcc ruserok.c
> $ a.out yourhostname yourloginname
> 
> When I run it it core dumps. On my SunOS system it prints "ruserok=0".

I have a sorta Redhat 4.2-ish Alpha (which *still* isn't working right),
and it compiled fine, and ran with output of "ruserok=-1". But at least it
didn't coredump.

  "The true worth of a race must be measured by the character of its woman."
         "...understand, it takes a woman to make a stronger man..."       
                 Protect your freedom - Fight the government               
               ---- finger aradia@teleport.com for pgp key ----            

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ruserok?
       [not found] <3433B8D7.2781E494@iis.fhg.de>
@ 1997-10-02 16:15 ` Travis W. Johnson
  0 siblings, 0 replies; 7+ messages in thread
From: Travis W. Johnson @ 1997-10-02 16:15 UTC (permalink / raw)


> 
> Compiled and ran it on an Linux/Intel machine -> o.k.
> 
> Stefan Schroepfer
> scr@iis.fhg.de
> 

Just for kicks I ran the Linux/Intel binary under em86 0.2 and that 
worked.

gdb on alpha bin --> Program received signal SIGSEGV, Segmentation fault.
                     0x1555583aaac in internal_getent ()

-------     |
 / ravis W. |ohnson
  ----------'
  School of Electrical Engineering & Computer Science
  Washington State University
  Pullman, WA 99164-2752
  tjohnso1@eecs.wsu.edu -- (509)335-1880

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ruserok?
@ 1997-10-02 17:52 Christopher J. Grayce
  0 siblings, 0 replies; 7+ messages in thread
From: Christopher J. Grayce @ 1997-10-02 17:52 UTC (permalink / raw)


> I'd be very happy if some kind Alpha Linux Redhat 4.2 user could
> compile this test program and run it:
> 
> /* simple ruserok test */
>
> main(int argc, char **argv)
> {
>  printf("ruserok=%d\n",
>         ruserok(argv[1], 0, argv[2], argv[2]));
> }
>
> $ gcc ruserok.c
> $ a.out yourhostname yourloginname
>
> When I run it it core dumps. On my SunOS system it prints "ruserok=0".
> 
> Thanks,
> Rick Woudenberg 

Hey, this is cool.  Behold:
------------------------------------------------------------------------
(wasatch)home/cgrayce% gcc ruserok.c
(wasatch)home/cgrayce% a.out wasatch cgrayce
Segmentation fault
(wasatch)home/cgrayce% a.out cgrayce wasatch
ruserok=-1
(wasatch)home/cgrayce%
------------------------------------------------------------------------
"wasatch" is a PC164 running RH 4.2, kernel 2.0.30.
------------------------------------------------------------------------
(flattop)home/cgrayce% gcc ruserok.c
(flattop)home/cgrayce% a.out flattop cgrayce
ruserok=-1
(flattop)home/cgrayce% a.out cgrayce flattop
ruserok=-1
(flattop)home/cgrayce%
------------------------------------------------------------------------
"flattop" is a P5-133 using Slakware Linux, kernel 2.0.30.
------------------------------------------------------------------------
(limantour)home/cgrayce% gcc ruserok.c
(limantour)home/cgrayce% a.out limantour cgrayce
ruserok=-1
(limantour)home/cgrayce% a.out cgrayce limantour
ruserok=-1
(limantour)home/cgrayce%
------------------------------------------------------------------------
and "limantour" is a Digital AlphaStation 600, running DU 3.2C.  

Now "man 3 ruserok" under Linux produces zip, but under DU -- bless
those careful Digital engineers -- we're told the prototype is:

int ruserok (char *host,int root_user,char *remote_user,char *local_user);
                              
so from this point of view it looks like your calling sequence is
backward and when it's done right things work.  Why the "wrong" calling 
sequence segfaults under Linux/Alpha only I've not pursued.

Christopher Grayce
UCI Dept of Chemistry

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ruserok?
       [not found] <199710021752.KAA25831@wasatch.ps.uci.edu>
@ 1997-10-02 23:45 ` Eric Woudenberg
  0 siblings, 0 replies; 7+ messages in thread
From: Eric Woudenberg @ 1997-10-02 23:45 UTC (permalink / raw)


Hi Christopher,

Thanks for checking it out, but ... it looks right to me.

a.out <host> <user> -> ruserok(<host>, 0, <user>, <user>)

Rick

>> I'd be very happy if some kind Alpha Linux Redhat 4.2 user could
>> compile this test program and run it:
>> 
>> /* simple ruserok test */
>>
>> main(int argc, char **argv)
>> {
>>  printf("ruserok=%d\n",
>>         ruserok(argv[1], 0, argv[2], argv[2]));
>> }
>>
>> $ gcc ruserok.c
>> $ a.out yourhostname yourloginname
>>
>> When I run it it core dumps. On my SunOS system it prints "ruserok=0".
>> 
>> Thanks,
>> Rick Woudenberg 
>
>Hey, this is cool.  Behold:
>------------------------------------------------------------------------
>(wasatch)home/cgrayce% gcc ruserok.c
>(wasatch)home/cgrayce% a.out wasatch cgrayce
>Segmentation fault
>(wasatch)home/cgrayce% a.out cgrayce wasatch
>ruserok=-1
>(wasatch)home/cgrayce%
>------------------------------------------------------------------------
>"wasatch" is a PC164 running RH 4.2, kernel 2.0.30.
>------------------------------------------------------------------------
>(flattop)home/cgrayce% gcc ruserok.c
>(flattop)home/cgrayce% a.out flattop cgrayce
>ruserok=-1
>(flattop)home/cgrayce% a.out cgrayce flattop
>ruserok=-1
>(flattop)home/cgrayce%
>------------------------------------------------------------------------
>"flattop" is a P5-133 using Slakware Linux, kernel 2.0.30.
>------------------------------------------------------------------------
>(limantour)home/cgrayce% gcc ruserok.c
>(limantour)home/cgrayce% a.out limantour cgrayce
>ruserok=-1
>(limantour)home/cgrayce% a.out cgrayce limantour
>ruserok=-1
>(limantour)home/cgrayce%
>------------------------------------------------------------------------
>and "limantour" is a Digital AlphaStation 600, running DU 3.2C.  
>
>Now "man 3 ruserok" under Linux produces zip, but under DU -- bless
>those careful Digital engineers -- we're told the prototype is:
>
>int ruserok (char *host,int root_user,char *remote_user,char *local_user);
>                              
>so from this point of view it looks like your calling sequence is
>backward and when it's done right things work.  Why the "wrong" calling 
>sequence segfaults under Linux/Alpha only I've not pursued.
>
>Christopher Grayce
>UCI Dept of Chemistry
>
>--
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1997-10-02 23:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-10-02 15:08 ruserok? Stefan Schroepfer
     [not found] <199710021752.KAA25831@wasatch.ps.uci.edu>
1997-10-02 23:45 ` ruserok? Eric Woudenberg
  -- strict thread matches above, loose matches on Subject: below --
1997-10-02 17:52 ruserok? Christopher J. Grayce
     [not found] <3433B8D7.2781E494@iis.fhg.de>
1997-10-02 16:15 ` ruserok? Travis W. Johnson
1997-10-02 14:31 ruserok? John Banghart
1997-10-02 14:14 ruserok? Eric Woudenberg
1997-10-02 15:47 ` ruserok? Aradia

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