[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

setting paths inconsistently



sshd1 sets the PATH to /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/bin,
sshd2 to /usr/bin:/bin:/usr/bin, bash to
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games in interactive
shells.

I would think that sshd should either set the path to "/bin:/usr/bin"
as does /bin/login or if there is some reason for it to set a
sane PATH, there should be some sort of central config where all
shells or other programs that want to set the path can get the
appropriate setting for the circumstance.

----- Forwarded message from Toby White <tow@theor.ch.cam.ac.uk> -----

bit%strings /usr/sbin/sshd1 | grep /bin
/usr/bin/passwd
/bin/sh
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/bin
/usr/bin/passwd
/usr/bin/X11/xauth
/bin/sh
execv /bin/sh failed: %.100s
/bin/sh
twist_option: /bin/sh: %m
/bin/sh
execl /bin/sh: %m

bit%strings /usr/sbin/sshd2 |grep /bin
/usr/bin/ssh1
/usr/bin:/bin:/usr/bin
/bin/sh
/usr/bin/X11/xauth
/usr/bin/X11/xauth -q -
/usr/bin/X11/xauth
/bin/sh
execv /bin/sh failed: %s
/bin/sh

bit%dlocate -s ssh
Package: ssh
Status: install ok installed
Priority: optional
Section: non-US/non-free
Installed-Size: 781
Maintainer: Philip Hands <phil@hands.com>
Version: 1.2.27-2
Depends: libgmp2 (>= 2.0.2-1.2), libc6 (>= 2.1), libgmp2, libpam0g,
zlib1g (>= 1:1.1.3), libpam-cracklib, libpam-modules, perl5

bit%dlocate -s ssh2
3:55PM
Package: ssh2
Status: install ok installed
Priority: optional
Section: non-US/non-free
Installed-Size: 2271
Maintainer: Tommi Virtanen <tv@debian.org>
Version: 2.0.13-3
Depends: libc6 (>= 2.1), libncurses4 (>= 4.2-3.1), xlib6g (>= 3.3.4-1)


Reply to: