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.

bandmin

Discussion in 'General Discussion' started by silvernetuk, Feb 25, 2003.

  1. silvernetuk

    silvernetuk Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    Hi,

    Is it possible to password protect bandmin or /bandwidth/ in the browser ? so only I can get access to it or root

    How do I do this ?

    Regards,
    Garry
     
  2. silvernetuk

    silvernetuk Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    Hi,

    I have password protected it.

    Could someone tell me why htpasswd is not installed ?

    Regards,
    Garry
     
  3. awsol

    awsol cPanel Test Bitch

    Joined:
    Feb 8, 2002
    Messages:
    591
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Boston MA
  4. hormigo

    hormigo Well-Known Member

    Joined:
    Sep 9, 2002
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    pico /usr/local/bandmin/htdocs/.htaccess

    Put the following in the file:

    AuthUserFile /usr/local/bandmin/.htpasswd
    AuthGroupFile /dev/null
    AuthName "Bandwidth Login"
    AuthType Basic

    <Limit GET POST>
    require valid-user
    </Limit>

    Hit Ctrl+X then Y and then Enter

    Then

    htpasswd -c /usr/local/bandmin/.htpasswd username
    (username is the username you want to create)
    enter your password
    enter your password again

    If you dont have htpasswd installed on your server you can go to http://www.euronet.nl/~arnow/htpasswd/ to generate one. Then just use pico to edit /usr/local/bandmin/.htpasswd and paste the line of text that the site gave you into it.
     
  5. ivaserver

    ivaserver Well-Known Member

    Joined:
    Aug 9, 2002
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for this information

    Regards
    Ivaserver
     
    #5 ivaserver, Jun 1, 2003
    Last edited: Jun 1, 2003
  6. Silverado

    Silverado Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    154
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Backyard - Poolside
    Awesome.. and Thanks for that tip.
    I truly appreciate just happening to walk right into this tonight.

    cPanel.net Support Ticket Number:
     
  7. infinityws

    infinityws Well-Known Member

    Joined:
    Feb 20, 2003
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    you'll have to enter the full path to htpasswd because its not installed in any users $PATH

    cPanel.net Support Ticket Number:
     
  8. InternetPEI

    InternetPEI Well-Known Member

    Joined:
    May 26, 2003
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    16
    hormigo, Thanks for the info!!

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page