<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16643" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=665534620-30042008>&gt;</SPAN>How can I set a complete site back to 
"Initial passwords" as they are at installation time.</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=665534620-30042008>&gt;</SPAN>That is: clear all special passwords related 
to pages, groups, etc. that have been added by different 
users.</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>To get rid of page-specific passwords you've got to get rid 
of lines in any page-file (wiki.d/MyGroup.MyPage) that start with "passwd" -- 
i.e., passwdedit=encryptedvalue, passwdread=encryptedvalue, 
etc.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>(I just tried this on a test page and it successfully got 
rid of the password -- whether it has other undesired side effects I don't 
know.)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>If you are on a linux-based host you could do it on the 
command line like this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>(untested)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>$ cd wiki.d</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>$ grep -l '^passwd' * | xargs sed -i 
'/^passwd/d'</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>or, if you don't have command line you could do the same 
sort of thing with WikiSh in the Control Panel:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>(untested)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>grep -l '^passwd' TEXTFILE--wiki.d/* | while read 
fn</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>do</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>&nbsp;&nbsp; grep -v '^passwd' TEXTFILE--${fn} 
&gt;TEXTFILE--${fn}</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2>done</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=362352720-30042008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN 
class=362352720-30042008>Either</SPAN><SPAN class=362352720-30042008>&nbsp;of 
these are kind of "big" and non-standard automatic edits, so obviously 
appropriate care should be taken in backups and etc. ahead of time and 
validating the change before accepting it 
straight-out.</SPAN></FONT></FONT></FONT></DIV>
<DIV><SPAN class=362352720-30042008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=362352720-30042008><FONT face=Arial color=#0000ff size=2>It 
would be safer to simply use grep to identify which pages have a page-specific 
password and then go in and manually remove them...&nbsp; This could be done 
with this MX on any page:</FONT></SPAN></DIV>
<DIV><SPAN class=362352720-30042008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=362352720-30042008><FONT face=Arial color=#0000ff size=2>{(grep 
-l '^passwd' TEXTFILE--wiki.d/*)}</FONT></SPAN></DIV>
<DIV><SPAN class=362352720-30042008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=362352720-30042008><FONT face=Arial color=#0000ff size=2>If 
your site is too large to process in one fell swoop you may need to break it 
down into groups or something in the wildcard specification.</FONT></SPAN></DIV>
<DIV><SPAN class=362352720-30042008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=362352720-30042008><FONT face=Arial color=#0000ff 
size=2>-Peter</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>