Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th June 2009, 00:26
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 132
Thanks: 2
Thanked 7 Times in 7 Posts
Default Protected Directories | Adding Users

Hey all,

I have to add about 200+ users to a protected directory and really dont want to do it one by one. Is there a file I could add the usernames and passwords to?


--Steve
Reply With Quote
Sponsored Links
  #2  
Old 18th June 2009, 11:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Just add them to the .htpasswd file in the root directory of the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th June 2009, 20:47
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 132
Thanks: 2
Thanked 7 Times in 7 Posts
Default

what is the format they go in?
Reply With Quote
  #4  
Old 19th June 2009, 00:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Use the htpasswd command to insert them.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 19th June 2009, 05:36
pebkac pebkac is offline
Senior Member
 
Join Date: Feb 2009
Posts: 132
Thanks: 2
Thanked 7 Times in 7 Posts
Default

thanks til, however I cant seem to figure it out. I just read the man pages and some tutorials about htpasswd and I cant see how to take a list in this format:

user.nameassword

And have htpasswd encrypt the passwords and move them to the .htpasswd file for this site. I see you can add a user to it or create a users file but then I would have to do it one by one and Might as well do it through ISPConfig.

Any additional help would be greatly appreciated.

--Steve
Reply With Quote
  #6  
Old 19th June 2009, 08:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
 
Default

There is no import function for lists, this is the command to add users in the correct format and with the correct password encryption into the file. You will have to write a script that uses your list with usernames and cleartext passords and then executes the command for every user to add it to the file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Clamav + samba configuration wammy28 HOWTO-Related Questions 8 31st January 2009 20:12
Cacti and ISPConfig: Monitoring Tool VMartins Tips/Tricks/Mods 11 9th August 2008 19:37
Strato Server - Restoring with SystemImager popper2001 HOWTO-Related Questions 5 28th July 2007 11:18
Junk mail and spamassassin... sthompson Installation/Configuration 4 27th December 2006 17:11
Creating image with Systemimager cuongtim HOWTO-Related Questions 3 18th November 2006 14:55


All times are GMT +2. The time now is 05:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.