From: Markus Fischer <mfischer@mufasa.informatik.uni-mannheim.de>
Newsgroups: comp.parallel.pvm
Subject: Re: rsh under rshd (on NT 4.0) causes "Access denied" message only
Date: Thu, 22 Apr 1999 09:26:20 +0200
Organization: University of Mannheim
Message-Id: <371ECF1C.2106CA56@mufasa.informatik.uni-mannheim.de>
References: <371C5662.16301240@physik.uni-muenchen.de>
    <371C86B7.5E56A150@mufasa.informatik.uni-mannheim.de>
    <Pine.HPP.3.91.990421154841.24883A-100000@watzmann.cip.physik.uni-muenchen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.pvm:8287


Hi,

you have to modify privileges in order to be allowed to debug a service.
One more time I can say that you should look into the documents to
see how this is done.

Please also download the latest version since there was a bug in the rshd.

Markus

Dmitri Polivaev wrote:

> Hi,
>
> I tryed the recommended method:
>
> > a) make sure you don't have to specify a domain
> > b) use the administrator account
> > c) run the service in debug mode
> >
>
> and got no good results.
>
> 1. On the host hoppla (rsh worked under rshd -install)
>    I could not get any directory listing under rshd -d
>
> 2. On the host r2d2
>    I could not get an access at all.
>
> I send you the full session protocols
> hoping to get some ideas about the reasons
>
> Attachments:
>
> 1. Protocol on host HOPPLA
> 2. Protocol on host r2d2
>
> Protocol on host HOPPLA
>
> C:\PROGRA~1\NT-RSH~1>rshd -remove
> In OpenService
> Error number: 1060
>
> C:\PROGRA~1\NT-RSH~1>configure -list
> administrator administrator ******** 129.187.132.54
> End of file reached
>
> C:\PROGRA~1\NT-RSH~1>rshd -d
> Checking winsock.dll version...
> Creating socket...
> Binding socket...
> Listening on port 514...
> RSHD active.
> Accepting connection...
>                     C:\PROGRA~1\NT-RSH~1>rsh HOPPLA cmd /c cd c:\user
>                     (now output follows on the "rsh"-console)
> Client connected!
> Starting Thread for Program execution...
> Accepting connection...
> Thread started...
> Setting options on the main socket...
> Processing client data...
> Receiving...
> [1] ...got 5 chars.
> [1] stderr port: 1022
> [1] stderr port read: 1022
> [1] Local stderr port: 1021...
> Setting options on the stderr socket...
> Receiving...
> [1] ...got 47 chars.
> [1] Remote user name: Administrator
> [1] Local user name: Administrator
> Checking client...
> [1] Client port: 1023...
> [1] Client hostname: hoppla.krist.geo.uni-muenchen.de IpAddr:
> 129.187.132.54...
> Checking host credentials
> [1] Command: cmd /c dir c:\user
> Sending null byte result...
> error: LogonUser caused error: 1314          (?? it has worked well by
> rshd -install)
> Winsock error: Error number = 1314.
> Closing main socket...
> Closing stderr socket...
> Client disconnected...
>                       (skipped : [2] and [3] like [1]. and now:)
>                       C:\PROGRA~1\NT-RSH~1>rsh HOPPLA cmd /c dir c:\user
> Client connected!
> Starting Thread for Program execution...
> Accepting connection...
> Thread started...
> Setting options on the main socket...
> Processing client data...
> Receiving...
> [4] ...got 5 chars.
> [4] stderr port: 1022
> [4] stderr port read: 1022
> [4] Local stderr port: 1018...
> Setting options on the stderr socket...
> Receiving...
> [4] ...got 47 chars.
> [4] Remote user name: Administrator
> [4] Local user name: Administrator
> Checking client...
> [4] Client port: 1023...
> [4] Client hostname: hoppla.krist.geo.uni-muenchen.de IpAddr:
> 129.187.132.54...
> Checking host credentials
> Sorry, no match found                        (!!!!!!)
> [4] Command: cmd /c dir c:\user
> Sending null byte result...
> Closing main socket...
> Closing stderr socket...
> Client disconnected...
>                       C:\PROGRA~1\NT-RSH~1>rsh HOPPLA cmd /c dir c:\user
> Client connected!
> Starting Thread for Program execution...
> Accepting connection...
> Thread started...
> Setting options on the main socket...
> Processing client data...
> Receiving...
> [5] ...got 5 chars.
> [5] stderr port: 1022
> [5] stderr port read: 1022
> [5] Local stderr port: 1017...
> Setting options on the stderr socket...
> Receiving...
> [5] ...got 47 chars.
> [5] Remote user name: Administrator
> [5] Local user name: Administrator
> Checking client...
> [5] Client port: 1023...
> [5] Client hostname: hoppla.krist.geo.uni-muenchen.de IpAddr:
> 129.187.132.54...
> Checking host credentials
> [5] Command: cmd /c dir c:\user
> Sending null byte result...
> error: LogonUser caused error: 1314
> Winsock error: Error number = 1314.
> Closing main socket...
> Closing stderr socket...
> Client disconnected...
> ^C
>                                       (and now "normal")
> C:\PROGRA~1\NT-RSH~1>rshd -install
> Installing using C:\PROGRA~1\NT-RSH~1\rshd.exe
> Service installed and started.
>
> C:\PROGRA~1\NT-RSH~1>rsh HOPPLA cmd /c dir c:\user
> Datentrdger in Laufwerk C: hat keine Bezeichnung.
> Datentrdgernummer: 2474-BA86
>
> Verzeichnis von c:\user
>
> 15.04.99  12:33         <DIR>          .
> 15.04.99  12:33         <DIR>          ..
> 15.03.99  21:35         <DIR>          allgemein
> (...............................................................skipped)
>               11 Datei(en)              0 Bytes
>                           8.234.941.440 Bytes frei
>
> Protocol on r2d2 NT4.0 Workstation
>
> C:\PROGRA~1\NT-RSH~1>rshd -remove
> In OpenService
> Error number: 1060
>
> C:\PROGRA~1\NT-RSH~1>configure -list
> vpm vpm ******** 129.187.132.119
> End of file reached
>
> C:\PROGRA~1\NT-RSH~1>ping r2d2
>
> PING wird ausgef|hrt f|r r2d2.krist.geo.uni-muenchen.de [129.187.132.119]
> mit 32
>  Bytes Daten:
>
> Antwort von 129.187.132.119: Bytes=32 Zeit<10ms TTL=128
> Antwort von 129.187.132.119: Bytes=32 Zeit<10ms TTL=128
> Antwort von 129.187.132.119: Bytes=32 Zeit<10ms TTL=128
> Antwort von 129.187.132.119: Bytes=32 Zeit<10ms TTL=128
>
> C:\PROGRA~1\NT-RSH~1>rshd -d
> Checking winsock.dll version...
> Creating socket...
> Binding socket...
> Listening on port 514...
> RSHD active.
> Accepting connection...
>
>                          C:\PROGRA~1\NT-RSH~1>rsh r2d2 cmd /c dir c:\user
>                          Access denied.
>
> Client connected!
> Starting Thread for Program execution...
> Accepting connection...
> Thread started...
> Setting options on the main socket...
> Processing client data...
> Receiving...
> [1] ...got 5 chars.
> [1] stderr port: 1022
> [1] stderr port read: 1022
> [1] Local stderr port: 1021...
> Setting options on the stderr socket...
> Receiving...
> [1] ...got 27 chars.
> [1] Remote user name: vpm
> [1] Local user name: vpm
> Checking client...
> [1] Client port: 1023...
> [1] Client hostname: r2d2.krist.geo.uni-muenchen.de IpAddr:
> 129.187.132.119...
> Checking host credentials
> Sorry, no match found                    (!!!!!)
> [1] Command: cmd /c dir c:\user
> Sending null byte result...
> Closing main socket...
> Closing stderr socket...
> Client disconnected...
> ^C
> C:\PROGRA~1\NT-RSH~1>

--
------------------------------------------------------------------------------------
Dipl. Inf. Markus Fischer       Tel.: +49 621 292-1621
University of Mannheim          Fax:  +49 621 292-5597
Computer Architecture           email:mfischer@mufasa.informatik.uni-mannheim.de
B6, 26
68159 Mannheim

