how to protect folder with email passwords??

ahassan

Registered
Jul 6, 2005
4
0
151
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: [email protected]
email password: 111111
the folder www.3li.us/folder is password protected
where i can access it using my email as user name: [email protected]
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
 

ehpmahesh

Well-Known Member
Jul 3, 2004
74
0
156
Hi,

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

ahassan

Registered
Jul 6, 2005
4
0
151
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.
 

lankyb

Well-Known Member
Sep 21, 2004
99
0
166
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.
 

ahassan

Registered
Jul 6, 2005
4
0
151
Thanks for sharing us, I'll try and post the result.

waiting for other experts to post a solution.