X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=I9 YKStTH/g1eHDZMZ9+Er7fHK9fR5TnC2mCsfJLV+0vk5eN0wLFOV9oO2NwE3soJJG nMGXIEBm1Q682oOu0SyUMpsa5kfqJlNC7Nwl+Ugd5GrfzOlillE/L8rIhLfBP6Kx XC7P64YPPeiMZSyTSbXryPqNP3pLxyjY/KycVCXog= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=7XLsT8Tp WbDjVbeGzCdsTnrtg1U=; b=MgbtzQltkFU5MRtysi0KMIIKSmfzPf7rpmoEo1UH 2nALr+BqG9dBJZKJ240W7QNyY9enMr6qgGO5eRIr6AFjUayLH+eb8MloiVHO89Ms U+AOeIAhY8uwV0iM2ou1tBaDGB8u4h2PcxK32sOvckxvs/LPLzexrDR1IyzvMmwx dzM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=ham version=3.3.1 MIME-Version: 1.0 X-Received: by 10.14.1.5 with SMTP id 5mr9150373eec.96.1375983166419; Thu, 08 Aug 2013 10:32:46 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Aug 2013 10:32:46 -0700 Message-ID: Subject: Re: Messed up permissions on /var ? From: Balaji Venkataraman To: Cygwin Content-Type: text/plain; charset=ISO-8859-1 On Thu, Aug 8, 2013 at 8:39 AM, David Lee Lambert wrote: > I recently "migrated" a Cygwin instance from Windows XP to Windows 7 > (wanted to save a bit of external bandwidth versus running the > installer again, also had a lot of custom stuff under /usr/local and > so forth). X works fine. I can't get sshd to work (started as a > daemon it would present a host key but not accept any password to log I ran into some ssh(d) related problems when I migrated laptops (older ssd w/ Cygwin32 on Win7 migrated to an almost identical build but fresh install of Win7 on a larger SSD) and copied all of my Cygwin stuff over w/o re-installing. My problem was that sshd would start but I could never connect to it. > From that same terminal here are the permissions on /var and /var/empty... > > dllamber AT IBM-635c7e0ffd0 /var > $ ls -ld /var /var/empty > drwx---r-x+ 1 Administrator None 0 Aug 8 11:26 /var > drwxr-xr-x+ 1 SYSTEM None 0 Aug 8 07:16 /var/empty > > From my "regular user" account, Cygwin terminal, here's what I get: > > dllamber AT IBM-635c7e0ffd0 ~ > $ ls -l /var /var/empty > ls: cannot open directory /var: Permission denied > /var/empty: > total 0 AFAIK, /var/empty should be owned by cyg_server. Delete the /var/empty directory. > Any advice? /usr/share/doc/Cygwin/openssh.README I'm guessing you already tried re-running /usr/bin/ssh-host-config on the new system? Here are some things I did to get it working - delete the cyg_server and sshd users from Windows' Local Users and Groups (in case it is already there) - in your case since it's a new install, it might not be there. Delete cyg_server from /etc/passwd in case it's there. Possibly re-start (don't think this is required). Then re-run ssh-host-config and try again. HTH, Balaji -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple