delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/14/09:02:13

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:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=di/ktMF+kwUlzZDU6KzPOgX8fj/Xnx42G7FoGjWICSkLW0ygzdZV5
BrWGj6oAWld/ryNW8P3kyz8PoCwR0rySKNQiI66l3AENjwOnO8sAuTM6GJvnDHw+
Yk98BaiwPabNH+OJCHrEcXKe+R6Zr2SMTlAdF+o5EDD21VnMn2PVKE=
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:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=Z8rzLBuTApSAUf5BJRu6G2ODvU4=; b=M+uorp6LtHhArQeQUucWzKkNKt+l
T1LnXSmzIjXEtbiKdbojzJNGRwd3iuJmZn2DaH0h0hGuNKhYlZ6Mf9uP0jAW2ClM
iqeiDaT1QbGSW+YJvhSKd6PGM0iUPA+DhY2UBSg0aA0N7ZfTxTslNtX7tCXSuu6O
kekr6uuiISdsUUI=
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: Re: sshd default user PATH
Date: Thu, 14 Aug 2014 13:01:20 +0000 (UTC)
Lines: 17
Message-ID: <loom.20140814T145621-877@post.gmane.org>
References: <loom DOT 20140814T113926-374 AT post DOT gmane DOT org> <20140814112006 DOT GA22411 AT calimero DOT vinschen DOT de> <loom DOT 20140814T134740-103 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Achim Gratz <Stromeko <at> NexGo.DE> writes:
> I've just tried using "-e PATH=/bin" in the sshd service startup, but
> PATH still seems to be hardcopied from Windows

I did this wrong.  I had to re-install the service, not just adding a
startup parameter.  With "-e "PATH=/usr/bin" the resulting initial PATH from
an ssh login is "PATH=/usr/bin:/bin".  So I can use that as a workaround and
we can spend some more time to think about whether that behaviour from
cygrunsrv or sshd needs further adjustment or if just the install helper
script should ask for these things.

Thanks for getting me on the right track.

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