Find the answer to your Linux question:
Results 1 to 5 of 5
I set up a path and I can't get it to work without sticking /root in front of the path on pathmunge in etc/profile. Does anyone know why this is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    3

    Path not being honored


    I set up a path and I can't get it to work without sticking /root in front of the path on pathmunge in etc/profile. Does anyone know why this is happening to me? thx.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    i am not getting it. is executable file or folder is under /root.
    post complete path here.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    3

    more explanation, hopefully

    paths are now /root/<foldername-level1>/<foldername-level2>

    doesn't matter what my folders are called. anything I put in usr/profile with pathmunge requires I prefix the path with /root in order for me to execute my scripts while I am within any folder, which I must be able to do.

    I have set <foldername-level1> to 777 and have checked my script to make sure it is executable via ls -l. all looks OK.

    of interest is that I also added another path to /usr/local/<foldername> and had no problem at all. That is for an assembler and I can execute it from any folder I wish.

    does this make more sense?

    thx

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    you must be 'root' to execute scripts in folders under /root folder.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    Start by discovering what your path really is.

    Code:
    rcgreen@kirby:~$ echo $PATH
    /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
    rcgreen@kirby:~$
    so you can see if the path you are intending actually gets set.

Posting Permissions

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