Running tlmgr/tlshell with sudo
Bruno Voisin via tex-live <[email protected]>
| Newsgroups | gmane.comp.tex.live |
|---|---|
| Message-ID | <[email protected]> |
After performing a network install of the pretest with sudo ./install-tl -repository http://ftp.cstug.cz/pub/tex/local/tlpretest/ -gui text two days ago, and attempting to use texdoc this morning, I'm getting % texdoc xindy texdoc warning: Failed to create cache file in /Users/brunovoisin/Library/texlive/2026/texmf-var/texdoc/cache-tlpdb.lua: texdoc warning: Permission denied The explanation seems to be: after the install I ran "sudo tlshell" to see how the tlmgr GUI looked like; this created a config file in TEXMFCONFIG, namely (I'm on the Mac) the tree ~/Library/texlive/2026/ ~/Library/texlive/2026/texmf-config/ ~/Library/texlive/2026/texmf-config/tlmgr/ ~/Library/texlive/2026/texmf-config/tlmgr/config all with root ownership, in my home directory. This comes from running "sudo tlshell" instead of "sudo -H tlshell". Doing the latter instead, I get /var/root/Library/texlive/2026/ /var/root/Library/texlive/2026/texmf-config/ /var/root/Library/texlive/2026/texmf-config/tlmgr/ /var/root/Library/texlive/2026/texmf-config/tlmgr/config I'm surprised though: I thought the scripts written by Norbert (like updmap-sys) made sure the user didn't need to specify -H explicitly. Or maybe this is specific to tlshell, not tlmgr? This may be entirely my fault: I'm not experienced with tlmgr or tlshell, I generally use TeX Live Utility on the Mac. I'm just reporting in case the above is not intended behavior. Bruno Voisin