Results 1 to 2 of 2

Thread: Where is the Path set, that appears in my PATH variable?

  1. #1
    Join Date
    Mar 2008
    Location
    Nottingham
    Beans
    167
    Distro
    Ubuntu

    Where is the Path set, that appears in my PATH variable?

    In what files do generally get Path variables set?

    I have a path to some directory in my PATH variable, which I don't understand how it gets added.
    In none of .bashrc .profile /etc/profile or /etc/bash.bashrc I have a line saying export PATH=/path/to/dir:$PATH, but it appears to be the very first path in the list of added paths.
    It is a custom directory, but I do not remember when I added it or where and I don't know where to look. The fact that it is in the path is not a problem, but I was still wondering how it got there. (It was set in the .bashrc at some point, but I commented that part out, also the .bashrc does not get sourced when I remote loginto the computer)

    Thanks for any help, suggestions
    alea iacta est

  2. #2
    Join Date
    Oct 2010
    Location
    Above ground...(for now)
    Beans
    761

    Re: Where is the Path set, that appears in my PATH variable?

    I have a similar situation in that part of my PATH variable contains a location for which I haven't been able to discover where it was specified.
    So, take the following as a *weak* suggestion.

    You might want to take a look in the following places:
    /etc/init.d/rc
    /etc/init.d/rc.local
    /etc/init.d/skeleton
    /etc/init.d/x11-common
    /etc/skel/.bashrc
    /etc/skel/.profile
    /lib/init/vars.sh
    /root/.bashrc

    There must be other places as well since I didn't find what I was looking for in anything listed above.

    However, you might get lucky.

    Best wishes,

    Crusty
    Last edited by Crusty Old Fart; August 11th, 2013 at 10:24 AM.
    Suffering from severe chronic female supervision deficiency syndrome resulting in
    an increasing intolerance of adolescent scatological effluence and PMS induced nefarious diatribe.
    How to: Mark your thread as: [SOLVED]

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •