This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

HELP! Running rsh non-interactvively


I want to run cygwin's rsh non-interactively.

To get inetd working I found
http://www.adamswann.com/library/2001/Cygwin-Inetd.html and tried to follow its
advice.

 I did:

     cygrunsrv -I inetd -d "CYGWIN inetd" -p /usr/sbin/inetd -a -d -e
     CYGWIN=ntsec
 cygrunsrv -S inetd



     I was then able to telnet. ftp, and rsh interactively from a Linux box to a
     windows box (its name is "wad").  They all seemed to work very well, but
     they solicit a password.  I use the same login name on both computers.

But when I try:

        rsh wad ls

I get:

     Permission denied

The Cygwin-Inetd.html site has some more stuff:

  Right-click "My Computer" and select Properties.  Click the "Environment
  Variables" button on the "Advanced" tab.  Add a new system variable...the name
  is CYGWIN and the value is "ntsec" (no quotes).  This tells Cygwin to use your
  Windows 2000 security.

  Add C:\Cygwin\Bin\ to the PATH system variable. (Stick it at the end,
  separated from everything else with a semicolon (";")).

  Run "/usr/sbin/inetd.exe --install-as-service".

  Reboot!

But it says to do that only if telnet and ftp don't work and I am afraid to do
anything that drastic if I don't have to to.

"man cygrunsrv" yields "No manual entry for cygrunsrv".  After
/usr/sbin/makewhatis, "man -k cygrunsrv" yields "cygrunsrv: nothing
appropriate".

I would very much appreciate any help.

Background:

I am a Windows beginner.

The Linux box is running Red Hat Linux release 6.2.

The Windows box is running Microsoft Windows 2000, 5.00.2195

"cygcheck -s" yields:


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Jan 24 13:38:02 2002

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	c:\WINNT\SYSTEM32
	c:\WINNT
	c:\WINNT\SYSTEM32\WBEM
	c:\DMI\WIN32\BIN
	C:\cygwin\bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

