delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/14/05:57:23

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:to:from:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=MV+
ZrfmSC/yKpaMtTd9JvWYwU1ozpeqGwtfU142BXaxmtyV3LsGblXK3Q3j0LxGxYxQ
5PDPdsWVack9MKhlClXOaGlgoOKj7n9TikJwCktiq9ZKb8KPzMPMkftWEpgwSJCR
zP8uydwYPBdkR2TwRmjdMH8AzI6+u4Ehi+HQDmuw=
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:to:from:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=hYwCims19
7uKMpBHtrqmHN38OtM=; b=og6O1rqWWOud8tvKYXOAJMgow/jcG/T67aMlT35YW
/KkHHJrxY99o7o8Jgxubhd628A9whtEQMvYL/kgCXW/cKzSQ0TXamkz+C69oqB7C
WtjcMgMWZIa8CakcJB4etNtgbOtaZJtM3QmwT9Y2QXMxuDEIPihJiBUjLtP1SvmI
0E=
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=-5.2 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT NexGo DOT DE>
Subject: sshd default user PATH
Date: Thu, 14 Aug 2014 09:56:46 +0000 (UTC)
Lines: 18
Message-ID: <loom.20140814T113926-374@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

I'm trying to figure out how sshd comes up with the PATH for the initial
environment.  Currently I get the Windows sytem PATH (converted to POSIX)
and then /bin appended.  This is no good, at least /bin should be at the
beginning of that PATH.

I've not been able to change this system-wide so far.  Apparently sshd has
been built on a machine where /etc/default/login wasn't present, at least it
doesn't appear to try to read that file (or any other system file) for
setting up the initial environment.  The /etc/sshrc is run if I create it,
but you can't set any environment variables from within it.  I don't want to
enable user environments.

I think it would be nice if there was a system file that could set the
initial environment for sshd, maybe setting external_path_file to
/etc/ssh_environment fits in better with the default Cygwin /etc layout, though.

Regards,
Achim.


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