View Full Version : unusual user management GUI...

07-04-2007, 07:23 AM

I'm not sure if this belongs here or on the Perl/CGI section...

I'm designing a site that will have a section that only members can access. Nothing new there, I'll just use htaccess. The thing is, it's all done through CPANEL and the person running that area of the site has to be able to add, edit and delete users WITHOUT loging in to CPANEL.

Basically what I need is a script that taps into the password database and allows that person to manage the user logins. All without messing CPANEL. Meaning that both CPANEL and the script will show an up to date list of active logins whenever they're used.

Stuff like allowing users to register, sending password reminder, etc, is not needed. The person in charge of managing the users will insert the new logins as they come along. It's just a matter of allowing someone to add users without using the CPANEL.

Here's some info about my account:

Apache version 1.3.37 (Unix)
PERL version 5.8.7
Path to PERL /usr/bin/perl
PHP version 4.4.7
MySQL version 4.1.21-standard
cPanel Build 10.9.0-RELEASE 10737

I used to have a script that worked great (it was a different site, almost 10 years ago), but that was when .htacess stuff was installed manually. I'm not sure if the way CPANEL uses to store the logins is 'tap-able'...

Can it be done?

Is there any free off-the-shelf script I can use instead?

Thanks in advance.

07-04-2007, 07:50 AM
yes this is possible. Although I'm not sure if you can find one for free... search around using the keywords "HTTP authentication". If there are any scripts available(which there probably is), those keywords should find them for you.

If you really wanted, I could write one for you, but look around first.

07-04-2007, 08:38 PM
Hi fl00d and thanks for the interest.

I found a few free solutions, like this one here (http://www.cgi.veinotte.com/member_manager.htm), which I installed but doesn't seem to work. The problem seems to be caused by CPANEL. In the old days we'd just set .htaccess manually but I can't even do that with my current server account. Seems like protected dirs only work if the password file is located on the /home/user/.htpasswds/ dir!

And CPANEL seems to scan for .htaccess files, as I set this one manually and CPANEL was able to pick it up. I saw it marked as protected when I searched for it within CPANEL.

This is probably preventing the script from working.

One other detail I forgot to mention is that I'm doing this on a subdomain, hence the need to have a user management script, as I cannot give full CPANEL access to the person handling the access management.

Does any one has any ideas? Or will I have to buy a new server account just for that client, so he can have full CPANEL access?

Plenty of those user management scripts here (http://www.hotscripts.com/CGI_and_Perl/Scripts_and_Programs/User_Management/index.html), BTW.

07-06-2007, 06:13 AM
Just a short followup...

I ended up going with DirectoryPass (http://www.locked-area.com/Products/DP/). It has some limitations (like the location of the password file) but it gets the job done.