Re: sshd default user PATH

2014-08-19 Thread Achim Gratz
Corinna Vinschen corinna-cygwin at cygwin.com writes: That means the patch to sshd isn't that important. Nevertheless, I just released cygrunsrv-1.60-1, which prepends /bin to $PATH. Funny enough, the README file claimed that /bin gets prepended to $PATH since the early days. Just the

Re: sshd default user PATH

2014-08-19 Thread Corinna Vinschen
On Aug 19 09:08, Achim Gratz wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: That means the patch to sshd isn't that important. Nevertheless, I just released cygrunsrv-1.60-1, which prepends /bin to $PATH. Funny enough, the README file claimed that /bin gets prepended to

Re: sshd default user PATH

2014-08-19 Thread Corinna Vinschen
On Aug 19 12:58, Corinna Vinschen wrote: On Aug 19 09:08, Achim Gratz wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: That means the patch to sshd isn't that important. Nevertheless, I just released cygrunsrv-1.60-1, which prepends /bin to $PATH. Funny enough, the

sshd default user PATH

2014-08-14 Thread Achim Gratz
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.

Re: sshd default user PATH

2014-08-14 Thread Corinna Vinschen
On Aug 14 09:56, Achim Gratz wrote: 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. On other

Re: sshd default user PATH

2014-08-14 Thread Corinna Vinschen
On Aug 14 13:20, Corinna Vinschen wrote: On Aug 14 09:56, Achim Gratz wrote: 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

Re: sshd default user PATH

2014-08-14 Thread Achim Gratz
Corinna Vinschen corinna-cygwin at cygwin.com writes: On other systems sshd sets $PATH to /usr/bin:/bin:/usr/sbin:/sbin, but on Cygwin it doesn't change $PATH and just takes what it got from cygrunsrv so as not to break the search path for DLLs not in the system directories. I'm running

Re: sshd default user PATH

2014-08-14 Thread Andrey Repin
Greetings, Corinna Vinschen! There's a problem. On Cygwin it's not /etc/default, but /etc/defaults. Note the trailing s. You're confusing /etc/default/ (a directory with default initial values for runtime/startup configurations of [mainly] daemons), which could and SHOULD be changed to suit

Re: sshd default user PATH

2014-08-14 Thread Achim Gratz
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

Re: sshd default user PATH

2014-08-14 Thread Corinna Vinschen
On Aug 14 13:01, Achim Gratz wrote: 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