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

Bug#69090: strange su / which / apt behaviour



On Sun 13 Aug 2000, Jens Taprogge wrote:
> > > > $ su
> > > > # which ldconfig
> > > > # echo $PATH
> > > > /usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/local/linux/bin:/usr/bin/X11:/usr/games
> 
> Using "su -" fixes my problem.
> 
> On the other hand on most machines I do not need to use "-".

Do you have differing /etc/login.defs on the different machines?
Maybe /etc/bash.bashrc or /.bashrc ?

> I do export the $PATH. I also source .bashrc in .bash_profile. And: for example

.bash_profile isn't read with "su", only with "su -".

> "strace ldconfig" works when su'ed without "-". So does "sudo which adduser".

This is extra wierd...


Paul Slootman
-- 
home:       paul@wurtel.demon.nl http://www.wurtel.demon.nl/
work:       paul@murphy.nl       http://www.murphy.nl/
debian:     paul@debian.org      http://www.debian.org/
isdn4linux: paul@isdn4linux.de   http://www.isdn4linux.de/



Reply to: