Here's a checklist of things to be done to completely remove a workgroup. (It's just a checklist -- the details are left as an excercise for the reader, for now.)
groups
table
of the auth_n
database
http://embedded.eecs.berkeley.edu/mysql
to remove all its rows from the auth
table
of the auth_n
database
access
table
of the auth_n
database
<?php require('include/auth.inc.php3'); require('include/user.inc.php3'); require('include/sql.inc.php3'); require('include/util.inc.php3'); $users = sql_select_array("cache_1", "apache", "select distinct user from session where auth like '%<the_group_name>%'"); // You can also specify an explicit list of users to update: // $users['allenh', 'joeblow'] = 1; while (list($u, $a) = each($users)) { echo "refreshing $u<br>"; user_refresh($u); } ?>Note that running this will undo any permission overrides anybody might have.
There's probably already a script lurking about, called
something like /home/www/php/refresh_all_sessions.php.
To run it, first edit it for your purposes, then simply
access the URL, edit /home/www/php/hostname/get.php
and temporarily insert code to run
the php script, for example, near the sitemap.html
:
} elseif ($url == "/refresh_all_sessions") {
include('refresh_all_sessions.php');
Then visit:
http://<website_name>/refresh_all_sessions
.
makemap dbm /etc/mail/virtusertable < /etc/mail/virtusertable pkill -HUP sendmail
newaliases