Re: setting sshd default user $PATH

From: those who know me have no need of my name (not-a-real-address@usa.net)
Date: 02/26/02


From: those who know me have no need of my name <not-a-real-address@usa.net>
Date: Tue, 26 Feb 2002 19:41:51 -0000


<a5g1hq$18iq$1@sp15at20.hursley.ibm.com> divulged:

>I'm using openssh to execute commands remotely on a server.
>The $PATH for the remote userid appears to be set by a config
>option when building openssh, namely --with-default-path.
>Is it possible to set this value at run time (eg in the
>sshd config file) to avoid having to recompile?

ssh only sets a default path, it's up to the system and the user to
customize it, e.g., by using login or per-shell scripts. the example
ssh configurations all disable login processing, but you can re-instate
your system's login script handling by setting `uselogin' to yes.

however, that probably won't change anything since you aren't asking for
a login just command execution, and only some shells (csh, tcsh or zsh)
will process per-shell scripts prior to running when they aren't login
or interactive.

-- 
okay, have a sig then



Relevant Pages

  • Re: dial-in server exit 1
    ... > My dialin server config looks like this now, I have spent many hours trying ... Here's the config stuff that I had working - hasn't been used since I ... # cat pap-secrets ...
    (Fedora)
  • Re: ssh2 login with public key - not working
    ... config must be correct. ... I can login by typing in the password but I need to login automatically. ... Apparently there's no way to feed the key to SSH via command line, you have to be using some sort of key agent. ...
    (freebsd-questions)
  • Re: SSH to LDAP
    ... Can't seem to get the config file right. ... login I get the following error ... PAM: authentication thread exited unexpectedly ... The PAM config should be basically the same for both (mostly ...
    (comp.security.ssh)
  • Re: How ASP.NET find Login page?
    ... If you use the VS tools to help set up login, it will place the config element for you. ... how does ASP.NET know to redirect to Login.aspx from ... I add another page named AnotherLogin.aspx with Login Control too. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ip http authentication local
    ... Shown below is the config. ... Virtual Ethernet interface ... login local ... ntp server x.x.x.x key 0 prefer ...
    (comp.dcom.sys.cisco)