Re: [arch-general] htaccess password
On Fri, Mar 30, 2012 at 07:26:17AM +0100, pete wrote: > On Thu, 29 Mar 2012 23:14:39 +0200 > martin kalcher 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 pgpQNpJt2EB4o.pgp Description: PGP signature
Re: [arch-general] htaccess password
On Thu, 29 Mar 2012 23:14:39 +0200 martin kalcher 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
Re: [arch-general] htaccess password
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
Re: [arch-general] htaccess password
On Thu, 29 Mar 2012 17:15:09 -0400 Kaiting Chen 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 > 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
Re: [arch-general] htaccess password
Am 29.03.2012 23:16, schrieb pete: On Thu, 29 Mar 2012 22:11:31 +0100 pete 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
Re: [arch-general] htaccess password
On Thu, 29 Mar 2012 22:11:31 +0100 pete 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
Re: [arch-general] htaccess password
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`. pgpFG4oIiQ8MZ.pgp Description: PGP signature
Re: [arch-general] htaccess password
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 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/
Re: [arch-general] htaccess password
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
[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