Mail Archives: cygwin/2003/02/21/13:01:08
Hey Gang,
I have run into a very odd behavior. I have not found anything
in the lists where this has been discussed so I am posing it
here. In short, I appear to get a different mount behavior
depending upon whether I get a full interactive ssh session or a
batch session (where I send the command in the line).
For Example:
Interactive looks fine ->
<(prentis AT diva):(prentis)> sudo ssh webhost-n01
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle
attack)!
It is also possible that the RSA1 host key has just been changed.
The fingerprint for the RSA1 key sent by the remote host is
59:ab:69:99:cb:43:4e:d3:b7:7f:26:dc:54:a4:f0:be.
Please contact your system administrator.
Add correct host key in /.ssh/known_hosts to get rid of this message.
Offending key in /.ssh/known_hosts:6912
Password authentication is disabled to avoid man-in-the-middle attacks.
Last login: Fri Feb 21 12:34:01 2003 from diva.web.aol.com
Fanfare!!!
You are successfully logged in to this server!!!
root AT WEBHOST-N01 ~
$ ls -la /
total 122
drwxrwxrwt+ 11 Administ 65535 4096 Feb 6 11:46 .
drwxrwxrwt+ 11 Administ 65535 4096 Feb 6 11:46 ..
drwxrwxrwt+ 3 Administ 65535 73728 Dec 17 12:57 bin
-rwxrwxrwx+ 1 Administ 65535 64 Dec 17 12:57 cygwin.bat
-rwxrwxrwx+ 1 Administ 65535 766 Dec 17 12:57 cygwin.ico
drwxrwxrwx+ 3 root Domain U 0 Feb 6 11:46 data
drwxrwxrwt+ 9 Administ 65535 8192 Feb 4 15:19 etc
drwxrwxrwt+ 5 Administ 65535 0 Feb 4 15:19 home
drwxrwxrwt+ 9 Administ 65535 20480 Dec 17 12:57 lib
drwxrwxrwx+ 2 root Domain U 0 Feb 4 15:19 logs
drwxrwxrwt+ 2 Administ 65535 4096 Feb 6 14:42 tmp
drwxrwxrwt+ 14 Administ 65535 4096 Dec 17 12:54 usr
drwxrwxrwt+ 8 Administ 65535 4096 Dec 17 13:02 var
But inline ->
<(prentis AT diva):(prentis)> sudo ssh webhost-n01 'ls -la /'
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle
attack)!
It is also possible that the RSA1 host key has just been changed.
The fingerprint for the RSA1 key sent by the remote host is
59:ab:69:99:cb:43:4e:d3:b7:7f:26:dc:54:a4:f0:be.
Please contact your system administrator.
Add correct host key in /.ssh/known_hosts to get rid of this message.
Offending key in /.ssh/known_hosts:6912
Password authentication is disabled to avoid man-in-the-middle attacks.
-rwxrwxrwx 1 Administ NETWORK 0 May 23 2001 AUTOEXEC.BAT
-rwxrwxrwx 1 Administ Administ 0 May 23 2001 BOOT.BAK
drwxrwxrwx 1 Administ Administ 0 May 23 2001 COMPAQ
-rwxrwxrwx 1 Administ NETWORK 0 May 23 2001 CONFIG.SYS
drwxrwxrwx 1 Administ NETWORK 0 May 23 2001 CPQSYSTEM
prwxrwxrwx 1 Administ NETWORK 0 May 23 2001 IO.SYS
prwxrwxrwx 1 Administ NETWORK 0 May 23 2001 MSDOS.SYS
drwxrwxrwx 1 Administ NETWORK 4096 Mar 26 2002 Program Files
drwx---rwx 1 Administ Domain U 0 Mar 25 2002 RECYCLER
drwxrwxrwx 1 Administ NETWORK 4096 Apr 26 2002 TEMP
drwxrwxrwx 1 Administ Administ 14336 Nov 12 13:05 WINNT
prwx---r-x 1 Administ Administ 278 May 23 2001 boot.ini
-rwx---rwx 1 Administ Domain A 421 Mar 26 2002 ckSAP.log
drwx---rwx 1 Administ Domain A 0 Dec 17 12:52 cygwin
drwxrwxrwx 1 root Administ 0 Feb 4 15:18 data
drwx---rwx 1 Administ Domain A 0 Dec 17 12:52 nt-bcs
prwx---r-x 1 Administ Administ 26816 May 23 2001 ntdetect.com
prwx---r-x 1 Administ Administ 156496 May 23 2001 ntldr
-rwxrwxrwx 1 Administ NETWORK 200 May 23 2001 setup.log
-rwx---rwx 1 prentis Domain A 3421 Apr 2 2002 ssh_files.txt
drwx---rwx 1 Administ Domain U 0 Feb 21 2002 tools
-rw-rw-rw- 1 prentis Domain A 262733 Feb 12 2002 tools.tar.gz
ls: pagefile.sys: Permission denied
I see C:\ rather than C:\nt-bcs\cygwin\
I am including a cygcheck -s called inline so that you can see as much
of the environment it should be getting as possible. This installation
is being put in a directory other than C:\cygwin, but I don't think that
should cause this problem. Has anyone seen anything similar and can
give a new direction to look?
Cygcheck output ->
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Feb 21 12:44:25 2003
Windows NT Ver 4.0 Build 1381 Service Pack 5
Path: d:\Perl\bin\
c:\WINNT\system32
c:\WINNT
c:\Program Files\Symantec\pcAnywhere
c:\WINNT\System32\WBEM
d:\resourcekit
c:\cygwin\bin
c:\cygwin\usr\bin
c:\Program Files\NetIQ\AppManager\bin
c:\Program Files\NetIQ\Common\bin
c:\nt-bcs\cygwin\bin
SysDir: C:\WINNT\System32
WinDir: C:\WINNT
CYGWIN = `binmode ntsec tty'
HOME = `c:\nt-bcs\cygwin\home\root'
PWD = `/home/root'
USER = `root'
Use `-r' to scan registry
a: fd N/A N/A
c: hd NTFS 4044Mb 27% CP CS UN PA FC
d: hd NTFS 8199Mb 75% CP CS UN PA FC
f: cd N/A N/A
. /cygdrive user binmode,cygdrive
c:\nt-bcs\cygwin / system binmode
c:\nt-bcs\cygwin/bin /usr/bin system binmode
c:\nt-bcs\cygwin/lib /usr/lib system binmode
. /cygdrive user binmode,cygdrive
Found: c:\nt-bcs\cygwin\bin\bash.exe
Found: d:\resourcekit\cat.exe
Found: c:\nt-bcs\cygwin\bin\cat.exe
Not Found: cpp (good!)
Found: d:\resourcekit\find.exe
Found: c:\nt-bcs\cygwin\bin\find.exe
Not Found: gcc
Found: c:\nt-bcs\cygwin\bin\gdb.exe
Found: c:\nt-bcs\cygwin\bin\ld.exe
Found: d:\resourcekit\ls.exe
Found: c:\nt-bcs\cygwin\bin\ls.exe
Found: c:\nt-bcs\cygwin\bin\make.exe
Found: d:\resourcekit\sh.exe
Found: c:\nt-bcs\cygwin\bin\sh.exe
644k 2002/12/08 c:\nt-bcs\cygwin\bin\cygcrypto.dll
45k 2001/04/25 c:\nt-bcs\cygwin\bin\cygform5.dll
35k 2002/01/09 c:\nt-bcs\cygwin\bin\cygform6.dll
19k 2002/02/20 c:\nt-bcs\cygwin\bin\cyggdbm.dll
20k 2002/10/10 c:\nt-bcs\cygwin\bin\cyghistory5.dll
929k 2002/06/24 c:\nt-bcs\cygwin\bin\cygiconv-2.dll
22k 2001/12/13 c:\nt-bcs\cygwin\bin\cygintl-1.dll
28k 2002/09/20 c:\nt-bcs\cygwin\bin\cygintl-2.dll
21k 2001/06/20 c:\nt-bcs\cygwin\bin\cygintl.dll
81k 2000/12/05 c:\nt-bcs\cygwin\bin\cygitcl30.dll
35k 2000/12/05 c:\nt-bcs\cygwin\bin\cygitk30.dll
26k 2001/04/25 c:\nt-bcs\cygwin\bin\cygmenu5.dll
20k 2002/01/09 c:\nt-bcs\cygwin\bin\cygmenu6.dll
156k 2001/04/25 c:\nt-bcs\cygwin\bin\cygncurses++5.dll
175k 2002/01/09 c:\nt-bcs\cygwin\bin\cygncurses++6.dll
226k 2001/04/25 c:\nt-bcs\cygwin\bin\cygncurses5.dll
202k 2002/01/09 c:\nt-bcs\cygwin\bin\cygncurses6.dll
15k 2001/04/25 c:\nt-bcs\cygwin\bin\cygpanel5.dll
12k 2002/01/09 c:\nt-bcs\cygwin\bin\cygpanel6.dll
40k 2001/11/21 c:\nt-bcs\cygwin\bin\cygpcre.dll
39k 2001/11/21 c:\nt-bcs\cygwin\bin\cygpcreposix.dll
22k 2002/06/09 c:\nt-bcs\cygwin\bin\cygpopt-0.dll
127k 2002/10/10 c:\nt-bcs\cygwin\bin\cygreadline5.dll
66k 2001/11/20 c:\nt-bcs\cygwin\bin\cygregex.dll
165k 2002/12/08 c:\nt-bcs\cygwin\bin\cygssl.dll
390k 2000/12/05 c:\nt-bcs\cygwin\bin\cygtcl80.dll
5k 2000/12/05 c:\nt-bcs\cygwin\bin\cygtclpip80.dll
10k 2000/12/05 c:\nt-bcs\cygwin\bin\cygtclreg80.dll
623k 2000/12/05 c:\nt-bcs\cygwin\bin\cygtk80.dll
50k 2002/03/12 c:\nt-bcs\cygwin\bin\cygz.dll
923k 2002/11/27 c:\nt-bcs\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.17
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 67
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: Wed Nov 27 18:54:29 EST 2002
Shared id: cygwin1S3
Cygwin Package Information
Package Version
_update-info-dir 00098-1
ash 20020731-1
base-files 1.1-1
base-passwd 1.0-1
bash 2.05b-8
bcs 1.51-1
binutils 20021117-1
bzip2 1.0.2-2
clear 1.0-1
cpio 2.4.2
cron 3.0.1-7
crypt 1.0-1
ctags 5.2-1
cygrunsrv 0.95-1
cygutils 1.1.3-1
cygwin 1.3.17-1
cygwin-doc 1.2-1
diffutils 2.8.1-1
expect 20010117-1
file 3.37-1
fileutils 4.1-1
findutils 4.1.7-4
gawk 3.1.1-5
gdb 20010428-3
gdbm 1.8.0-4
gettext 0.11.5-1
grep 2.5-1
groff 1.17.2-1
gzip 1.3.3-4
inetutils 1.3.2-19
less 374-1
libiconv2 1.8-2
libintl 0.10.38-3
libintl1 0.10.40-1
libintl2 0.11.5-1
libncurses5 5.2-1
libncurses6 5.2-8
libpopt0 1.6.4-4
libreadline5 4.3-2
login 1.7-1
lynx 2.8.4-1
make 3.79.1-7
man 1.5g-2
mingw-runtime 2.2-1
mktemp 1.4-1
mt 2.0.1-1
nano 1.1.10-1
ncftp 3.1.4-1
ncurses 5.2-8
newlib-man 20020801
openssh 3.5p1-2
openssl 0.9.6h-1
patch 2.5-3
pcre 3.7-1
perl 5.6.1-2
popt 1.6.4-4
python 2.2.2-1
rcs 5.7-3
readline 4.3-2
regex 4.4-2
rsync 2.5.5-2
sed 4.0.1-1
sh-utils 2.0-3
sharutils 4.2.1-2
shutdown 1.2-2
ssmtp 2.38.7-3
tar 1.13.25-1
tcltk 20001125-1
tcp_wrappers 7.6-1
tcsh 6.11.00-5
termcap 20020930-1
terminfo 5.2-3
texinfo 4.2-4
textutils 2.0.21-1
time 1.7-1
unzip 5.50-1
vim 6.1-2
w32api 2.1-1
wget 1.8.2-1
which 1.5-1
whois 4.5.17-1
zip 2.3-2
zlib 1.1.4-1
Use -h to see help about each section
Prentis Brooks | prentis AT aol DOT net | 703-265-0914 | AIM: PrentisBrooks
Senior System Administrator - Web Infrastructure & Security
A knight is sworn to valor. His heart knows only virtue. His blade
defends the helpless. His word speaks only truth. His wrath undoes
the wicked. - the old code of Bowen, last of the dragonslayers
--
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/
- Raw text -