Re: openSSH and PATH

From: Nico Kadel-Garcia (nkadel@bellatlantic.net)
Date: 01/29/02


From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net>
Date: Tue, 29 Jan 2002 00:53:00 GMT


"those who know me have no need of my name" <not-a-real-address@usa.net>
wrote in message news:u5bg0orqcjru80@news.supernews.com...
> <3c5586ac@news.uni-ulm.de> divulged:
>
> >I have installed openSSH 3.0.2p1 successfully under DigitalUnix 4.0F.
> >Now, when I logged in with ssh, my PATH is not correct! My homedirectory
> >ist not in the searchpath and other paths are duplicated in the
searchpath.
>
> those things are generally set by your system's login program. in
> general ssh daemons do not invoke the system login program. you can
> change that, in the sshd configuration.

Umm. A lot of us prefer to use our .cshrc, .profile, or other shell
configuration file, depending on your user's shell. There are some fairly
strong historic reasons to avoid the use of /bin/login by SSH, mostly due to
security issues between /bin/login on particular OS's and programs that are
handing off login requests from a slightly different environment, namely
that of sshd itself. Those are *hard* to control! Much better to avoid
/bin/login and set it in the local shell profiles.



Relevant Pages

  • Re: openSSH and PATH
    ... >> those things are generally set by your system's login program. ... >> general ssh daemons do not invoke the system login program. ... >> change that, in the sshd configuration. ... A lot of us prefer to use our .cshrc, .profile, or other shell ...
    (comp.security.ssh)
  • Re: openSSH and PATH
    ... My homedirectory ... >ist not in the searchpath and other paths are duplicated in the searchpath. ... those things are generally set by your system's login program. ... general ssh daemons do not invoke the system login program. ...
    (comp.security.ssh)
  • Re: SFTP is not working
    ... When I try to use sftp or scp2, I get a message like this: ... sftp and scp2 both actually work by running ssh in a subprocess, ... The reason the shell startup files are relevant at all, ...
    (comp.security.ssh)
  • Re: Did you hack into my UNIX server Bible Bob?
    ... But that's not a shell question. ... >> OSX users, should I be using ssh instead of telnet for security? ... OSX as a built in firewall tab. ...
    (comp.unix.shell)
  • Re: using ssh to run remote commands? [ssh -T, scp/ssh flags]
    ... I use SSH to forward connections between an intranet server at home and my ... To do this, the user on the remote machine need not have a shell, either ... start a shell on the remote host, ... you can have ssh run a command instead of an interactive shell by ...
    (FreeBSD-Security)