delorie.com/archives/browse.cgi | search |
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:message-id:date:from:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=i5La/ZiVqjF3tADK | |
wSUXkYgvf7JNREFnvFZ/cV62FckBLolLIrMos6v7gxHkJWTlTTCVPjd79psYbPLx | |
dKpKj5A+zTVfWycOgyeLtzoZ4IclFQPHXYCfacRuSqJb/QvQgWwGVOqmy+79wr/w | |
H5lClWV8hPQoeoeRtYYQ82R0s5Q= | |
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:message-id:date:from:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=w0GcthQcTjklcDRSpqrFnK | |
C0eDs=; b=KrCsSF06alOtEfXDyI/74OK5wjgba+uOSVIZMZ9YQVkIjRM3vp3eTh | |
Zlfvh9xKpoiQESdzVKKofClJDmhvDMRI0z6FiLAHgTFeVkL93WhKOAo9TYy536qD | |
+/mrLp+WLSNL3zYhF/ybvYBwCFHCfasTqvRPt8HHJgETf1zzeVV4c= | |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 |
X-HELO: | vms173023pub.verizon.net |
Message-id: | <531F244A.3030406@cygwin.com> |
Date: | Tue, 11 Mar 2014 10:57:14 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: ssh login reports "Could not chdir to home directory /home/root: Bad address" |
References: | <OF98B2B2A9 DOT 038FA154-ONC1257C98 DOT 0049C7F9-C1257C98 DOT 004AC0D7 AT de DOT ibm DOT com> |
In-reply-to: | <OF98B2B2A9.038FA154-ONC1257C98.0049C7F9-C1257C98.004AC0D7@de.ibm.com> |
If you could repeat the information below for a machine with the latest Cygwin and OpenSSH, along with your '/etc/passwd' and 'cygcheck -srv' output, that may be helpful. On 3/11/2014 9:36 AM, Ernesto Puig Rodriguez wrote: > > Hi Larry, > > After analyzing the debug information you recommended, I was still not able > to find the reason of the error message during the ssh login. Below the > output of the commands after the login. > > $ ssh root AT winsrv2008 > root AT winsrv2008's password: ****** > Last login: Fri Mar 7 16:16:51 2014 from hostname dot com > Could not chdir to home directory /home/root: Bad address > entering /etc/profile > > root AT winsrv2008 ~ > $ pwd > /home/root > > root AT winsrv2008 ~ > $ ls -l > total 88 > -rw-r--r-- 1 root Administrators 88080 Feb 27 18:00 cygcheck.out > drwxr-xr-x+ 1 root Administrators 0 Jan 22 15:47 perl5 > > root AT winsrv2008 ~ > $ ls -dl .* > drwxr-xr-x+ 1 root Administrators 0 Feb 28 15:52 . > drwxrwxrwt+ 1 root None 0 Feb 28 15:40 .. > -rw------- 1 root Administrators 7953 Mar 7 16:26 .bash_history > -rwxr-xr-x 1 root Administrators 1494 Feb 28 15:52 .bash_profile > -rwxr-xr-x 1 root Administrators 6054 Jan 15 11:14 .bashrc > -rw------- 1 root Administrators 87 Jan 21 09:32 .cvspass > -rwxr-xr-x 1 root Administrators 1919 Jan 15 11:14 .inputrc > -rw------- 1 root Administrators 49 Feb 18 09:54 .lesshst > -rwxr-xr-x 1 root Administrators 1236 Jan 15 11:14 .profile > drwx------+ 1 root Administrators 0 Mar 3 08:56 .ssh > > root AT winsrv2008 ~ > $ id > uid=500(root) gid=513(None) groups=513(None),544(Administrators),545(Users) > > root AT winsrv2008 ~ > $ getfacl -d /home/root > # file: /home/root > # owner: root > # group: Administrators > default:user::rwx > default:group::r-x > default:other:r-x > > root AT winsrv2008 ~ > $ cacls "c:\cygwin\home\root" > c:\cygwin\home\root WINSRV2008\Administrator:F > BUILTIN\Administrators:R > Everyone:R > CREATOR OWNER:(OI)(CI)(IO)F > CREATOR GROUP:(OI)(CI)(IO)R > Everyone:(OI)(CI)(IO)R > > The output of ssh -v -v -v ... > (See attached file: ssh-v-v-v.out) > The debug info of sshd in /var/log/messages ... > (See attached file: sshd_dbg) > > The only customized change in /etc/sshd_config is the debug flag one: > LogLevel DEBUG3 > > Thanks, Ernesto. > > ------------------------- > On 2/27/2014 2:07 PM, Ernesto Puig Rodriguez wrote: > > When I log in into my Windows Server 2008 R2 using ssh, I get the following > error: > > $ ssh root AT winsrv2008 > root AT winsrv2008's password: ******** > Could not chdir to home directory /home/root: Bad address > > This is independent on whether I log in with the root user who is mapped to > the Administrator in the /etc/passwd or not using another user of the group > Administrators. The sshd daemon is able to log me in and everything seems > fine, but this error is telling me something is wrong in my machine which I > was not able to find till now. I have also re-installed cygwin and upgraded > ssh with the level OpenSSH_6.5p1-1 without success. > > > What does 'pwd' say after you login? Does '/home/root' exist? If so, what > are the permissions it shows (for each of ls -l, getfacl, cacls)? > > Looking at the output of ssh -v -v -v may help. Setting up a sshd service > to run debug and looking at that output will probably be more help. > > -- > Larry > > > > -- > 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 > -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |