Bug#198546: tetex-bin: mktexlsr/texhash fails writing ls-R as user
On 18.07.03 Kai Weber (kai.weber@glorybox.de) wrote:
> No. Just tested it. Changing the ownership to
>
> drwxrwxr-x 3 root users 69 Jul 18 13:55 texmf
>
> and running texhash as ordinary users leads to
>
drachi:[hille] >ll /root/a
-rw-r--r-- 1 root root 0 Jul 18 18:40 /root/a
drachi:[hille] >chown hille:users /root/a
chown: changing ownership of `/root/a': Operation not permitted
drachi:[hille] >id
uid=1000(hille) gid=100(users)
groups=100(users),5(tty),6(disk),20(dialout),22(voice),24(cdrom),25(floppy),29(audio),30(dip)
> # ls -l
> total 236
> -rw-r--r-- 1 root root 29845 Feb 16 02:49 helpindex.html
> -rw-r--r-- 1 root root 3707 Jun 23 23:10 language.dat
> -rw-rw-r-- 1 bond bond 199445 Jul 18 13:55 ls-R
> drwxr-xr-x 2 root root 4096 Jun 23 23:11 web2c
>
It doesn't change the ownership, correct. Should it be able to do so?
> > > A "cat ls-R.tmp > ls-R" instead of moving the temporary ls-R
> > > could solve this.
> >
> > Do you mean to modify mktexlsr?
>
> IMO, mktexlsr seems buggy or I misunderstand it. There is no code
> in mktexlsr which preserves the ownership of the file. There is
> only code for permissions.
>
Well, that statement conflicts with #198549.
If the ownership is set one time (e.g. during postin), why do you
want to change it?
Maybe I'm totally wrong,
H.
--
sigmentation fault
Reply to: