delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/28/08:36:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <32877343.post@talk.nabble.com>
References: <32877343 DOT post AT talk DOT nabble DOT com>
Date: Mon, 28 Nov 2011 13:36:27 +0000
Message-ID: <CAHWeT-beBS5OhOgwNWXxeUP48hExNLsxrJOOaYS2G8miCKfrQw@mail.gmail.com>
Subject: Re: Installation problems with home path and sshd
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 27 November 2011 10:37, gabier wrote:
> I got sshd to work between a Windows 7 computer and a FreeNAS/FreeBSD
> server, and it works well now, thanks to you here. Now I try to implement
> the same thing on a Vista laptop which is in the same home network. I
> installed the same Cygwin, following the same howto.

Which howto? The author of that should probably be your first port of call.

> But there are unexpected problems.
> 1. The home path was not created, there was nothing in the home directory.
> The mintty console opens in /cygdrive/c/Users/username/Desktop/FREENAS,
> which is merely the link to the icon used to open the console. I created a
> home user directory and now if I enter "cd ~/" I am in it. But mintty still
> opens in its own link directory.
> Cygwin commands work though. I could excecute all file and permissions
> commands.

How did you install mintty, and how are you invoking it? If you invoke
it without arguments, it'll run your shell as a so-called non-login
shell (as is standard behaviour for terminal emulators). This means
that /etc/profile won't be sourced, which is where your home directory
gets created and cd'd to.

To tell mintty to invoke the shell as a login shell and hence source
/etc/profile, pass a '-' (i.e. a hyphen/minus sign) as the last
argument. That's what the mintty shortcut created by setup.exe does.

Andy

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019