The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where is htpasswd command in CentOS ? [moved]

Discussion in 'General Discussion' started by taotoon, Jan 14, 2006.

  1. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Where is htpasswd command in CentOS ?

    Thank you very much..

    2.4.20-021stab028.16.777-enterprise
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Not sure what that is you posted - I'm guessing it's a bastardised Virtuozzo kernel version?

    Anyway, to find out where the binary is:

    whereis htpasswd
     
  3. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Yes, and whereis command didn't work.

    Now I found it in /usr/local/apache/bin/htpasswd which normal user can't use it too.
     
    #3 taotoon, Jan 14, 2006
    Last edited: Jan 14, 2006
  4. Izzee

    Izzee Well-Known Member

    Joined:
    Feb 6, 2004
    Messages:
    469
    Likes Received:
    0
    Trophy Points:
    16
    Try
    locate -u
    to build the db
    then
    locate htpasswd

    It might help us to help you if you give some indication as to what you or your user wants to do.

    In a users cPanel GUI they can set a user/pass on any specified directory from
    Site Management/Web Protect/
    Then click on the directory name you wish to protect or click on the icon to open and select a directory within that tree to protect.

    :)
     
    #4 Izzee, Jan 14, 2006
    Last edited: Jan 14, 2006
  5. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    thank "locate -u" is very great!
     
Loading...

Share This Page