[tex-live] strange changing permissions

George N. White III gnwiii at gmail.com
Mon Apr 12 19:01:40 CEST 2010

On Mon, Apr 12, 2010 at 1:33 PM, Victor Ivrii <vivrii at gmail.com> wrote:

> On Mon, Apr 12, 2010 at 11:23 AM, George N. White III <gnwiii at gmail.com> wrote:
>> Today I discovered that installing gnuplot-4.4.0 as "root", e.g.
>> "sudo make install" does:
>> [...]
>> test -z "/usr/local/usr//usr/local/texlive/2009/../texmf-local/tex/latex/gnuplot"
>> || /opt/local/bin/gmkdir -p
>> "/usr/local/usr//usr/local/texlive/2009/../texmf-local/tex/latex/gnuplot"
>>  /usr/bin/install -c -m 644 gnuplot.cfg gnuplot-lua-tikz.sty
>> '/usr/local/usr//usr/local/texlive/2009/../texmf-local/tex/latex/gnuplot'
>> make  install-data-hook
>> test -n "" || texhash
>> texhash: Updating /usr/local/texlive/2009/../texmf-local/ls-R...
>> texhash: Updating /usr/local/texlive/2009/texmf/ls-R...
>> texhash: Updating /usr/local/texlive/2009/texmf-config/ls-R...
>> texhash: Updating /usr/local/texlive/2009/texmf-dist/ls-R...
>> texhash: Updating /usr/local/texlive/2009/texmf-var/ls-R...
>> texhash: Done.
> Yes - it should be this way as you install gnuplot as a root and it
> installs also in TL tree. Asymptote does the same for sure and I guess
> any s/w which installs LaTeX packages.
> I suspect that any non-TL s/w which in the process of "(sudo) make
> install"  installs LaTeX packages

Maybe "install" should have an option to make ownership of
installed/generated files match the existing value.

TeX Live could provide a mechanism so that when mktexlsr, etc.
are run by root the ownership is set to that of the pre-existing files
or to some designated tladmin user:group, or at least exit with
warning message if pre-existing files are not owned by root.

> Victor
> --
> ========================
> Victor Ivrii, Professor, Department of Mathematics, University of Toronto
> http://www.math.toronto.edu/ivrii

George N. White III <aa056 at chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia

More information about the tex-live mailing list