Difference between revisions of "IT/Internal"
From CA Greens wiki
Line 5: | Line 5: | ||
As root, | As root, | ||
su - list | su - list | ||
− | which gives you a login shell as Mr. list. First remind yourself where Mailman is. | + | which gives you a login shell as Mr. list. First remind yourself where Mailman is. Try the tab key instead of asterisk there. |
egrep 'cgi-bin|piperm' /etc/apa*/sites-a*/wa* | grep -v '^#' | egrep 'cgi-bin|piperm' /etc/apa*/sites-a*/wa* | grep -v '^#' | ||
Then do stuff. Keep the name of the list in a shell variable to avoid typing it over and over. | Then do stuff. Keep the name of the list in a shell variable to avoid typing it over and over. |
Revision as of 20:59, 28 April 2010
Here are some things you might have to do on wangari.
Be the mailman user and archive and remove an unwanted mailman list
As root,
su - list
which gives you a login shell as Mr. list. First remind yourself where Mailman is. Try the tab key instead of asterisk there.
egrep 'cgi-bin|piperm' /etc/apa*/sites-a*/wa* | grep -v '^#'
Then do stuff. Keep the name of the list in a shell variable to avoid typing it over and over.
cd /var/lib/mailman bye=humboldt-discuss file archives/private/$bye* cp -a lists/$bye ~/oldlists/lists cp -a archives/private/$bye* ~/oldlists/archives ls bin bin/rmlist -a $bye
Now it's gone. After a minute or two, Postfix will notice the change and forget about the former list's addresses.