On Sun, Jan 07, 2001 at 12:04:14AM +0200, Eray Ozkural (exa) wrote: > exa@borg:~$ telnet borg > Trying 220.127.116.11... > Connected to borg.cs.bilkent.edu.tr. > Escape character is '^]'. > Debian GNU/Linux woody borg.cs.bilkent.edu.tr > login: root > Password: > root@borg:~# echo $PATH > /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > root@borg:~# su > root@borg:~# echo $PATH > /sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin Debian has always exhibited this behavior for me. There's a simple workaround: don't log in as root. I don't know which is more distasteful: That you have telnet enabled, or that you have enabled remote root logins via telnet. Interesting, RedHat 5.1 (and up?) exhibits exactly the opposite phenomenon. Log in as root and you get the right paths. su without '-' and you don't.
Description: PGP signature