Bug#198546: tetex-bin: mktexlsr/texhash fails writing ls-R as user
From: Kai Weber <kai.weber@glorybox.de>
Subject: Bug#198546: tetex-bin: mktexlsr/texhash fails writing ls-R as user
Date: Fri, 18 Jul 2003 07:56:19 +0200
> > Right. Then possible solutions I can guess are:
> >
> > 1) stop to ask with debconf completely.
> >
> > 2) chown, chmod of /var/lib/texmf etc. to root:users, 664
> > in postinst. ("users" should be debconf answer, of course)
> >
> > I'm not sure if 2) is secure enough or not.
> > But perhaps 2) will fix #198549 too.
>
> The problem is that mktexlsr can not write to /var/lib/texmf. The ls-R
> files are have 664 and root:users (debconf answer). So normally the ls-R
> files could be manipulated by users too. But the mktexlsr run deletes
> the old ls-R and creates (moves) the a new in it's place. The directory
> isn't writeable for the users - process failed.
Yes, but what I wanted to say was to set the ownership/permission
of the directory /var/lib/texmf as root:users/664 at the same time
with changing those of the ls-R file.
mktexlsr includes the following:
# Use same permissions as parent directory, minus x,s, or t bits.
chmod `kpsestat -xst "$db_dir"` "$db_file"
so only changing the ownership/permission of /var/lib/texmf
might work?
# I still misunderstand something?
> I wonder, how upstream does solve this?
>
> A "cat ls-R.tmp > ls-R" instead of moving the temporary ls-R could solve
> this.
Do you mean to modify mktexlsr?
Thanks, 2003-7-18(Fri)
--
Debian Developer & Debian JP Developer - much more I18N of Debian
Atsuhito Kohda <kohda@debian.org>
Department of Math., Univ. of Tokushima
Reply to: