FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 10-11-2012, 05:24 PM
Pandu Poluan
 
Default Where does sudo get the PATH ?

On Oct 11, 2012 11:54 PM, "Nicolas Richard" <theonewiththeevillook@yahoo.fr> wrote:

>

> Pandu Poluan <pandu@poluan.info> writes:

> > A bit desperate, but try :

> >

> > grep -R "texlive/2011" /etc/*

>

> I tried that already

>

> youngfrog@geodiff-mac3 ~ $ sudo grep -r texlive/2011 /etc

>

> youngfrog@geodiff-mac3 ~ $ sudo grep -r texlive/2011 ~root

> /root/.bash_history:cd /usr/local/texlive/2011

> /root/.bash_history:grep texlive/2011 * -r

> /root/.bash_history:grep texlive/2011 . -r

> /root/.bash_history:grep texlive/2011 .* -r

>

> --

> N.

>

>


Hmmmmmm....


Maybe it's building the PATH not explicitly... something like :


PATH="$PATH;/usr/local/texlive/$SOME_VARIABLE/and/so/forth"


Try grepping for "texlive/$"


Rgds,
 
Old 10-12-2012, 08:55 AM
"Nicolas Richard"
 
Default Where does sudo get the PATH ?

Pandu Poluan <pandu@poluan.info> writes:

> Maybe it's building the PATH not explicitly... something like :
>
> PATH="$PATH;/usr/local/texlive/$SOME_VARIABLE/and/so/forth"
>
> Try grepping for "texlive/$"

I tried, but the results are always pointing to the (correct) 2012
version.

I paste the result hereunder just in case, but I'm pretty sure there's
nothing interesting in there. (btw, there are errors because of missing
targets for some symlinks, hence the redirection)

youngfrog@geodiff-mac3 /etc $ sudo grep -R 'texlive' * 2> /dev/null
csh.env:setenv INFOPATH '/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.5.4/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.22/info:/usr/share/info/emacs-24:/usr/local/texlive/2012/texmf/doc/info'
csh.env:setenv MANPATH '/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/local/texlive/2012/texmf/doc/man'
csh.env:setenv PATH '/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/games/bin:/usr/local/texlive/2012/bin/i386-linux'
csh.env:setenv ROOTPATH '/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/local/texlive/2012/bin/i386-linux'
env.d/99texlive:PATH=/usr/local/texlive/2012/bin/i386-linux
env.d/99texlive:ROOTPATH=/usr/local/texlive/2012/bin/i386-linux
env.d/99texlive:MANPATH=/usr/local/texlive/2012/texmf/doc/man
env.d/99texlive:INFOPATH=/usr/local/texlive/2012/texmf/doc/info
environment:PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3:/usr/local/texlive/2012/bin/i386-linux:/root/bin
portage/profile/package.provided:app-text/texlive-core-2011-r5
portage/profile/package.provided:dev-texlive/texlive-basic-2011-r1
portage/profile/package.provided:dev-texlive/texlive-documentation-base-2011
portage/profile/package.provided:dev-texlive/texlive-fontsextra-2011
portage/profile/package.provided:dev-texlive/texlive-fontsrecommended-2011
portage/profile/package.provided:dev-texlive/texlive-fontutils-2011
portage/profile/package.provided:dev-texlive/texlive-genericextra-2011
portage/profile/package.provided:dev-texlive/texlive-genericrecommanded-2011
portage/profile/package.provided:dev-texlive/texlive-genericrecommended-2011
portage/profile/package.provided:dev-texlive/texlive-latex-2011
portage/profile/package.provided:dev-texlive/texlive-latexextra-2011-r2
portage/profile/package.provided:dev-texlive/texlive-latexrecommended-2011
portage/profile/package.provided:dev-texlive/texlive-pictures-2011
portage/profile/package.provided:dev-texlive/texlive-pstricks-2011
portage/profile/package.provided:dev-texlive/texlive-science-2011
portage/profile/package.provided:dev-texlive/texlive-texinfo-2011
portage/profile/package.provided:# dev-texlive/texlive-latex3-2011
portage/profile/package.provided:# dev-texlive/texlive-fontsextra-2011
portage/profile/package.provided:# dev-texlive/texlive-latexextra-2011
portage/profile/package.provided:# dev-texlive/texlive-pictures-2011
portage/profile/package.provided:# dev-texlive/texlive-science-2011
portage/profile/package.provided:# dev-texlive/texlive-xetex-2011
portage/profile/package.provided:# dev-texlive/texlive-luatex-2011
prelink.conf:-h /usr/local/texlive/2012/bin/i386-linux/
profile.env:export INFOPATH='/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.5.4/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.22/info:/usr/share/info/emacs-24:/usr/local/texlive/2012/texmf/doc/info'
profile.env:export MANPATH='/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.5.4/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.22/man:/etc/java-config/system-vm/man/:/usr/local/texlive/2012/texmf/doc/man'
profile.env:export PATH='/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/games/bin:/usr/local/texlive/2012/bin/i386-linux'
profile.env:export ROOTPATH='/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/local/texlive/2012/bin/i386-linux'

--
N.
 

Thread Tools




All times are GMT. The time now is 04:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org