Funny you should ask -- I just did some digging in 'lazy admin tools' last night to find an answer for another question, and found this in
man lat:
lat-dump
Creates input-files for the lat-toolkit, based on the
current configuration of the SME server (5.x/6.x). The
information is extracted from the /home/e-smith/*
databases.
The resulting input-files can be used to replicate
user accounts, ibays, etc on a different SME server,
or recreate them on a clean install. To facilitate the
restoring/replicating, the lat-restore script is auto-
matically created. This will launch the various lat-
tools in the right sequence.
lat-restore
Launches all lat-tools in the correct sequence using
the config files created by lat-dump. This allows you
recreate all user accounts, groups, ibays etc with the
same uid/gid on an other server or to restore a cor-
rupted server.
lat-restore is automatically created by lat-dump and
can be edited to meet your needs
Here's a link to a post on how to get LAT, with a quick step-by-step on installing it:
http://forums.contribs.org/index.php?topic=34588.0Once you've installed LAT you can dump your current info like this:
mkdir -p /root/lat/data
cd /root/lat/data
lat-dump -dNow you have the following files in /root/lat/data ("sme" is the name of my server):
lat-restore
sme.Procmail
sme.Domains
sme.Pseudonyms
sme.Groups
sme.Quota
sme.Hosts
sme.Ibays
sme.Users
sme.PPTP
lat-restore will automatically re-create all of the information in the other files on a new system;
/usr/sbin/lat-users -a -p -i=sme.Users would re-load only the user information, generate new random passwords for all users, and place them in ./passwords.new.
I suppose it's possible that
lat-users -a -c "admin | SME | Administrator | newpassword" might fix your admin account. lat-users takes much longer than passwd so I assume it's changing more files...