Problem with RSHELL

Aug 2, 2011
258
4
Berlin, Germany
Hi,

what do I need to get RSHELL working? I'm not shure what

Note: Windows does not include the rshell service, so you will need to get one from a third-party and install it on the remote system before executing RSHELL

means. My target is a NetApp toaster with a unix-like os.

In XP it worked fine:
Code:
C:\Temp >ver /r

TCC LE  12,10,59   Windows XP [Version 5,1,2600]
TCC LE Build 59   Windows XP Build 2600  Service Pack 3

C:\Temp >which rsh
rsh ist ein externer : C:\WINDOWS\system32\rsh.exe

C:\Temp >rsh ber-nas01 version
NetApp Release 7.3.4P4: Fri Nov 19 14:20:42 PST 2010

C:\Temp >

In W7 rsh doens't exist anymore but RSHELL doesn't do what I expected:

Code:
C:\Temp >ver /r

TCC  13.00.26   Windows 7 [Version 6.1.7601]
TCC Build 26   Windows 7 Build 7601  Service Pack 1
Registered to ****************

C:\Temp >which rsh
rsh is an unknown command

C:\Temp >which rshell
rshell is an internal command

C:\Temp >rshell ber-nas01 version
TCC: (Sys) Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig.
"version"

C:\Temp >

frank
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
> what do I need to get RSHELL working? I'm not shure what

It was never in the release version of Windows, though it used to be in the
resource kit. But since Vista it's been removed altogether.

You'll have to find a suitable rsh server (Google "Windows 7 rsh download").
There are a number to choose from.

Though you might be better off switching to a more secure (SSH?) connection.
 
Aug 2, 2011
258
4
Berlin, Germany
But I want to connect to a machine which provides a rsh server.
Do I really need a rsh server on my W7 pc?
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
> But I want to connect to a machine which provides a rsh
> server. Do I really need a rsh server on my W7 pc?

No. The RSHELL command in TCC provides the local client; if you have an
existing rsh server you can connect to it with RSHELL without requiring any
additional software.

(Although as I said in my last message, you will have zero security, so if
the server is remote system you might want to think about using something
like PUTTY / SSH instead.)
 
Aug 2, 2011
258
4
Berlin, Germany
ok, I'm glad that I'm not totally confused (yet ;-).
But that brings us to the origin. Under XP (windows rsh) it works,
but with the TCC rshell does not work.
This is an actual code snippet from my old XP pc:
Code:
>rsh ber-nas01 date
Tue Oct 25 15:18:23 CEST 2011

>rsh ber-nas01 "vol status"
         Volume State           Status            Options
            dod online          raid_dp, flex     create_ucode=on
             SP online          raid_dp, flex     create_ucode=on,
                                                  convert_ucode=on
           nfs0 online          raid_dp, flex     nosnap=on, create_ucode=on,
                                                  convert_ucode=on
            amd online          raid_dp, flex     create_ucode=on
        vollun0 online          raid_dp, flex     nosnap=on, create_ucode=on
        install online          raid_dp, flex     create_ucode=on
       regional online          raid_dp, flex     create_ucode=on
            lzm online          raid_dp, flex     create_ucode=on,
                                                  convert_ucode=on
     apps_projs online          raid_dp, flex     create_ucode=on

Under W7 / TCC rshell gives the abovementioned error.

frank
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
Under W7 / TCC rshell gives the abovementioned error.

Unfortunately, I don't speak German, so I have no idea what the above mentioned error means.

Your RSHELL command line will only work if your RSH server does not expect a username, firewall username and password, and/or remote port. (It seems unlikely that anyone would leave a server so exposed, but I suppose it's possible.) If your server *does* expect any of that information, you can specify it either on the RSHELL command line or in OPTION / Internet.
 
Aug 2, 2011
258
4
Berlin, Germany
Hello Rex,

I really appreciate your patience and engagement with "your users"!

And I guess that you "speak" more computer languages than natural languages :-)
My english is not the best, too and perhaps sometimes my intention is not obvious at the first glance.

