public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* ssh-host-config doesn't chown /var/empty properly from setup.exe
@ 2006-06-19 20:19 Thrall, Bryan
  2006-06-19 21:41 ` Igor Peshansky
  0 siblings, 1 reply; 7+ messages in thread
From: Thrall, Bryan @ 2006-06-19 20:19 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 987 bytes --]


I've created a package which does some automatic configuration in its
postinstall script, including running `ssh-host-config -y < /dev/null`.
When setup.exe runs this postinstall script, ssh-host-install works
almost perfectly, except that it doesn't chown /var/empty properly:
/var/empty ends up owned by the user who is running setup.exe and group
"none" when it should be SYSTEM.root. It also ends up with 700
permissions instead of 755.

ssh-host-config has no problems when run from an xterm or tty; I've only
noticed it happening when executed from a postinstall script. I'm trying
to install on a WinXP machine, the user has administrative privileges,
and I tested the latest setup snapshot (2.529) but no luck. I didn't
notice any obvious clues from the setup source, either.

Any suggestions? Cygcheck output from the target machine is attached, in
case it helps.

Thanks,
--
Bryan Thrall
FlightSafety International
Bryan.Thrall@flightsafety.com 

.


[-- Attachment #2: cygcheck.txt --]
[-- Type: text/plain, Size: 29191 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Mon Jun 19 15:15:34 2006

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	.\
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	c:\WINDOWS\system32
	c:\WINDOWS
	c:\WINDOWS\System32\Wbem
	C:\cygwin\home\visual\v9win\tap
	C:\cygwin\vss\ems\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1005(visual)   GID: 513(None)
0(root)             513(None)           544(Administrators) 545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1005(visual)   GID: 513(None)
0(root)             513(None)           544(Administrators) 545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = `visual'
PWD = `/home/visual'
HOME = `/home/visual'
MAKE_MODE = `unix'

HOMEPATH = `\Documents and Settings\visual'
MANPATH = `/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = `C:\Documents and Settings\visual\Application Data'
HOSTNAME = `Vitalx_vcc'
XKEYSYMDB = `/usr/X11R6/lib/X11/XKeysymDB'
EMS = `/vss/ems'
TERM = `xterm'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 4 Stepping 4, GenuineIntel'
WINDIR = `C:\WINDOWS'
WINDOWID = `2097166'
OLDPWD = `/cygdrive/c/Documents and Settings/visual'
SUPPRESS_HE_TOOLS = `true'
USERDOMAIN = `VITALX_VCC'
OS = `Windows_NT'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
XAPPLRESDIR = `/home/visual/v9win/tap/app-defaults'
XTERM_SHELL = `/bin/bash'
XCMSDB = `/usr/X11R6/lib/X11/Xcms.txt'
!:: = `::\'
TEMP = `/cygdrive/c/DOCUME~1/visual/LOCALS~1/Temp'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
XNLSPATH = `/usr/X11R6/lib/X11/locale'
TERMCAP = `xterm-r6|xterm|xterm X11R6 version:am:km:mi:ms:xn:co#80:it#8:li#24:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:kb=\010:'
TAP = `/home/visual/v9win/tap'
USERNAME = `visual'
PROCESSOR_LEVEL = `15'
FP_NO_HOST_CHECK = `NO'
SYSTEMDRIVE = `C:'
CYGWIN_ROOT = `\cygwin'
USERPROFILE = `C:\Documents and Settings\visual'
CLIENTNAME = `Console'
LOG_LIMIT_KB = `102400'
SYSNAME = `Vitalx_vcc'
PS1 = `\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = `\\VITALX_VCC'
PROCESSOR_ARCHITECTURE = `x86'
!C: = `C:\Documents and Settings\visual'
XTERM_VERSION = `Cygwin 6.8.2.0(202)'
ENV_PATH = `/home/visual/env:/vss_db/new:/vss_db/new/test_align:/vss_db/new/common:/vss_db/new/models:/vss_db/new/wide_area:/vss_db/new/north_amer_env:/vss_db/new/south_amer_env:/vss_db/new/europe_env:/vss_db/new/japan_env:/vss_db/new/asia_env:/vss_db/new/australia_env:/vss_db/new/helicopter'
SHLVL = `1'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = `C:'
PROMPT = `$P$G'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
ORIG_PATH = `/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:.:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem'
LOGNAME = `visual'
TMP = `/cygdrive/c/DOCUME~1/visual/LOCALS~1/Temp'
SYSTEMROOT = `C:\WINDOWS'
PRINTER = `Intuit Internal Printer'
CVS_RSH = `/bin/ssh'
PROCESSOR_REVISION = `0404'
PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig'
INFOPATH = `/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = `C:\Program Files'
ORIG_CDPATH = `:'
DISPLAY = `127.0.0.1:0.0'
NUMBER_OF_PROCESSORS = `2'
SESSIONNAME = `Console'
COMPUTERNAME = `VITALX_VCC'
!EXITCODE = `00000000'
SONICCENTRAL = `C:\Program Files\Common Files\Sonic Shared\Sonic Central\'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
  (default) = 0x00000080
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS    238362Mb   5% CP CS UN PA FC     
d:  cd             N/A    N/A                    
e:  cd             N/A    N/A                    
z:  net NTFS    986928Mb  94% CP CS    PA        vsslib

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.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\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   56k 2005/07/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2005/7/9 0:09
   18k 2004/07/06 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2004/7/6 13:09
    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 2:57
  858k 2005/04/11 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2005/4/11 13:21
 1042k 2005/07/07 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2005/7/7 4:06
  895k 2004/04/28 C:\cygwin\bin\cygdb-4.2.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.2.dll" v0.0 ts=2004/4/27 10:31
  965k 2005/05/14 C:\cygwin\bin\cygdb-4.3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.3.dll" v0.0 ts=2005/5/14 7:37
 1156k 2004/04/28 C:\cygwin\bin\cygdb_cxx-4.2.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.2.dll" v0.0 ts=2004/4/27 10:35
 1240k 2005/05/14 C:\cygwin\bin\cygdb_cxx-4.3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.3.dll" v0.0 ts=2005/5/14 7:41
  174k 2004/10/14 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2004/10/14 3:34
  129k 2004/03/11 C:\cygwin\bin\cygfontconfig-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontconfig-1.dll" v0.0 ts=2004/3/10 18:12
   40k 2005/07/10 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2005/7/9 22:29
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 0:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 0:03
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 4:25
  859k 2005/08/08 C:\cygwin\bin\cygfpx-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfpx-1.dll" v0.0 ts=2005/8/8 16:35
  361k 2003/10/25 C:\cygwin\bin\cygfreetype-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygfreetype-6.dll" v0.0 ts=2003/10/21 23:18
  222k 2005/01/13 C:\cygwin\bin\cyggd-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyggd-2.dll" v0.0 ts=2005/1/13 9:56
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 2:58
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/10 21:12
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/19 21:05
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 3:00
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 21:13
  116k 2004/10/10 C:\cygwin\bin\cyggeotiff-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggeotiff-1.dll" v0.0 ts=2004/10/10 18:55
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/6 22:34
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/10 18:16
   24k 2005/07/29 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2005/7/28 22:57
  991k 2004/07/06 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2004/7/6 13:10
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 3:28
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 16:50
   54k 2004/07/06 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2004/7/6 12:51
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 12:09
  241k 2004/08/06 C:\cygwin\bin\cygjasper-1-701-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygjasper-1-701-1.dll" v0.0 ts=2004/8/6 10:17
   48k 2003/08/10 C:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
                  "cygjbig1.dll" v0.0 ts=2003/8/10 18:58
  132k 2003/08/11 C:\cygwin\bin\cygjpeg-62.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg-62.dll" v0.0 ts=2003/8/10 19:37
  119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2002/2/8 23:19
  156k 2005/08/08 C:\cygwin\bin\cyglcms-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyglcms-1.dll" v0.0 ts=2005/8/8 5:15
   41k 2005/06/01 C:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-3.dll" v0.0 ts=2005/6/1 0:34
   68k 2005/08/26 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2005/8/26 17:50
  369k 2004/08/11 C:\cygwin\bin\cygMagick++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygMagick++-6.dll" v0.0 ts=2004/8/11 1:04
 3214k 2004/08/11 C:\cygwin\bin\cygMagick-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygMagick-6.dll" v0.0 ts=2004/8/11 0:37
   21k 2005/07/10 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2005/7/9 22:28
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 0:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 0:03
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 4:25
   21k 2004/10/22 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.0 sys=4.0
                  "cygminires.dll" v0.0 ts=2004/10/22 15:28
   67k 2005/07/10 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2005/7/9 22:29
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 0:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 0:03
  225k 2005/07/10 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2005/7/9 22:15
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 0:17
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 0:03
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 4:24
   11k 2005/07/10 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2005/7/9 22:28
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 0:27
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 0:03
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 4:24
   62k 2003/12/11 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2003/12/11 11:01
   63k 2003/04/11 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2003/4/11 3:31
    9k 2003/12/11 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2003/12/11 11:01
   61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2003/4/11 3:31
 1248k 2005/08/22 C:\cygwin\bin\cygperl5_8.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_8.dll" v0.0 ts=2005/8/22 15:06
  230k 2005/07/11 C:\cygwin\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2005/7/11 18:50
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 0:45
  575k 2004/10/10 C:\cygwin\bin\cygproj-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygproj-0.dll" v0.0 ts=2004/10/10 17:57
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/6 22:34
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/10 18:16
  144k 2005/07/29 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2005/7/28 22:57
  171k 2005/04/11 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2005/4/11 13:21
  217k 2005/07/07 C:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2005/7/7 4:07
  304k 2005/07/10 C:\cygwin\bin\cygtiff-5.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff-5.dll" v0.0 ts=2005/7/10 18:18
  282k 2003/08/11 C:\cygwin\bin\cygtiff4.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff4.dll" v0.0 ts=2003/8/10 21:32
  281k 2005/07/10 C:\cygwin\bin\cygtiffxx-5.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiffxx-5.dll" v0.0 ts=2005/7/10 18:21
   27k 2004/03/05 C:\cygwin\bin\cygungif-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygungif-4.dll" v0.0 ts=2004/3/5 14:13
  154k 2004/08/11 C:\cygwin\bin\cygWand-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygWand-6.dll" v0.0 ts=2004/8/11 1:04
 1383k 2005/07/17 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2005/7/16 13:33
   65k 2005/08/23 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2005/8/22 21:03
 1265k 2005/07/03 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2005/7/2 19:30
    Cygwin DLL version info:
        DLL version: 1.5.18
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 132
        Shared data: 4
        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: Sat Jul 2 20:30:04 EDT 2005
        Shared id: cygwin1S4

  243k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygdps-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdps-1.dll" v0.0 ts=2005/2/23 8:42
   26k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygdpstk-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdpstk-1.dll" v0.0 ts=2005/2/23 8:42
   28k 2004/03/31 C:\cygwin\usr\X11R6\bin\cygDtPrint-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygDtPrint-1.dll" v0.0 ts=2004/3/30 22:23
   21k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygfontenc-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontenc-1.dll" v0.0 ts=2005/2/23 8:45
   36k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygFS-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygFS-6.dll" v0.0 ts=2005/2/23 8:34
  358k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygGL-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygGL-1.dll" v0.0 ts=2005/2/23 8:39
  438k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygGLU-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygGLU-1.dll" v0.0 ts=2005/2/23 8:41
  140k 2004/08/06 C:\cygwin\usr\X11R6\bin\cygglut-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygglut-3.dll" v0.0 ts=2004/8/6 9:43
   75k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygICE-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygICE-6.dll" v0.0 ts=2005/2/23 8:28
   77k 2004/03/31 C:\cygwin\usr\X11R6\bin\cygMrm-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygMrm-2.dll" v0.0 ts=2004/3/30 22:23
    9k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygoldX-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygoldX-6.dll" v0.0 ts=2005/2/23 8:28
 1413k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygOSMesa-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygOSMesa-4.dll" v0.0 ts=2005/2/23 8:39
   20k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygpsres-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpsres-1.dll" v0.0 ts=2005/2/23 8:42
   30k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygSM-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygSM-6.dll" v0.0 ts=2005/2/23 8:28
   66k 2004/03/31 C:\cygwin\usr\X11R6\bin\cygUil-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygUil-2.dll" v0.0 ts=2004/3/30 22:23
  877k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygX11-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygX11-6.dll" v0.0 ts=2005/2/23 8:28
  254k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXaw-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXaw-6.dll" v0.0 ts=2005/2/23 8:31
  356k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXaw-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygXaw-7.dll" v0.0 ts=2005/2/23 8:32
  363k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXaw-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygXaw-8.dll" v0.0 ts=2005/2/23 8:33
  275k 2004/01/13 C:\cygwin\usr\X11R6\bin\cygXaw3d-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygXaw3d-7.dll" v0.0 ts=2004/1/13 16:17
    9k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXcomposite-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXcomposite-1.dll" v0.0 ts=2005/2/23 8:44
   30k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXcursor-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXcursor-1.dll" v0.0 ts=2005/2/23 8:43
    9k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXdamage-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXdamage-1.dll" v0.0 ts=2005/2/23 8:44
    7k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXevie-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXevie-1.dll" v0.0 ts=2005/2/23 8:43
   49k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXext-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXext-6.dll" v0.0 ts=2005/2/23 8:28
   16k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXfixes-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygXfixes-3.dll" v0.0 ts=2005/2/23 8:43
   56k 2004/03/11 C:\cygwin\usr\X11R6\bin\cygXft-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXft-1.dll" v0.0 ts=2003/11/17 19:42
   63k 2004/03/23 C:\cygwin\usr\X11R6\bin\cygXft-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXft-2.dll" v0.0 ts=2004/3/23 16:20
   27k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXi-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXi-6.dll" v0.0 ts=2005/2/23 8:34
  125k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygxkbfile-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygxkbfile-1.dll" v0.0 ts=2005/2/23 8:34
   12k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygxkbui-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygxkbui-1.dll" v0.0 ts=2005/2/23 8:34
 1294k 2004/03/31 C:\cygwin\usr\X11R6\bin\cygXm-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXm-2.dll" v0.0 ts=2004/3/30 22:20
   76k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXmu-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXmu-6.dll" v0.0 ts=2005/2/23 8:30
   11k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXmuu-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXmuu-1.dll" v0.0 ts=2005/2/23 8:30
   26k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXp-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXp-6.dll" v0.0 ts=2005/2/23 8:31
   52k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXpm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-4.dll" v0.0 ts=2005/2/23 8:30
   12k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXrandr-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXrandr-2.dll" v0.0 ts=2005/2/23 8:43
   28k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXrender-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXrender-1.dll" v0.0 ts=2005/2/23 8:42
    8k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXRes-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXRes-1.dll" v0.0 ts=2005/2/23 8:43
   40k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygxrx-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygxrx-6.dll" v0.0 ts=2005/2/23 8:53
   25k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygxrxnest-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygxrxnest-6.dll" v0.0 ts=2005/2/23 8:53
  282k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXt-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXt-6.dll" v0.0 ts=2005/2/23 8:29
   27k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXTrap-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXTrap-6.dll" v0.0 ts=2005/2/23 8:43
   17k 2005/02/23 C:\cygwin\usr\X11R6\bin\cygXtst-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXtst-6.dll" v0.0 ts=2005/2/23 8:34

Service             : inetd
Display name        : CYGWIN inetd
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/inetd -D
stdin path          : /dev/null
stdout path         : /var/log/inetd.log
stderr path         : /var/log/inetd.log
Special flags       : --interactive --nohide 
Process Type        : Own Process, Interactive
Startup             : Automatic
Account             : LocalSystem

Service             : sshd
Display name        : CYGWIN sshd
Current State       : Stopped
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Environment         : CYGWIN="ntsec" 
Process Type        : Own Process
Startup             : Automatic
Account             : LocalSystem


Cygwin Package Information
Last downloaded files to: Z:\vitalpc\dev\7.2.8\image\vital-install
Last downloaded files from: http://courier.vss.fsi.com/~thrall/cygwin-mirror

Package              Version
_update-info-dir     00296-1
acdoxygen            1.0.0-3
alternatives         1.3.20a-1
ash                  20040127-3
autoconf             2.59-2
autoconf2.1          2.13-1
autoconf2.5          2.59-2
automake1.4          1.4p6-2
base-files           3.6-1
base-passwd          2.2-1
bash                 3.0-11
binutils             20050610-1
bzip2                1.0.3-1
coreutils            5.3.0-9
crypt                1.1-1
ctags                5.5-4
cvs                  1.11.17-1
cygrunsrv            1.10-1
cygutils             1.2.9-1
cygwin               1.5.18-1
cygwin-doc           1.4-2
diffutils            2.8.7-1
editrights           1.01-1
emacs                21.2-13
emacs-X11            21.2-13
expat                1.95.8-1
file                 4.15-2
findutils            20041227-1
fontconfig           2.2.2-1
freeglut             2.2.0-1
freetype2            2.1.5-1
gawk                 3.1.5-1
gcc-core             3.4.4-1
gcc-g++              3.4.4-1
gcc-g77              3.4.4-1
gcc-mingw-core       20050522-1
gcc-mingw-g++        20050522-1
gcc-mingw-g77        20050522-1
gdb                  20041228-3
gdbm                 1.8.3-7
gettext              0.14.1-1
gnuplot              4.0.0-1
grep                 2.5.1a-2
groff                1.18.1-2
gzip                 1.3.5-1
ImageMagick          6.0.4-1
inetutils            1.3.2-34
jasper               1.701.0-1
jbigkit              1.5-3
jpeg                 6b-11
lcms                 1.14-1
less                 381-1
lesstif              0.93.94-2
lftp                 2.6.10-2
libbz2_1             1.0.3-1
libcharset1          1.9.2-1
libdb4.2             4.2.52-1
libdb4.3             4.3.28-1
libdwarf             20040315-2
libelf               1.0.0-1
libfontconfig-devel  2.2.2-1
libfontconfig1       2.2.2-1
libfpx               1.2.0.12-1
libfreetype2-devel   2.1.5-1
libfreetype26        2.1.5-1
libgd2               2.0.33-1
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-7
libgdbm3             1.8.3-3
libgdbm4             1.8.3-7
libgeotiff-devel     1.2.2-1
libgeotiff1          1.2.2-1
libiconv             1.9.2-1
libiconv2            1.9.2-1
libintl              0.10.38-3
libintl1             0.10.40-1
libintl2             0.12.1-3
libintl3             0.14.1-1
libjpeg62            6b-11
libjpeg6b            6b-8
libltdl3             1.5.18-1
libMagick-devel      6.0.4-1
libMagick6           6.0.4-1
libncurses-devel     5.4-2
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-4
libncurses8          5.4-2
libpcap              3.0.0-9
libpcre              4.1-1
libpcre0             4.5-1
libpng12             1.2.8-2
libpng12-devel       1.2.8-2
libpopt0             1.6.4-4
libproj-devel        4.4.8-1
libproj0             4.4.8-1
libreadline4         4.1-2
libreadline5         4.3-5
libreadline6         5.0-4
libtiff-devel        3.7.3-1
libtiff4             3.6.0-5
libtiff5             3.7.3-1
libtool1.5           1.5.18-1
libungif             4.1.0-3
libvitalir           1.0.0-9
libXft               2.1.6-1
libXft-devel         2.1.6-1
libXft1              1.0.0-1
libXft2              2.1.6-1
libxml2              2.6.20-3
libxml2-devel        2.6.20-3
login                1.9-7
m4                   1.4.3-1
make                 3.80-1
man                  1.5p-1
mingw-runtime        3.8-1
minires              1.00-1
mktemp               1.5-3
ncurses              5.4-2
opengl               1.1.0-7
openssh              4.1p1-2
openssl              0.9.8-2
openssl097           0.9.7g-1
patch                2.5.8-8
pcre                 4.5-1
pcre-doc             4.5-1
pdksh                5.2.14-3
perl                 5.8.7-4
PerlMagick           6.0.4-2
PerlTk               804.027-1
PerlXMLSimple        2.14-1
rebase               2.4.2-1
rsync                2.6.6-1
rxvt                 2.7.10-6
scramnet             1.64-1
sed                  4.1.4-1
sysvinit             2.84-4
tar                  1.15.1-2
tcltk                20030901-1
termcap              20050421-1
terminfo             5.4_20041009-1
texinfo              4.8-1
tiff                 3.7.3-1
v9win                7.2.8-2
vim                  6.3-1
vitalconfig          1.0.0-20
vitaldev             1.0.0-2
w32api               3.3-1
which                1.7-1
X-start-menu-icons   1.0.3-2
X-startup-scripts    1.0.10-4
Xaw3d                1.5D-5
xerces-c-devel       2.5.0-1
xorg-x11-base        6.8.2.0-1
xorg-x11-bin         6.8.2.0-1
xorg-x11-bin-dlls    6.8.2.0-1
xorg-x11-bin-lndir   6.8.2.0-1
xorg-x11-devel       6.8.2.0-2
xorg-x11-etc         6.8.2.0-1
xorg-x11-fenc        6.8.1.0-2
xorg-x11-fnts        6.8.1.0-3
xorg-x11-libs-data   6.8.2.0-1
xorg-x11-xwin        6.8.2.0-4
xterm                202-1
zlib                 1.2.3-1
Use -h to see help about each section

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: ssh-host-config doesn't chown /var/empty properly from setup.exe
@ 2006-06-19 22:47 Thrall, Bryan
  2006-06-20  0:04 ` Igor Peshansky
  0 siblings, 1 reply; 7+ messages in thread
