public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* home path for cygwin 1.7.9 is acting funny
@ 2011-10-25 15:13 Matthew Smith
  2011-10-25 23:24 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Smith @ 2011-10-25 15:13 UTC (permalink / raw)
  To: cygwin

I installed to "c:\personal\cygwin" on my windows xp machine.

If I open a command prompt and type "echo %HOME%", I get "C:\Documents
and Settings\Matt"

If I then start an ssh connection from DOS (not the Cygwin program), I
get an error at the beginning of the connection initiation that states
"Could not create directory 'C/.ssh'."

This means that I can never save the certificate of the server I
always ssh to so I always have to manually accept the connection.

Here's the really odd thing:  If I start cygwin in another window and
then come back to my regular dos screen and run the ssh connection
again, I don't get this error.  If I re-examine the %HOME% path in the
DOS window while cygwin is running, it still looks the same.

I have searched exhaustively on this topic and the one solution that
keeps coming up is to make sure your /etc/passwd file inside of cygwin
points to the home path.  Mine seems to because my entry ends with:
":/cygdrive/c/Documents and Settings/matt:/bin/bash"

Anyone know why starting cygwin in another window makes the problem go
away?  I did a diff between the output of the cygcheck command in a
DOS window before and after I open cygwin in another window and I get
the following:

< Current System Time: Tue Oct 25 07:58:47 2011
---
> Current System Time: Tue Oct 25 07:59:30 2011
23,24c23,25
< UID: 0(Matt Smith)  GID: 0(root)
< 0(root)             544(Administrators) 545(Users)
---
> UID: 1003(Matt Smith) GID: 513(None)
> 513(None)             0(root)               544(Administrators)
> 545(Users)
76c77
<   (default) = '\??\c:\personal\cygwin'
---
>   (default) = '\??\C:\personal\cygwin'
84c85
<   System: Key: 93d3f9586243fecd Path: c:\personal\cygwin
---
>   System: Key: 93d3f9586243fecd Path: C:\personal\cygwin

--
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

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

* Re: home path for cygwin 1.7.9 is acting funny
  2011-10-25 15:13 home path for cygwin 1.7.9 is acting funny Matthew Smith
@ 2011-10-25 23:24 ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Hall (Cygwin) @ 2011-10-25 23:24 UTC (permalink / raw)
  To: cygwin

On 10/25/2011 11:13 AM, Matthew Smith wrote:
> I installed to "c:\personal\cygwin" on my windows xp machine.
>
> If I open a command prompt and type "echo %HOME%", I get "C:\Documents
> and Settings\Matt"
>
> If I then start an ssh connection from DOS (not the Cygwin program), I
> get an error at the beginning of the connection initiation that states
> "Could not create directory 'C/.ssh'."
>
> This means that I can never save the certificate of the server I
> always ssh to so I always have to manually accept the connection.
>
> Here's the really odd thing:  If I start cygwin in another window and
> then come back to my regular dos screen and run the ssh connection
> again, I don't get this error.  If I re-examine the %HOME% path in the
> DOS window while cygwin is running, it still looks the same.
>
> I have searched exhaustively on this topic and the one solution that
> keeps coming up is to make sure your /etc/passwd file inside of cygwin
> points to the home path.  Mine seems to because my entry ends with:
> ":/cygdrive/c/Documents and Settings/matt:/bin/bash"

Mount your path above as /home/matt, update your '/etc/passwd' file, and
try again.  Spaces in paths are likely causing you to trip and fall.

-- 
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

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

end of thread, other threads:[~2011-10-25 23:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-25 15:13 home path for cygwin 1.7.9 is acting funny Matthew Smith
2011-10-25 23:24 ` Larry Hall (Cygwin)

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).