Find the answer to your Linux question:
Results 1 to 10 of 10
Where is the path file located in mandrake 10.1? I hate having to type the path to run a command, especially if each path is a bloody paragraph long! -->Nikosapi...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100

    The Ultimate n00b question!


    Where is the path file located in mandrake 10.1?
    I hate having to type the path to run a command, especially if each path is a bloody paragraph long!
    -->Nikosapi

  2. #2
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    What command are you trying to execute?

    The most I have had to type for a path was "/sbin".
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  3. #3
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100
    well if I want to add a user to my server this is what I have to type:

    /usr/local/apache2/bin/htpasswd /usr/some/path/passwords/somefile someuser

    it'll save a little bit of typing...

    -->Nikosapi

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    the command to add a user is
    Code:
    useradd -m -G users,wheel,audio -s /bin/bash <new_user>
    without the <> and anyother groups that you want them to have seperated by a ',' then to set there password the command is
    Code:
    password <new_user>
    also check the manpage for useradd
    Code:
    man useradd
    [/code]

    well that adds the user to the whole bax and that is what i do then i dont put them in wheel so they cont go root even if they had the root passwd




    if you are just adding them to apache you can just edit the config to add them
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  6. #5
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100
    Could somebody just answer my question? Thank you for giving me another way to add users but I still want to know where my path file is located. I tried find and the locate command and still can't find it, help...
    -->Nikosapi

  7. #6
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    You can set your $PATH with e.g.
    Code:
    PATH=$PATH&#58;/sbin
    for example, and then put that in a file in your home directory named .bashrc (put in ~/.bashrc)

    The universal file is /etc/bash/bashrc if you want to change the PATH for all users
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  8. #7
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    Path is an environmental variable. type
    Code:
    echo $PATH
    to see it. You will notice that it is seperated with colons. It is initially set in /etc/profile on login but if you want to modify it temporarily or to experiment type (for example)
    Code:
    PATH=$PATH&#58;/sbin
    This will set PATH to what it was and append the value /sbin.

  9. #8
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    Sorry dylunio, clashed with you there! Just goes to show how hard we all try to please

  10. #9
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Quote Originally Posted by bigtomrodney
    Sorry dylunio, clashed with you there! Just goes to show how hard we all try to please
    no need to apologise were all here and try to help, and we all contribute
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  11. #10
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100
    Thanks a lot, Linux is still a little confusing to me. Thanks,
    -->Nikosapi

Posting Permissions

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