[arch-general] htaccess password
Hi .. I need to generate a htaccess file that has 150 username password pairs does anyone know of a utility that can do this short of lots of typing .. Thanks Pete . -- Linux 7-of-9 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64 AMD Phenom(tm) 9600B Quad-Core Processor AuthenticAMD GNU/Linux
Am 29.03.2012 23:11, schrieb pete:
Hi ..
I need to generate a htaccess file that has 150 username password pairs does anyone know of a utility that can do this short of lots of typing ..
Thanks Pete .
Hey Pete, do these username/password pairs already exist, or do you want to generate them? cheers, ushi
On Thu, 29 Mar 2012 23:14:39 +0200 martin kalcher <martin.kalcher@googlemail.com> wrote:
Am 29.03.2012 23:11, schrieb pete:
Hi ..
I need to generate a htaccess file that has 150 username password pairs does anyone know of a utility that can do this short of lots of typing ..
Thanks Pete .
Hey Pete,
do these username/password pairs already exist, or do you want to generate them?
cheers, ushi
Hi .. I need to generate them from the ground up although i know what the usernames will be Pete . -- Linux 7-of-9 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64 AMD Phenom(tm) 9600B Quad-Core Processor AuthenticAMD GNU/Linux
On Fri, Mar 30, 2012 at 07:26:17AM +0100, pete wrote:
On Thu, 29 Mar 2012 23:14:39 +0200 martin kalcher <martin.kalcher@googlemail.com> wrote:
Am 29.03.2012 23:11, schrieb pete:
Hi ..
I need to generate a htaccess file that has 150 username password pairs does anyone know of a utility that can do this short of lots of typing ..
Thanks Pete .
Hey Pete,
do these username/password pairs already exist, or do you want to generate them?
cheers, ushi
Hi ..
I need to generate them from the ground up although i know what the usernames will be
Pete .
-- Linux 7-of-9 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64 AMD Phenom(tm) 9600B Quad-Core Processor AuthenticAMD GNU/Linux
Maybe consult /dev/urandom in conjunction with some sed or echo? -- --Szu-Han Chen (sjchen.com) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
On Friday 30 Mar 2012 07:26:17 pete wrote:
I need to generate them from the ground up although i know what the usernames will be
I would be tempted to use pwgen. I'm a Ruby nut, so I'd probably use Ruby to split the output and pop it into a CSV to combine with the usernames, and then another script would take a CSV in and generate the crypt hashes. Paul
You probably want to look into mod_auth_ldap or something by that point. Do you want to generate them randomly? --Kaiting. On Thu, Mar 29, 2012 at 5:11 PM, pete <p.nikolic1@btinternet.com> wrote:
Hi ..
I need to generate a htaccess file that has 150 username password pairs does anyone know of a utility that can do this short of lots of typing ..
Thanks Pete .
-- Linux 7-of-9 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64 AMD Phenom(tm) 9600B Quad-Core Processor AuthenticAMD GNU/Linux
-- Kiwis and Limes: http://kaitocracy.blogspot.com/
On Thu, 29 Mar 2012 17:15:09 -0400 Kaiting Chen <kaitocracy@gmail.com> wrote:
You probably want to look into mod_auth_ldap or something by that point. Do you want to generate them randomly? --Kaiting.
On Thu, Mar 29, 2012 at 5:11 PM, pete <p.nikolic1@btinternet.com> wrote:
Hi ..
I need to generate a htaccess file that has 150 username password pairs does anyone know of a utility that can do this short of lots of typing ..
Hi
Well the username would be a preset thing along the lines of car001 ect but not continuous to 150 it will run to about 40 the be in the 200 range like car201 and also same for the 300 range car301 Pete . -- Linux 7-of-9 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64 AMD Phenom(tm) 9600B Quad-Core Processor AuthenticAMD GNU/Linux
pete, Thu 2012-03-29 @ 22:11:31+0100:
I need to generate a htaccess file that has 150 username password pairs does anyone know of a utility that can do this short of lots of typing ..
For generating passwords, there is the utility `pwgen`.
On Thu, 29 Mar 2012 22:11:31 +0100 pete <p.nikolic1@btinternet.com> wrote:
Hi ..
I need to generate a htaccess file that has 150 username password pairs does anyone know of a utility that can do this short of lots of typing ..
Thanks Pete .
Maybe i should correct that slightly i need to generate .htpasswd file with 150 user password pairs .. Pete . -- Linux 7-of-9 3.2.13-1-ARCH #1 SMP PREEMPT Sat Mar 24 09:10:39 CET 2012 x86_64 AMD Phenom(tm) 9600B Quad-Core Processor AuthenticAMD GNU/Linux
Am 29.03.2012 23:16, schrieb pete:
On Thu, 29 Mar 2012 22:11:31 +0100 pete<p.nikolic1@btinternet.com> wrote:
Hi ..
I need to generate a htaccess file that has 150 username password pairs does anyone know of a utility that can do this short of lots of typing ..
Thanks Pete .
Maybe i should correct that slightly i need to generate .htpasswd file with 150 user password pairs ..
Pete .
something like this? #!/bin/sh while read usr; do echo "$usr:$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c 16)"\ >> .htpasswd done < users In the 'users' file your users are listed (one per line). NOTE: you cant be sure that the passwords are unique cheers
On 03/29/2012 05:16 PM, pete wrote:
Maybe i should correct that slightly i need to generate .htpasswd file with 150 user password pairs ..
Pete .
If you have a file with usernames then something like this may work for you. ufile=/tmp/xxx pfile=/tmp/yyy result=/tmp/upfile N=$(wc -l $userfile | awk '{print $1}' pwgen -C1 -N $N > $pfile paste $ufile $pfile > $result gene
participants (7)
-
Genes MailLists
-
Kaiting Chen
-
martin kalcher
-
Paul Gideon Dann
-
pete
-
Szu-Han Chen
-
Taylor Hedberg