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

Bug#69090: strange su / which / apt behaviour



> 
> $ su -c "which ldconfig"
> Password:
> $ 
> 

Use "su - -c 'which ldconfig'"

The '-' makes sure you do a login shell, which makes sure root's
environment is loaded. You can also modify .bash_profile so that you get
the correct PATH even without a login shell.

Ben

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'



Reply to: