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

Bug#198546: tetex-bin: mktexlsr/texhash fails writing ls-R as user



tags 198546 - sid
thanks

On 23.06.03 Kai Weber (debian-bugs-submit@glorybox.de) wrote:

> When running texhash as user (which is in groups users) texhash
> fails:
> 
> Setting the permissions of the ls-R files to 664 for a group
> (debconf's default to users) is not enough. The mktexlsr script
> creates a temporary ls-R and deletes the orginal ls-R then moves
> the temp. ls-R to the old location. This fails because the user has
> not enough rights to write into the directory.
> 
Does it make sense, that normal user can update the ls-R database of
/usr/local/lib/texmf ?

> bond@glorybox ~ $ texhash
> texhash: /usr/local/lib/texmf: directory not writable. Skipping...
> texhash: /var/lib/texmf: directory not writable. Skipping...
> texhash: /var/cache/fonts: directory not writable. Skipping...
> texhash: Done.
> bond@glorybox ~ $ ls -al /var/lib/texmf/
> total 240
> drwxr-xr-x    3 root     root           69 Jun 23 23:11 .
> drwxr-xr-x   25 root     root         4096 Jun 22 19:30 ..
> -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 root     users      199423 Jun 23 23:11 ls-R
> drwxr-xr-x    2 root     root         4096 Jun 23 23:11 web2c
> 
Doesn't work in woody either:

drachi:[hille] >dpkg -l tetex-bin
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  tetex-bin      1.0.7+20011202 teTeX binary files
drachi:[hille] >more /etc/debian_version
3.0
drachi:[hille] >texhash
texhash: Updating /home/hille/.texmf/ls-R...
texhash: /var/lib/texmf: directory not writable. Skipping...
texhash: /var/lib/texmf: directory not writable. Skipping...
texhash: /var/lib/texmf: directory not writable. Skipping...
texhash: /var/spool/texmf: directory not writable. Skipping...
texhash: Done.
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)

Remark: /usr/share/texmf/ls-R is a softlink to /var/lib/texmf/ls-R
due to FHS-conventions.

H. 
-- 
sigmentation fault



Reply to: