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

Bug#202081: tetex-extra: Regeneraters user's ls-R file as owned by root



Hi,
First, sorry for the late reply. Somehow your mail didn't arrive.

On Tue, Jul 22, 2003 at 09:45:48AM +0200, Hilmar Preusse wrote:
> drachi:[hille] >sudo -H /usr/bin/mktexlsr
> mktexlsr: Updating /var/lib/texmf/ls-R.opt...
> mktexlsr: Updating /var/lib/texmf/ls-R.local...
> mktexlsr: Updating /var/lib/texmf/ls-R...
> mktexlsr: Updating /var/spool/texmf/ls-R...
> mktexlsr: Done.
> drachi:[hille] >sudo /usr/bin/mktexlsr
> mktexlsr: Updating /home/hille/.texmf/ls-R...
> mktexlsr: Updating /var/lib/texmf/ls-R.opt...
> mktexlsr: Updating /var/lib/texmf/ls-R.local...
> mktexlsr: Updating /var/lib/texmf/ls-R...
> mktexlsr: Updating /var/spool/texmf/ls-R...
> mktexlsr: Done.
> drachi:[hille] >echo $HOME
> /home/hille
> drachi:[hille] >
> 
> HOMETEXMF = $HOME/.texmf
> TEXMF = {!!$HOMETEXMF,!!$TEXMFOPT,!!$TEXMFLOCAL,!!$TEXMFMAIN}
> 
> Is that an option for you? Is it OK, if we just document that
> anywhere?

Well, it would mean documenting the use of

  sudo -H aptitude

which is slightly tedious. I find it odd that sudo and su differ in
their behaviour in this respect (although man su doesn't mention setting
$HOME). I'm thinking of filing bugs for those packages.

I will alias sudo to sudo -H anyway. That should solve this problem, and
maybe prevent others. That only leaves me wondering what aptitude does
when it lets the user become root just before installing packages.

That said, it might be a nice (think wishlist) thing, if mktexlsr would
not change the ownership of the files it updates when it is run as root.

Thanks,
-- 
Matijs van Zuijlen

Attachment: pgpn6PELc5jIl.pgp
Description: PGP signature


Reply to: