[Mailman-Developers] Re: [Mailman-Users] Can you set a list's password via the command line?

Mark T. Valites valites@geneseo.edu
Thu, 7 Mar 2002 21:59:48 -0500


--Apple-Mail-1-741966281
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

I replied off the list last to to a similar post.  When I moved my ~475=20=

lists, I hit the same problem.
What I ended up doing was:

foreach list in lists
do
	dumpdb $list/config.db | grep admin_password_line | some awk (to=20=

rip out the password column) | some sed (to get rid of some funky=20
characters) > $listname_file
done

foreach list in lists
do
	config_list -i $listname_file
done

This worked fairly well.  40 or so out of the ~475 at the time didn't=20
take & I had to manually fix the files, or just reset the passwords.  It=20=

wasn't that hard, and I just did it all from the shell prompt, but I=20
might be able to dig it up if you really need me to.

I am of course, interested in a more *proper* way of doing this.

On Thursday, March 7, 2002, at 09:43 PM, James Madill wrote:

>
> In moving the 175 mailing lists from one machine (version 2.0.1) =A0to=20=

> another (version 2.0.8), all of the list passwords are no longer=20
> working.
>
> Is there a way to set a list's password via the command line? =A0I'd =
hate=20
> to have to manually set each one & send it to the list admin(s).
>
> -- James
>
> =A0 =A0 =A0o o o o o o o . . . =A0 _______________________ =
_______=3D=3D=3D=3D=3D=3D=3D_T___
> =A0 =A0o =A0 =A0 =A0_____ =A0 =A0 =A0 =A0 =A0 =A0|James Madill =A0 =A0 =
=A0 =A0 | |Duke Univ Med Ctr|
> >.][__n_n_| D[ =A0=3D=3D=3D=3D|____ =A0|james.madill@duke.edu| | (919) =
286-6384 =A0|
> =A0(________|__|_[____/____]_|_____________________|_|_________________|=

> _/oo =A0O-O-O =A0` =A0oo =A0 =A0 oo =A0'o^o^o =A0 =A0 =A0 =A0 =A0 =
o^o^o` 'o^o =A0 =A0 =A0 =A0 =A0 o^o`
> =
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
> <http://www.duke.edu/~madil001/>
 >--))> >--))>
Mark T. Valites
Unix Systems Analyst
1 College Circle - 124b1 South Hall
SUNY Geneseo
Geneseo, NY 14454
585-245-5577
585-259-3471(Cell)

--Apple-Mail-1-741966281
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=ISO-8859-1

I replied off the list last to to a similar post.  When I moved my
~475 lists, I hit the same problem.

What I ended up doing was:


foreach list in lists

do=20

	dumpdb $list/config.db | grep admin_password_line | some awk (to =
rip
out the password column) | some sed (to get rid of some funky
characters) > $listname_file=20

done


foreach list in lists

do

	config_list -i $listname_file

done


This worked fairly well.  40 or so out of the ~475 at the time didn't
take & I had to manually fix the files, or just reset the passwords.=20
It wasn't that hard, and I just did it all from the shell prompt, but
I might be able to dig it up if you really need me to.


I am of course, interested in a more *proper* way of doing this.


On Thursday, March 7, 2002, at 09:43 PM, James Madill wrote:


<excerpt>

<smaller>In moving the 175 mailing lists from one machine (version
2.0.1) =A0to another (version 2.0.8), all of the list passwords are no
longer working.


Is there a way to set a list's password via the command line? =A0I'd
hate to have to manually set each one & send it to the list admin(s).


</smaller><fixed><bigger>-- James


=A0 =A0 =A0<color><param>B0B0,B0B0,B0B0</param>o o o o o o o . . =
.</color> =A0
<color><param>0000,0000,FFFF</param>_______________________</color>
=
<color><param>FFFF,0000,0000</param>_______=3D=3D=3D=3D=3D=3D=3D_</color>T=
<color><param>FFFF,0000,0000</param>___

</color>=A0 =A0<color><param>B0B0,B0B0,B0B0</param>o</color> =A0 =A0 =
=A0_____ =A0
=A0 =A0 =A0 =A0
=
=A0<color><param>0000,0000,FFFF</param>|</color><color><param>FFFF,0000,FF=
FF</param>James
Madill =A0 =A0 =A0 =A0 =
</color><color><param>0000,0000,FFFF</param>|</color>
=
<color><param>FFFF,0000,0000</param>|</color><color><param>0000,AAAA,0000<=
/param>Duke
Univ Med Ctr</color><color><param>FFFF,0000,0000</param>|

</color><color><param>F0F0,C0C0,2C2C</param>></color>.][__n_n_| D[
=A0=3D=3D=3D=3D|____
=
=A0<color><param>0000,0000,FFFF</param>|</color><color><param>FFFF,0000,FF=
FF</param>james.madill@duke.edu</color><color><param>0000,0000,FFFF</param=
>|</color>
=
<color><param>FFFF,0000,0000</param>|</color><color><param>0000,AAAA,0000<=
/param>
(919) 286-6384 =A0</color><color><param>FFFF,0000,0000</param>|

=
</color>=A0(________|__|_[____/____]_<color><param>0000,0000,FFFF</param>|=
_____________________|</color>_<color><param>FFFF,0000,0000</param>|______=
___________|

</color>_/oo =A0O-O-O =A0` =A0oo =A0 =A0 oo =A0'o^o^o =A0 =A0 =A0 =A0 =A0 =
o^o^o` 'o^o =A0 =A0 =A0
=A0 =A0 o^o`

=
<color><param>B0B0,8080,2C2C</param>-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+=
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

</color><<http://www.duke.edu/~madil001/>

</bigger></fixed></excerpt>>--))> >--))>

Mark T. Valites

Unix Systems Analyst

1 College Circle - 124b1 South Hall

SUNY Geneseo

Geneseo, NY 14454

585-245-5577

585-259-3471(Cell)=

--Apple-Mail-1-741966281--