In this case both my pc and the NetApp machine are AD domain members and the permitted rsh-users are coded as a pair of "hostname" "username" in a etc/hosts.equiv file. In my opinion this configuration is safe enough for our environment.

... so I do not need to specify user/password. Simply "rsh hostname/ipaddr command" is working, as you can see in my last example from my XP pc.

If you can't translate the error message I will try to install an english W7 pc and reproduce the error in english. Or wouldn't it be ok to use an Server 2008 R2 (same kernel) ? What do you think of that idea?


Frank
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
In this case both my pc and the NetApp machine are AD domain members and the permitted rsh-users are coded as a pair of "hostname" "username" in a etc/hosts.equiv file. In my opinion this configuration is safe enough for our environment.

... so I do not need to specify user/password. Simply "rsh hostname/ipaddr command" is working, as you can see in my last example from my XP pc.

But your XP example wasn't using RSHELL, it was using another rsh client. The XP rsh may have been automatically supplying a username; the RSHELL in TCC definitely does not. So there's no way for your host to know who is trying to connect to it if you don't configure RSHELL in OPTION or supply the parameters on the command line.
 
Aug 2, 2011
258
4
Berlin, Germany
ok, I'm with you. Perhaps I was mislead by
RSHELL

Usage:
RSHELL allows remote execution of commands on any system with the rshell service installed. Press Ctrl-C to disconnect from the other system.

If you don't specify a username, RSHELL will use the current username.

Today I tried rshell on 2 Windows Server 2008 R2 (SP1).
On one it is working! One the other it is not working:

Code:
>ver /r

TCC  13.00.26   Windows 2008R2 [Version 6.1.7601]
TCC Build 26   Windows 2008R2 Build 7601  Service Pack 1
Registered to ****************

>rshell ber-nas01 "ifstat vifm"

-- interface  vifm  (178 days, 12 hours, 11 minutes, 4 seconds) --

RECEIVE
 Total frames:      274m | Frames/second:     289  | Total bytes:      4520g
 Bytes/second:    70184  | Multi/broadcast:  7626k
TRANSMIT
 Total frames:     2299m | Frames/second:     277  | Total bytes:     10969g
 Bytes/second:    42339  | Multi/broadcast: 34600
Code:
[C:\Program Files (x86)\JPSoft\TCMD13]ver /r

TCC  13.00.26   Windows 2008R2 [Version 6.1.7601]
TCC Build 26   Windows 2008R2 Build 7601  Service Pack 1

[C:\Program Files (x86)\JPSoft\TCMD13]rshell ber-nas01 "ifstat vifm"
TCC: (Sys) An attempt was made to access a socket in a way forbidden by its access permissions.
 "ifstat vifm"

[C:\Program Files (x86)\JPSoft\TCMD13]

Now we have at least the english error message ;-)

Slowly but surely I become a little bit frustrated.
But I will dig deeper...


Frank
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
> [C:\Program Files (x86)\JPSoft\TCMD13]rshell ber-nas01 "ifstat vifm"
> TCC: (Sys) An attempt was made to access a socket in a way forbidden
> by its access permissions.

That's a Windows socket error (not a TCC error).

It usually means that somebody else (app, service, or driver) is bound to
the same address with exclusive access.
 
Similar threads
Thread starter Title Forum Replies Date
old coot Problem with INS key flag in the debugger status bar Support 3
Dick Johnson Weird Color Problem Support 10
fishman@panix.com Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9
fishman@panix.com Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2
fishman@panix.com New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
T Fixed Problem with use of Batch parameters in the IDE Support 1
Oz Solomon Problem with "list" Support 14
S V21.24 theme problem Support 2
Alpengreis Problem if command prompt is not legacy Support 4
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
G Odd problem - screen brightness Support 4
rps V20 In-process pipes problem Support 8
Alpengreis Again theme problem [v20.0.21]? Support 11

Similar threads