This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: sshd default user PATH
- From: Achim Gratz <Stromeko at NexGo dot DE>
- To: cygwin at cygwin dot com
- Date: Thu, 14 Aug 2014 13:01:20 +0000 (UTC)
- Subject: Re: sshd default user PATH
- Authentication-results: sourceware.org; auth=none
- 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>
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