CYGWIN = `ntsec'
HOME = `C:\cygwin\home\norm'
MAKE_MODE = `unix'
PWD = `/home/norm'
USER = `norm'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  NTFS   76285Mb   8% CP CS UN PA FC     
d:  fd  FAT      238Mb 100% CP    UN           ZIP250
e:  cd           N/A    N/A                    
z:  net NTFS   14061Mb  47% CP CS    PA        public

Z:             /z         user    textmode
.              /cygdrive  user    binmode,noumount
C:/cygwin      /          system  binmode
C:/cygwin/bin  /usr/bin   system  binmode
C:/cygwin/lib  /usr/lib   system  binmode

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll
  621k 2002/01/16 C:\cygwin\bin\cygcrypto.dll
  102k 2001/12/06 C:\cygwin\bin\cygcurl-2.dll
   73k 2002/01/16 C:\cygwin\bin\cygexslt-0.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   20k 2002/01/13 C:\cygwin\bin\cyghistory5.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll
   35k 2000/12/05 C:\cygwin\bin\cygitk30.dll
   45k 2001/07/04 C:\cygwin\bin\cygjbig1.dll
  119k 2001/06/06 C:\cygwin\bin\cygjpeg6b.dll
   19k 2002/01/13 C:\cygwin\bin\cygltdl-3.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  121k 2002/01/13 C:\cygwin\bin\cygreadline5.dll
   66k 2001/11/20 C:\cygwin\bin\cygregex.dll
  156k 2002/01/16 C:\cygwin\bin\cygssl.dll
  390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll
    5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll
   10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll
  245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll
  623k 2000/12/05 C:\cygwin\bin\cygtk80.dll
  612k 2002/01/16 C:\cygwin\bin\cygxml2-2.dll
   41k 2001/07/04 C:\cygwin\bin\cygXpm-noX4.dll
   45k 2001/07/04 C:\cygwin\bin\cygXpm-X4.dll
  202k 2002/01/16 C:\cygwin\bin\cygxslt-1.dll
   22k 2002/01/16 C:\cygwin\bin\cygxsltbreakpoint-1.dll
   50k 2002/01/20 C:\cygwin\bin\cygz.dll
  751k 2002/01/21 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.3.9
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 51
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Mon Jan 21 12:48:41 EST 2002
        Shared id: cygwin1S3


Cygwin Package Information
Package             Version             
ash                 20011018-1          
autoconf            2.52-5              
autoconf-devel      2.52-4              
autoconf-stable     2.13-4              
automake            1.5a-1              
automake-devel      1.5-5               
automake-stable     1.4p5-5             
bash                2.05a-2             
bc                  1.06-1              
binutils            20011002-1          
bison               1.30-1              
byacc               0.0                 
bzip2               1.0.1-6             
clear               1.0                 
compface            1.4-5               
cpio                2.4.2               
cron                3.0.1-5             
crypt               1.0-1               
ctags               5.0.1-1             
curl                7.9.2-1             
cvs                 1.11.0-1            
cygrunsrv           0.94-2              
cygutils            0.9.7-1             
cygwin              1.3.9-1             
dejagnu             20010117-1          
diff                0.0                 
ed                  0.2-1               
expect              20010117-1          
figlet              2.2-1               
file                3.37-1              
fileutils           4.1-1               
findutils           4.1                 
flex                2.5.4-1             
fortune             1.8-1               
gawk                3.0.4-1             
gcc                 2.95.3-5            
gdb                 20010428-1          
gdbm                1.8.0-3             
gettext             0.10.38-2           
ghostscript         6.51-1              
gperf               0.0                 
grep                2.4.2-1             
groff               1.17.2-1            
gzip                1.3.2-1             
indent              2.2.6-2             
inetutils           1.3.2-16            
irc                 20010101-1          
jbigkit             1.2-4               
jpeg                6b-4                
less                358-3               
libintl             0.10.38-3           
libintl1            0.10.40-1           
libncurses5         5.2-1               
libncurses6         5.2-8               
libpng              1.0.12-1            
libpng2             1.0.12-1            
libreadline4        4.1-2               
libreadline5        4.2a-1              
libtool             20010531a-1         
libtool-devel       20010531-6          
libtool-stable      1.4.2-2             
libxml2             2.4.13-1            
libxslt             1.0.10-1            
links               0.96-1              
login               1.4-3               
lynx                2.8.4-1             
m4                  0.0                 
make                3.79.1-5            
man                 1.5g-2              
mingw-runtime       1.1-1               
mktemp              1.4-1               
mt                  2.0.1-1             
mutt                1.2.5i-5            
nano                1.0.6-1             
ncftp               3.0.2-2             
ncurses             5.2-8               
newlib-man          20001118-1          
opengl              1.1.0-5             
openssh             3.0.2p1-4           
openssl             0.9.6c-2            
openssl-devel       0.9.6c-2            
patch               2.5-2               
pcre                3.7-1               
perl                5.6.1-2             
popt                1.6.1-1             
postgresql          7.1.3-1             
python              2.1.1-2             
rcs                 5.7-1               
readline            4.2a-1              
regex               4.4-2               
robots              2.0-1               
rsync               2.4.6-3             
rxvt                2.7.2-6             
sed                 3.02-1              
sh-utils            2.0-2               
sharutils           4.2.1-1             
shutdown            1.2-2               
squid               2.4-STABLE20010508  
ssmtp               2.38.7-3            
tar                 1.13.19-1           
tcltk               20001125-1          
tcsh                6.11.00-2           
termcap             20010825-1          
terminfo            5.2-1               
tetex-beta          20001218-1          
texinfo             4.0-5               
textutils           2.0.16-1            
tiff                3.5.6beta-2         
time                1.7-1               
units               1.77-1              
unzip               5.41-1              
vim                 6.0.93-1            
w32api              1.1-1               
wget                1.7-1               
which               1.5-1               
whois               4.5.17-1            
xpm-nox             4.1.0-1             
zip                 2.3-1               
zlib                1.1.3-7             

Use -h to see help about each section
 
    Norman Shapiro
    798 Barron Avenue
    Palo Alto CA 94306-3109
    (650) 565-8215
    norm@dad.org

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]