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.

how to protect folder with email passwords??

Discussion in 'E-mail Discussions' started by ahassan, Jul 6, 2005.

  1. ahassan

    ahassan Registered

    Joined:
    Jul 6, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    How can i assign a folder to be password protected, where users can acces it using there email password??

    example:
    my domain: www.3li.us
    my email: hhh@3li.us
    email password: 111111
    the folder www.3li.us/folder is password protected
    where i can access it using my email as user name: hhh@3li.us
    and my email password as password.


    My server uses:
    WHM 10.0.0 cPanel 10.0.0-R146
    Fedora i686 - WHM X v3.1.0
     
  2. ehpmahesh

    ehpmahesh Well-Known Member

    Joined:
    Jul 3, 2004
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    In your Cpanel you have a option call Password protection. Using that you can protect your folder.
     
  3. ahassan

    ahassan Registered

    Joined:
    Jul 6, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Yes, in that case i'll have to set new passwords.

    Question is: how can i protect the folder with current email password.

    example: i have a company and 200 of my staff have already emails.

    I want to define a folder where the 200 persons can access this folder with thier current password.
     
  4. lankyb

    lankyb Well-Known Member

    Joined:
    Sep 21, 2004
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Peterborough, UK
    I do not think its possible due to the way the passwords are encrypted.

    When you password protect a folder a file called passwd is created here:
    Code:
    /home/USERNAME/.htpasswds/PROTECTEDFOLDERNAME/passwd
    now the email passwords are kept here:
    Code:
    /home/USERNAME/etc/DOMAIN/shadow
    But if you copy and paste the information into the passwd file, it has no clue how to deal with it. You might be able to make a script to deal with the conversion.... but i do not know how to do it.
     
  5. ahassan

    ahassan Registered

    Joined:
    Jul 6, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for sharing us, I'll try and post the result.

    waiting for other experts to post a solution.
     
Loading...

Share This Page