From: Thrall, Bryan @ 2006-06-19 22:47 UTC (permalink / raw)
  To: cygwin-apps

Igor Peshansky wrote on Monday, June 19, 2006 4:41 PM:
> On Mon, 19 Jun 2006, Thrall, Bryan wrote:
> 
>> I've created a package which does some automatic configuration in its
>> postinstall script, including running `ssh-host-config -y <
>> /dev/null`. When setup.exe runs this postinstall script,
>> ssh-host-install works almost perfectly, except that it doesn't
>> chown /var/empty properly: /var/empty ends up owned by the user who
>> is running setup.exe and group "none" when it should be SYSTEM.root.
>> It also ends up with 700 permissions instead of 755. 
>> 
>> ssh-host-config has no problems when run from an xterm or tty; I've
>> only noticed it happening when executed from a postinstall script.
>> I'm trying to install on a WinXP machine, the user has
>> administrative privileges, and I tested the latest setup snapshot
>> (2.529) but no luck. I didn't notice any obvious clues from the
>> setup source, either. 
>> 
>> Any suggestions? Cygcheck output from the target machine is
>> attached, in case it helps.
> 
> At a guess, your package is not dependent on the "base-passwd"
> package, and thus setup is free to run your postinstall script before
> /etc/passwd is created (which would result in chown not knowing who
> SYSTEM or root is).  Add base-passwd to the "requires:" line of your
> setup.hint, and see if it helps.
> 
> You can check that by looking at the order of script execution in
> setup.log.full.
> 	Igor

Actually, I get the same results even if I try to install my package as
a separate step, after completely installing all the standard Cygwin
packages I need (Sorry I didn't make that clear). I'm testing on a
machine with a working Cygwin installation and just reinstalling my
package (I delete /var/empty and cygrunsrv -R sshd before each attempt,
so ssh-host-config has something to do). Running ssh-host-config in the
same context (working Cygwin, no /var/empty, sshd not installed as a
service), but from an xterm or tty sets up /var/empty just fine.

I just confirmed that /etc/passwd has the user, SYSTEM, and sshd in it,
and /etc/group has root (just in case that could've still been the
problem).

-- 
Bryan Thrall
FlightSafety International
Bryan.Thrall@flightsafety.com

.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: ssh-host-config doesn't chown /var/empty properly from setup.exe
@ 2006-06-20 14:50 Thrall, Bryan
  0 siblings, 0 replies; 7+ messages in thread
From: Thrall, Bryan @ 2006-06-20 14:50 UTC (permalink / raw)
  To: cygwin-apps

Igor Peshansky wrote on Tuesday, June 20, 2006 9:43 AM:
> On Tue, 20 Jun 2006, Christopher Faylor wrote:
> 
>> On Mon, Jun 19, 2006 at 08:04:13PM -0400, Igor Peshansky wrote:
>>> Hmm, ok, the next thing to check is the fact that PATH and other
>>> environment variables may not be set the same.  Try adding some
>>> debugging information to the postinstall script (or even change the
>>> shebang line to "bash -x"), and see what's different in setup.exe
>>> and the command line. 
>> 
>> This seems to be debugging of an application problem rather than
>> package-related issues.  As such, I think this thread belongs in the
>> cygwin mailing list.
> 
> This was my first impulse too, but then I realized that we were really
> debugging the environment that setup presents to the postinstall
> scripts. As such, it's a setup issue, and specifically belongs here,
> IMHO. 
> 
> If it turns out to be an ssh-host-config issue instead, it'll
> definitely get moved.
> 	Igor

Yep, setup is setting CYGWIN=nontsec, so of course chmod and chown
aren't doing what I expected. I set CYGWIN=ntsec before running
ssh-host-config, now, and /var/empty is created properly.

Thanks for pointing me in the right direction, Igor :)

-- 
Bryan Thrall
FlightSafety International
Bryan.Thrall@flightsafety.com

.

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

end of thread, other threads:[~2006-06-20 14:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19 20:19 ssh-host-config doesn't chown /var/empty properly from setup.exe Thrall, Bryan
2006-06-19 21:41 ` Igor Peshansky
2006-06-19 22:47 Thrall, Bryan
2006-06-20  0:04 ` Igor Peshansky
2006-06-20 13:55   ` Christopher Faylor
2006-06-20 14:42     ` Igor Peshansky
2006-06-20 14:50 Thrall, Bryan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).