delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | "David Christensen" <dpchrist AT holgerdanske DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | sshd.log /var/empty must be owned by root and not group or world-writable. |
Date: | Sun, 17 Feb 2008 17:12:17 -0800 |
Message-ID: | <000601c871cb$4dcadf60$0a00a8c0@a64x23800p> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
------=_NextPart_000_0007_01C87188.3FA79F60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit cygwin: I was attempting to update/upgrade my Cygwin installation: 1. Rename C:\cygwin to C:\cygwin-old 2. Create new folders C:\cygwin and C:\cygwin\setup . 3. Download latest Cygwin Setup and save as C:\cygwin\setup\setup.exe . 4. Run Cygwin Setup and download/ install base system from Internet. 5. Run Cygwin Setup and download/ install openssh from Internet. 6. Run Cygwin Bash and configure ssh: Administrator AT a64x23800p ~ $ ssh-host-config Generating /etc/ssh_host_key Generating /etc/ssh_host_rsa_key Generating /etc/ssh_host_dsa_key Generating /etc/ssh_config file Privilege separation is set to yes by default since OpenSSH 3.3. However, this requires a non-privileged account called 'sshd'. For more info on privilege separation read /usr/share/doc/openssh/README.privsep . Should privilege separation be used? (yes/no) yes Generating /etc/sshd_config file Host configuration finished. Have fun! $ ssh-user-config WARNING: group and other have been revoked write permission to your home directory /home/Administrator. This is required by OpenSSH to allow public key authentication using the key files stored in your .ssh subdirectory. Revert this change ONLY if you know what you are doing! Shall I create an SSH1 RSA identity file for you? (yes/no) no Shall I create an SSH2 RSA identity file for you? (yes/no) yes Generating /home/Administrator/.ssh/id_rsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Do you want to use this identity to login to this machine? (yes/no) yes Adding to /home/Administrator/.ssh/authorized_keys Shall I create an SSH2 DSA identity file for you? (yes/no) yes Generating /home/Administrator/.ssh/id_dsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Do you want to use this identity to login to this machine? (yes/no) yes Adding to /home/Administrator/.ssh/authorized_keys Configuration finished. Have fun! 7. Run Cygwin Bash and attempt to start sshd: $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. 8. Look at /var/log/sshd.log: /var/empty must be owned by root and not group or world-writable. 9. Adjust mode of /var/empty and attempt to start sshd: 20080217-144322 Administrator AT a64x23800p /var $ ll -d empty/ drwxr-xr-x+ 2 Administrator None 0 Feb 17 14:30 empty// 20080217-144326 Administrator AT a64x23800p /var $ chmod 700 empty 20080217-144400 Administrator AT a64x23800p /var $ ll -d empty/ drwx------+ 2 Administrator None 0 Feb 17 14:30 empty// 20080217-144405 Administrator AT a64x23800p /var $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. 10. Look at /var/log/sshd.log: /var/empty must be owned by root and not group or world-writable. 11. Change owner of /var/empty: 20080217-144416 Administrator AT a64x23800p /var $ chown root empty/ chown: invalid user: `root' 12. STFW. root is not a valid user name. Make an educated guess and try again: 20080217-151048 Administrator AT a64x23800p /var $ chown SYSTEM empty 20080217-151056 Administrator AT a64x23800p /var $ ll -d empty/ drwx------+ 2 SYSTEM None 0 Feb 17 14:30 empty// 20080217-151108 Administrator AT a64x23800p /var $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service was started successfully. Per http://www.cygwin.com/problems.html, cygcheck.out is attached. I don't know how to put the above fixes (chmod, chown) into Cygwin; perhaps the openssh maintainer can do so. HTH, David ------=_NextPart_000_0007_01C87188.3FA79F60 Content-Type: application/octet-stream; name="cygcheck.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.out" Cygwin Configuration Diagnostics Current System Time: Sun Feb 17 14:36:58 2008 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:\Perl\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\Program Files\Microsoft SQL Server\90\Tools\binn\ C:\cygwin\usr\sbin Output from C:\cygwin\bin\id.exe (nontsec) UID: 500(Administrator) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) 1005(Debugger Users) Output from C:\cygwin\bin\id.exe (ntsec) UID: 500(Administrator) GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) 1005(Debugger Users) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS USER =3D 'Administrator' PWD =3D '/home/Administrator' HOME =3D '/home/Administrator' MAKE_MODE =3D 'unix' HOMEPATH =3D '\Documents and Settings\Administrator' MANPATH =3D ':/home/Administrator/local/man' APPDATA =3D 'C:\Documents and Settings\Administrator\Application Data' HOSTNAME =3D 'a64x23800p' TERM =3D 'cygwin' PROCESSOR_IDENTIFIER =3D 'x86 Family 15 Model 75 Stepping 2, AuthenticAMD' WINDIR =3D 'C:\WINDOWS' OLDPWD =3D '/usr/bin' USERDOMAIN =3D 'A64X23800P' OS =3D 'Windows_NT' ALLUSERSPROFILE =3D 'C:\Documents and Settings\All Users' TEMP =3D '/cygdrive/t/System' DEFLOGDIR =3D 'C:\Documents and Settings\All Users\Application Data\McAfee\= DesktopProtection' COMMONPROGRAMFILES =3D 'C:\Program Files\Common Files' PAGER =3D '/usr/bin/less' PROCESSOR_LEVEL =3D '15' FTP_PASSIVE =3D '1' FP_NO_HOST_CHECK =3D 'NO' SYSTEMDRIVE =3D 'C:' JAVA_HOME =3D 'C:\Program Files\Java\jdk1.6.0_03' EDITOR =3D 'vim' LANG =3D 'C' USERPROFILE =3D 'C:\Documents and Settings\Administrator' PS1 =3D '\D{%Y%m%d-%H%M%S} \u@\h \w\n\$ ' LOGONSERVER =3D '\\A64X23800P' PROCESSOR_ARCHITECTURE =3D 'x86' !C: =3D 'C:\cygwin\bin' HISTCONTROL =3D 'ignoredups' SHLVL =3D '1' OSTYPE =3D 'cygwin' PATHEXT =3D '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE =3D 'C:' PROMPT =3D '$P$G' COMSPEC =3D 'C:\WINDOWS\system32\cmd.exe' LESS =3D '-R' TMP =3D '/cygdrive/t/System' SYSTEMROOT =3D 'C:\WINDOWS' PRINTER =3D 'HP LaserJet 4' CVS_RSH =3D '/bin/ssh' PROCESSOR_REVISION =3D '4b02' INFOPATH =3D '/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES =3D 'C:\Program Files' NUMBER_OF_PROCESSORS =3D '2' VSEDEFLOGDIR =3D 'C:\Documents and Settings\All Users\Application Data\McAf= ee\DesktopProtection' SESSIONNAME =3D 'Console' COMPUTERNAME =3D 'A64X23800P' _ =3D '/usr/bin/cygcheck' 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 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) =3D '/cygdrive' cygdrive flags =3D 0x00000020 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) =3D 'C:\cygwin' flags =3D 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) =3D 'C:\cygwin/bin' flags =3D 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) =3D 'C:\cygwin/lib' flags =3D 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 c: hd NTFS 40005Mb 33% CP CS UN PA FC a64x23800p d: cd N/A N/A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 e: hd NTFS 233475Mb 83% CP CS UN PA FC DATA250 f: hd NTFS 305243Mb 81% CP CS UN PA FC BACKUP320 s: hd NTFS 4996Mb 83% CP CS UN PA FC SWAP t: hd NTFS 111325Mb 1% CP CS UN PA FC TEMP u: hd NTFS 4996Mb 83% CP CS UN PA FC SWAP250 C:\cygwin / system textmode C:\cygwin/bin /usr/bin system textmode C:\cygwin/lib /usr/lib system textmode . /cygdrive system textmode,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 Not Found: cpp (good!) Not Found: crontab Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Found: C:\cygwin\bin\kill.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Not Found: patch Found: c:\Perl\bin\perl.exe Found: C:\cygwin\bin\rm.exe Found: C:\cygwin\bin\sed.exe Found: C:\cygwin\bin\ssh.exe Found: C:\cygwin\bin\sh.exe Found: C:\cygwin\bin\tar.exe Found: C:\cygwin\bin\test.exe Not Found: vi Not Found: vim 61k 2006/11/10 C:\cygwin\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygbz2-1.dll" v0.0 ts=3D2006/11/10 15:42 7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygcrypt-0.dll" v0.0 ts=3D2003/10/19 0:57 1059k 2007/10/19 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=3D4.0 img=3D1.0 sy= s=3D4.0 "cygcrypto-0.9.8.dll" v0.0 ts=3D2007/10/19 4:45 40k 2006/11/15 C:\cygwin\bin\cygform-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygform-8.dll" v0.0 ts=3D2006/11/14 23:06 25k 2008/01/04 C:\cygwin\bin\cyghistory6.dll - os=3D4.0 img=3D1.0 sys=3D= 4.0 "cyghistory6.dll" v0.0 ts=3D2008/1/3 19:31 271k 2007/08/24 C:\cygwin\bin\cygicons-0.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygicons-0.dll" v0.0 ts=3D2007/8/24 0:24 976k 2006/10/22 C:\cygwin\bin\cygiconv-2.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygiconv-2.dll" v0.0 ts=3D2006/10/22 16:44 31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygintl-3.dll" v0.0 ts=3D2005/11/19 18:04 31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygintl-8.dll" v0.0 ts=3D2006/10/22 17:12 21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygmenu-8.dll" v0.0 ts=3D2006/11/14 23:05 20k 2006/12/21 C:\cygwin\bin\cygminires.dll - os=3D4.0 img=3D1.1 sys=3D4= .0 "cygminires.dll" v0.0 ts=3D2006/12/20 21:07 67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses++-8.dll" v0.0 ts=3D2006/11/14 23:13 237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses-8.dll" v0.0 ts=3D2006/11/14 23:02 12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygpanel-8.dll" v0.0 ts=3D2006/11/14 23:04 133k 2007/06/27 C:\cygwin\bin\cygpcre-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygpcre-0.dll" v0.0 ts=3D2007/6/26 20:49 303k 2007/06/27 C:\cygwin\bin\cygpcrecpp-0.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygpcrecpp-0.dll" v0.0 ts=3D2007/6/26 20:50 7k 2007/06/27 C:\cygwin\bin\cygpcreposix-0.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygpcreposix-0.dll" v0.0 ts=3D2007/6/26 20:50 22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygpopt-0.dll" v0.0 ts=3D2002/6/8 22:45 155k 2008/01/04 C:\cygwin\bin\cygreadline6.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygreadline6.dll" v0.0 ts=3D2008/1/3 19:31 219k 2007/10/19 C:\cygwin\bin\cygssl-0.9.8.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygssl-0.9.8.dll" v0.0 ts=3D2007/10/19 4:45 65k 2006/10/16 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygz.dll" v0.0 ts=3D2006/10/15 18:10 1829k 2007/12/14 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2007/12/14 10:22 Cygwin DLL version info: DLL version: 1.5.25 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 156 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:=20 Build date: Fri Dec 14 19:21:07 CET 2007 CVS tag: cr-0x5f1 Shared id: cygwin1S4 Service : exim Display name : Exim Description : Mail Transfer Agent Current State : Stopped Command : /usr/bin/exim -bdf -q1m stdin path : /dev/null stdout path : /var/log/exim/cygrunsrv_out.log stderr path : /var/log/exim/cygrunsrv_err.log Environment : CYGWIN=3D"ntsec notraverse"=20 Process Type : Own Process Startup : Automatic Dependencies : Tcpip 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=3D"ntsec"=20 Process Type : Own Process Startup : Automatic Dependencies : tcpip Account : LocalSystem Cygwin Package Information Last downloaded files to: C:\cygwin\setup Last downloaded files from: ftp://mirrors.kernel.org/sourceware/cygwin Package Version _update-info-dir 00581-1 alternatives 1.3.29a-1 ash 20040127-3 base-files 3.7-1 base-passwd 2.2-1 bash 3.2.33-18 bzip2 1.0.3-2 coreutils 6.10-1 crypt 1.1-1 cygrunsrv 1.18-1 cygutils 1.3.2-1 cygwin 1.5.25-7 cygwin-doc 1.4-4 editrights 1.01-2 findutils 4.3.13-1 gawk 3.1.6-1 grep 2.5.1a-4 groff 1.18.1-2 gzip 1.3.12-2 less 382-1 libbz2_1 1.0.3-2 libiconv2 1.11-1 libintl3 0.14.5-1 libintl8 0.15-1 libncurses8 5.5-3 libpcre0 7.2-1 libpopt0 1.6.4-4 libreadline6 5.2.12-10 login 1.9-7 man 1.6e-1 minires 1.01-1 openssh 4.7p1-2 openssl 0.9.8g-1 rebase 2.4.3-1 run 1.1.10-1 sed 4.1.5-2 tar 1.19-1 termcap 20050421-1 terminfo 5.5_20061104-1 texinfo 4.8a-1 tzcode 2007h-2 which 2.19-1 zlib 1.2.3-2 Use -h to see help about each section ------=_NextPart_000_0007_01C87188.3FA79F60 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0007_01C87188.3FA79F60--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |