[OS X TeX] /usr/local/texlive/texmf-local/ls-R: Permission denied; MacTeX 2017/High Sierra
Herbert Schulz
herbs at wideopenwest.com
Thu Nov 23 16:01:00 EST 2017
> On Nov 23, 2017, at 2:41 PM, Rowland McDonnell <rowland.mcdonnell at physics.org> wrote:
>
>> Howdy,
>>
>> First grab the TeXLive2017+Changes.pdf.zip from <https://herbs.github.io>. There is a section there about the better way to install fonts so it's easier to udpate to a later TeX Live version.
>>
>> Next, what were the messages when you did the `sudo mktexlsr` command?
>> Also check the file permissions for /usr/local/texlive/texmf-local
>> and, in particular, the contents of that directory on your system.
>>
>> Good Luck,
>>
>> Herb Schulz
>> (herbs at wideopenwest dot com)
>
> Thanks for this.
>
> Replying to your queries:
>
> First time sudo -H mktexlsr
>
> mktexlsr: Updating /usr/local/texlive/2017/texmf-config/ls-R...
> mktexlsr: Updating /usr/local/texlive/2017/texmf-dist/ls-R...
> mktexlsr: Updating /usr/local/texlive/2017/texmf-var/ls-R...
> mktexlsr: Updating /usr/local/texlive/texmf-local/ls-R...
> mktexlsr: Done.
>
> Second time sudo -H mktexlsr
> (after sudo -H updmap-sys --force --enable Map=local_extras.map, as suggested)
>
> mktexlsr: Updating /usr/local/texlive/2017/texmf-config/ls-R...
> mktexlsr: Updating /usr/local/texlive/2017/texmf-dist/ls-R...
> mktexlsr: Updating /usr/local/texlive/2017/texmf-var/ls-R...
> mktexlsr: Updating /usr/local/texlive/texmf-local/ls-R...
> mktexlsr: Done.
>
> Note: the last operation performed by sudo -H updmap-sys --force --enable Map=local_extras.map according to the Terminal output was:
>
> updmap: Updating ls-R files.
>
> Permissions etc for /usr/local/texlive/ including texmf-local:
>
> texlive rowland$ ls -la
> total 16
> drwx---r-x 5 root wheel 170 23 Nov 20:04 .
> drwxr-xr-x 14 root wheel 476 18 Nov 01:53 ..
> -rw-r--r--@ 1 _sophos staff 6148 4 Oct 19:54 .DS_Store
> drwxr-xr-x 20 root wheel 680 24 May 2017 2017
> drwx---r-x+ 13 rowland admin 442 23 Nov 17:06 texmf-local
>
> And for the contents of /usr/local/texlive/texmf-local
>
> texlive rowland$ cd texmf-local/
> texmf-local rowland$ ls -la
> total 104
> drwx---r-x+ 13 rowland admin 442 23 Nov 17:06 .
> drwx---r-x 5 root wheel 170 23 Nov 20:04 ..
> -rw----r--@ 1 rowland admin 10244 23 Nov 17:03 .DS_Store
> drwxr-xr-x 4 rowland admin 136 23 Nov 17:04 Original ls-R file
> drwx---r-x+ 4 rowland admin 136 2 Oct 2009 bibtex
> drwx---r-x+ 4 rowland admin 136 4 Feb 2007 doc
> drwx---r-x+ 3 rowland admin 102 2 Oct 2009 dvips
> drwx---r-x+ 8 rowland admin 272 23 Nov 2006 fonts
> -rw----rw-@ 1 rowland admin 38783 23 Nov 16:12 ls-R
> drwx---r-x+ 3 rowland admin 102 2 Oct 2009 metapost
> drwx---r-x+ 4 rowland admin 136 4 Feb 2007 scripts
> drwx---r-x+ 8 rowland admin 272 27 Oct 2009 tex
> drwx---r-x+ 4 rowland admin 136 2 Oct 2009 web2c
>
> Is there anything amiss that you can see?
>
> - everything seems to work okay now that I've created a version of
>
> /usr/local/texlive/texmf-local/ls-R
>
> which is owned by my account and can be read and written by all. I've made no other changes to file ownership or permissions inside /usr/local/texlive/.
>
> On the subject of font installation: I'm unclear as to how your method makes life significantly easier. As things stand, I've got a file /usr/local/texlive/texmf-local/fonts/map/local_extras.map which does what it says.
>
> I see that your method uses the plain invocation of "sudo -H updmap-sys", but aside from that what other advantage is there?
>
> Thanks,
> Rowland.
Howdy,
Have you set up your system so that group permissions there are always --- (i.e., 0)? I suggest you remove that ls-R file and re-run
sudo mktexlsr
and then check permissions.
If you have multiple fonts and that method is set up properly that single command, `sudo -H updmap-sys`, will set up all the maps at once. If you ever install TeX Live 2017 (via MacTeX-2017) you just run that same command once and you're set. Of course you have to update the updmap.cfg file if you add new fonts but then it's good for many more years.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the MacOSX-TeX
mailing list